Skip to content

Merchant rules - Rule does apply even if the words doesn't contain "Coffee" #82243

@jponikarchuk

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.17-7
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: https://docs.google.com/document/d/1M6A82DJ5B0gJ9xjX1b9GreUYID7lDSdSb59mmH4MRXA/edit?tab=t.0
Email or phone of affected tester (no customers): N/A
Issue reported by: Applause Internal Team
Bug source: Pull Request QA execution
Device used: Galaxy A55/ Android 16
App Component: Workspace Settings

Action Performed:

Scenario 1: As Admin:
1 - Create a new rule:
2- Match type: Contains
3- Merchant: "Coffee"
4- Category: "Meals & Entertainment"
5- Save the rule

Scenario 2: As member,:
1- Create expenses with merchants:
1.1 - Create an expense of any amount, → click next → enter: Starbucks Coffee as merchant → create the expense
1.2 - Create an expense of any amount, → click next → enter: Coffee Bean & Tea as merchant → create the expense
1.3 - Create an expense of any amount, → click next → enter: Blue Bottle Coffee Shop as merchant → create the expense
1.4 - Create an expense of any amount, → click next → enter: Cafe Latte as merchant → create the expense

Expected Result:

As the rule is linked to the word coffee, expenses must be related to the category

For example:
"Starbucks Coffee" → Verify rule applies
"Coffee Bean & Tea" → Verify rule applies
"Blue Bottle Coffee Shop" → Verify rule applies

Actual Result:

The word Cafe Latte does not apply, but even so it is related to the category

For example:
"Cafe Latte" → Verify rule does NOT apply (doesn't contain "Coffee")

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

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2Engineering

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions