Skip to content

RTER Pending Expense - RTER Pending expense is not moved to new report when it's approved #47511

Closed

Description

@isagoico

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.20-6

Reproducible in staging?: Yes
Reproducible in production?: Yes

If this was caught during regression testing, add the test name, ID and link from TestRail: https://github.com/Expensify/Expensify/issues/403524#issuecomment-2290080995

Email or phone of affected tester (no customers): applausetester+pendingreceipt@applause.expensifail.com

Logs: https://stackoverflow.com/c/expensify/questions/4856

Issue reported by: Applause - Internal team
Slack conversation:

Action Performed:

Preconditions: a workspace with scheduled submit enabled, a employee and admin and the employee has a company card assigned.

  1. In an account that has a domain controlled company card (not Expensify Card)
  2. Submit a expense via scan in the workspace chat
  3. Wait for the smartscan to finish
  4. Verify the expense has pending status
  5. In the workspace chat, submit a manual expense
  6. Submit the report
  7. As the approver - Approve the report

Expected Result:

The pending expense should be moved to a new Report.

Actual Result:

The pending expense is not moved to a new report and it still has the Pending Status.

Below are the details of a report with this issue:
Account: applausetester+pendingreceipt@applause.expensifail.com
Report ID: 8189390567239041
Transaction ID: 6273679857286185

Workaround:

N/A

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

!https://github.com/user-attachments/assets/3d09d9d2-669f-4b56-a691-b90fdfe4439b

!https://github.com/user-attachments/assets/a52139e5-812f-4730-8925-de42dea3ef7d

View all open jobs on GitHub

Activity

  1. added
    Daily
    Bug
    on Aug 15, 2024
  2. melvin-bot commented on Aug 15, 2024

    @melvin-bot

    Triggered auto assignment to @trjExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. trjExpensify commented on Aug 15, 2024

    @trjExpensify
    Contributor

    Going to drop off this one, Gents. I'm sure you know what you're doing :)

  4. removed their assignment
    on Aug 15, 2024
  5. melvin-bot commented on Aug 19, 2024

    @melvin-bot

    @JmillsExpensify, @yuwenmemon Whoops! This issue is 2 days overdue. Let's get this updated quick!

  6. yuwenmemon commented on Aug 20, 2024

    @yuwenmemon
    Contributor

    Looking today

  7. JmillsExpensify commented on Aug 21, 2024

    @JmillsExpensify
    Contributor

    This is coming up with customers btw. More in Slack.

  8. changed the title [-]Pending Expense - Pending expense is not moved to new report when it's approved[/-] [+]RTER Pending Expense - RTER Pending expense is not moved to new report when it's approved[/+] on Aug 21, 2024
  9. yuwenmemon commented on Aug 21, 2024

    @yuwenmemon
    Contributor

    After some further discussion in Slack we were conflating this with the other Pending CC Transaction state, which is affecting the customer.

    This one might actually benefit from waiting a bit while we get the RTER Violation in Auth (cc @deetergp), since we would be able to keep all logic there and have it be 1:1:1.

  10. 164 remaining items

  11. deetergp commented on Jan 16, 2026

    @deetergp
    Contributor

    Spent more time on this today and I think everything is working as intended. I'm going to look at it with fresh eyes in the AM, time the query, then send it out for review.

  12. deetergp commented on Jan 19, 2026

    @deetergp
    Contributor

    In final review. Should go out tomorrow!

  13. JmillsExpensify commented on Jan 20, 2026

    @JmillsExpensify
    Contributor

    Woo, thank you!

  14. deetergp commented on Jan 20, 2026

    @deetergp
    Contributor

    The PR got reverted after it was found to have caused https://github.com/Expensify/Expensify/issues/590571 in production. I will need to figure out why it happened, fix it, then re-release it back out in the wild.

    Related convos:
    https://expensify.slack.com/archives/C03SSAQ7P/p1768935787015589

  15. added
    Daily
    and removed
    Weekly
    on Jan 27, 2026
  16. deetergp commented on Jan 27, 2026

    @deetergp
    Contributor

    I need to go over the PR one more time, hopefully before lunch, and send it out for review.

  17. added
    Reviewing
    on Jan 29, 2026
  18. deetergp commented on Jan 29, 2026

    @deetergp
    Contributor

    This didn't auto close because I had mislabeled the PR details. This hit prod earlier today, so I'm closing it out!

  19. isagoico commented on Feb 27, 2026

    @isagoico
    Author

    This issue reappeared again. It's a weird one because we tested it less than 48h and it was not reproducible. Leaving a video below and reopening the issue:

    bandicam.2026-02-26.16-56-40-733.mp4
  20. deetergp commented on Feb 27, 2026

    @deetergp
    Contributor

    @isagoico After this went out, it was pointed out to me by @sakluger that when submitting manually, the pending expense SHOULD get submitted along with the rest. The correct behavior is that it should be held back only when it is automatically submitted (aka harvested). I've got a PR that addresses that here that has been approved and merged but not yet deployed.

  21. deetergp commented on Apr 15, 2026

    @deetergp
    Contributor

    This should have been auto closed. The code has been in production for a while.

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

Metadata

Metadata

Labels

BugDailyInternalReviewing

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions