Skip to content

[Due for payment 2025-03-13] [$250] Unapprove button is showing instead of Cancel payment button on reports queued for ACH reimbursement (and incorrect sys message when actioned on from OldDot) #56989

Description

@trjExpensify

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.0.99-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: None
Email or phone of affected tester (no customers): tom+vbbaod2nd@trj.chat
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL: None
Issue reported by: @trjExpensify
Slack conversation (hyperlinked to channel name): None, found when I was testing something else.

Action Performed:

Prerequisites:

  • USD workspace with ACH reimbursement enabled
  • Admin is the workspace's payer, add one more normal member to the workspace.
  • Both payer and submitter haven't added a personal bank account yet.
  1. As the payer, create an expense > submit it to the workspace
  2. Approve it
  3. Click "Pay with Expensify"
  4. Click the report header
  5. Observe there's no "Cancel payment" button and the Unapprove button shows.
  6. Go to OldDot (use Settings > Domains as a shortcut) > Reports > click into the report
  7. Observe there's no Unapprove button showing on the report in OldDot
  8. Click "Cancel reimbursement" on the top of the report
  9. Switch back to NewDot > refresh
  10. Observe the incorrect canceledRequest system message is added to the report: canceled the $0.00 payment, because tom+vbbaod2nd@trj.chat did not enable their Expensify Wallet within 30 days
  11. As the normal member submitter on the workspace, create an expense and submit it.
  12. As the payer, repeat steps 2-10 and observe the same outcomes.

Expected Result:

  • The Cancel payment button should be shown to the workspace's payer up until the ACH cut off time for the day (@Gonals that logic for the cut off should be derived from the BE already I take it?)
  • The Unapprove button shouldn't show on a report that is queued for reimbursement via ACH (as the payment hasn't been canceled yet).
  • The adminCanceledRequest system message should be shown when canceling payments on a workspace.

Actual Result:

  • No Cancel Payment button in the report details screen.
  • Unapprove button incorrectly shows on a report that's queued to be reimbursed via ACH.
  • Incorrect system message is added to the report after taking the action in OldDot.

Workaround:

You can use OldDot to action on canceling the payment at least.

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

2025-02-18_01-54-48.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021891677107780037168
  • Upwork Job ID: 1891677107780037168
  • Last Price Increase: 2025-02-25
Issue OwnerCurrent Issue Owner: @trjExpensify

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions