[CP Staging] Revert "fix: Confirm page shows Amount field with 0.00 amount when receipt is scanning v2"#85256
Conversation
…ceipt is scanning v2"
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7b05dcbd93
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| } else if (isScanning(transaction)) { | ||
| formattedAmount = translate('iou.receiptStatusTitle'); | ||
| } | ||
| const formattedAmount = isDistanceRequestWithPendingRoute ? '' : convertToDisplayString(amountToBeUsed, isDistanceRequest ? currency : iouCurrencyCode); |
There was a problem hiding this comment.
Restore scanning label for pending receipt amounts
This change always formats the draft amount as currency, so a scan request that is still in SCAN_READY/SCANNING now shows 0.00 in the confirmation Amount field until OCR finishes. In that state the transaction has no real extracted amount yet, so displaying a numeric value is misleading and regresses the prior behavior that showed iou.receiptStatusTitle for pending scans; users can incorrectly assume the parsed amount is zero while the receipt is still processing.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
This is correct. That said, showing the not found page is worse than the 0.00 amount while scanning a receipt, so the straight revert still makes sense.
…vert-81156-fix/80287 [CP Staging] Revert "fix: Confirm page shows Amount field with 0.00 amount when receipt is scanning v2" (cherry picked from commit 69ab566) (cherry-picked to staging by luacmartins)
|
✋ 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/luacmartins in version: 9.3.37-4 🚀
|
|
🚧 @srikarparsi 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! 🧪🧪
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.3.37-10 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/luacmartins in version: 9.3.38-0 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.3.38-4 🚀
|
Reverts #82672
Fixes this deploy blocker
Test: