Fix - Expense - Error submitting expense after changing submission frequency from Manual to Instant #75792
Conversation
…se policy with instant submit
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
trjExpensify
left a comment
There was a problem hiding this comment.
I think you need to work on the test steps a little here. If you look at the original parent issue OP...
- The user has manual submission frequency, payment and approvals enabled.
- They create an expense > it creates a draft report.
- They submit the draft report > that report is now in the processing state.
- They then change the workspace settings to disable payments and approvals, set the submission frequency to instantly
- They create a new expense
- It automatically adds that expense to the existing processing report and throws an unexpected error.
Your QA tests or vids don't actually show that flow to confirm the bug as being fixed.
@trjExpensify, the test step is checking for two cases. With disabled payments and approvals, the submission frequency set to instantly
|
|
Yes, but it's not covering the actual reported flow in the OP of the parent issue. That not being adding an expense manually to an existing outstanding processing report after making the workspace setting change, but creating an expense and it automatically being added to that report erroneously. Minimally, your test should cover that flow exactly. 👍 |
|
Ok I think I got you. Can you recheck it now? |
…port-for-submit-and-close-policy
…port-for-submit-and-close-policy
|
Excuse me @trjExpensify, but do you thik the test steps are sufficient now? Thank you. |
|
Yep 👍 |
…port-for-submit-and-close-policy
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp75792_android_web.movAndroid: mWeb Chrome75792_android_web.moviOS: HybridApp75792_ios_native.moviOS: mWeb Safari75792_ios_web.movMacOS: Chrome / Safari75792_web_chrome.mov |
…port-for-submit-and-close-policy
It es lint changed error linked to |
|
I assume we have to fix them if the CI/CD is saying we have to |
…port-for-submit-and-close-policy
|
Fixed @AndrewGable |
|
@AndrewGable I have suppressed the deprecated lint error as recommended here so u can proceed now. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/AndrewGable in version: 9.2.78-0 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.2.78-8 🚀
|
Explanation of Change
Fixed Issues
$ #72793
PROPOSAL: #72793 (comment)
Tests
Offline tests
Same as above
QA Steps
Same as above
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
2025-11-26.15-59-05.mp4
Android: mWeb Chrome
2025-11-21.23-06-34.mp4
iOS: Native
2025-11-26.15-47-15.mp4
iOS: mWeb Safari
2025-11-21.23-08-16.mp4
MacOS: Chrome / Safari
2025-11-21.23-04-16.mp4
MacOS: Desktop
2025-11-21.23-06-18.mp4