Allow submitters to select "Received reimbursement" option v2#90202
Conversation
|
Hey, I noticed you changed If you want to automatically generate translations for other locales, an Expensify employee will have to:
Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running: npx ts-node ./scripts/generateTranslations.ts --helpTypically, you'd want to translate only what you changed by running |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
This PR fixes the two regressions related to issues 90031 and 90070. Screenshots/VideosAndroid: NativeIssue: 90031 az_recorder_20260511_134458.mp4Issue: 90070 az_recorder_20260511_140653.mp4Android: mWeb ChromeIssue: 90070 az_recorder_20260511_142500.mp4Issue: 90031 Screen.Recording.2026-05-11.at.10.23.23.AM.moviOS: NativeIssue: 90070 Screen.Recording.2026-05-11.at.9.55.02.AM.movIssue: 90031 Screen.Recording.2026-05-11.at.9.59.56.AM.mp4iOS: mWeb SafariIssue: 90070 Screen.Recording.2026-05-11.at.10.52.44.AM.movIssue: 90031 Screen.Recording.2026-05-11.at.10.48.01.AM.movMacOS: Chrome / SafariIssue: 90070 Screen.Recording.2026-05-11.at.9.12.57.AM.mp4Issue: 90031 Screen.Recording.2026-05-11.at.9.04.10.AM.mov |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b0ce6f246f
ℹ️ 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".
| return getOriginalMessage(action)?.paymentType !== CONST.IOU.PAYMENT_TYPE.ELSEWHERE; | ||
| }); | ||
|
|
||
| return !hasBankPaymentAction; |
There was a problem hiding this comment.
Block repeated "Received payment" on already paid-elsewhere reports
This predicate still returns true after a pay-elsewhere reimbursement because it only treats non-elsewhere pay actions as a blocker. As a result, once a submitter marks a report as received, the same menu action remains available and can be triggered again, creating duplicate PAY actions/API writes on an already reimbursed report.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Keeping this intentional for now to match the issue’s agreed Classic parity behavior. The issue discussion explicitly decided that the option should remain visible even after the submitter marks the report as paid elsewhere, rather than hiding it after first use: #83035 (comment)
|
@Pujan92 could you please take a look at the PR. Thanks |
|
Swapping @joekaufmanexpensify in for the review as he created this. |
|
🚧 @joekaufmanexpensify has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeSimulator.Screen.Recording.-.iPhone.15.Pro.-.2026-05-23.at.19.34.43.moviOS: HybridAppSimulator.Screen.Recording.-.iPhone.15.Pro.-.2026-05-23.at.19.31.09.moviOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2026-05-04.at.23.09.18.mov#90070 - Fixed Screen.Recording.2026-05-23.at.19.16.35.mov |
|
@nabi-ebrahimi @Pujan92 #90031 is not a bug. It is intentional that we show this option, even when payments are disabled on the workspace. I commented on the deploy blocker to clarify. Can we please revert this behavior? Description from OP of the issue:
|
|
For #90035, it's expected that you can use received payment button multiple times on the same report. However, it's not expected that we throw an error after the first attempt. Do we think this is a backend issue? The API is returning an error. Here are logs if we get someone internal to investigate.
|
Yes, this needs backend change and the related pr is already in review - thanks |
|
Nice, thanks! I'll retest the first now and then the second once the backend PR is merged 👍 |
|
🚧 @joekaufmanexpensify has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
Retested and confirmed this is working now 👍 |
|
I'll follow along on the backend PR to retest the other issue |
|
Backend is deployed! Going to retest today |
Retested and this is working now! I'm able to mark the same report as payment received multiple times 👍 |
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Working well from my perspective 👍
|
@nabi-ebrahimi some checks are failing |
| const currentUserAccountID = getUserAccountID(); | ||
| const currentUserEmail = getCurrentUserEmail(); |
There was a problem hiding this comment.
need to use useCurrentUserPersonalDetails now
|
@Pujan92 All checks are passed now |
|
🚧 @luacmartins has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ 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/luacmartins in version: 9.3.81-0 🚀
|
|
I reviewed the changes in this PR against the help site articles under No help site changes are required. The "Received payment" feature is already documented:
Both articles accurately reflect the behavior introduced by this PR. |
|
Deploy Blocker #91637 was identified to be related to this PR. |
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.3.81-2 🚀
|


Explanation of Change
NewDot now includes a
Received paymentoption in the reportMoremenu for eligible submitters. When selected, it shows a confirmation modal and then uses the existing pay-elsewhere flow to mark the report as paid, while staying hidden for true bank-payment scenarios.Fixed Issues
$ #83035
PROPOSAL: #83035 (comment)
Tests
Received paymentoption.Offline tests
Same as Tests.
QA Steps
Same as Tests.
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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.Screenshots/Videos
Android: Native
Screen.Recording.2026-03-24.at.11.18.15.AM.mov
Android: mWeb Chrome
Screen.Recording.2026-03-24.at.11.23.11.AM.mov
iOS: Native
Screen.Recording.2026-03-24.at.11.32.54.AM.mov
iOS: mWeb Safari
Screen.Recording.2026-03-24.at.11.37.58.AM.mov
MacOS: Chrome / Safari
Screen.Recording.2026-03-24.at.9.43.57.AM.mov