Skip to content

Expense - "Contains" match type not working for two-word merchant #82903

Description

@jponikarchuk

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: V9.3.22-1
Reproducible in staging?: Yes
Reproducible in production?: N/A - new feature, doesn't exist in prod
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #82438
Email or phone of affected tester (no customers): dreamnitethedragon@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Redminote 10S Android 13
App Component: Money Requests

Action Performed:

  1. Launch app
  2. Go to workspace settings
  3. Enable rules
  4. Create a merchant rule
  5. Merchant - polo shirt ( contains)
    Update category to equipment
  6. Tap save
  7. Create expense with merchant polo
  8. Category is not updated and it displays missing category

Expected Result:

With match type set to "contains", the rule should apply if the merchant name contains any matching part of the defined value.
The category should update automatically as configured.
"Missing category" should not be shown.

Actual Result:

When a merchant rule is created with two words (e.g., "polo shirt") and match type set to "contains", the rule is not applied if the expense merchant name contains only one of the words (e.g., "polo").
The category is not updated.
"Missing category" is displayed.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari

Screenshots/Videos

1.mp4

View all open jobs on GitHub

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringHourlyKSv2

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions