Revert "Update create transaction Manual flow to ask for merchant after asking for amount"#80286
Revert "Update create transaction Manual flow to ask for merchant after asking for amount"#80286
Conversation
…er asking for amount"
|
@srikarparsi Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f864ca0e3f
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| setMoneyRequestParticipantsFromReport(transactionID, report, currentUserPersonalDetails.accountID).then(() => { | ||
| // If merchant is required and missing, navigate to merchant step first | ||
| if (shouldRequireMerchant(transaction, report, isEditingSplitBill)) { | ||
| Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_MERCHANT.getRoute(action, CONST.IOU.TYPE.SUBMIT, transactionID, reportID, undefined, reportActionID)); | ||
| return; | ||
| } | ||
| navigateToConfirmationPage(iouType, transactionID, reportID, backToReport); |
There was a problem hiding this comment.
Enforce merchant for expense request threads
By always navigating straight to confirmation after setting participants, this flow no longer forces the merchant step even when isExpenseRequest(report) is true. The confirmation validator only treats isPolicyExpenseChat as requiring a merchant, so expense request threads (where isExpenseRequest is true but isPolicyExpenseChat is false) can now be submitted with the merchant still missing, despite IOURequestStepMerchant still validating merchant as required for expense requests. This allows policy expense requests to be created without a merchant in that context.
Useful? React with 👍 / 👎.
(cherry picked from commit 399f685) (cherry-picked to staging by francoisl)
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Cherry-picked to staging by https://github.com/francoisl in version: 9.3.7-1 🚀
|
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.3.7-3 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/francoisl in version: 9.3.8-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.8-3 🚀
|
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso 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.