Repository navigation
[CP STG] Revert "Use threadReportID for report lookup in ReviewTaxCode" - #88155
Conversation
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: 4ef2aa60c6
ℹ️ 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".
| const policy = usePolicy(report?.policyID); | ||
| const [transactionThreadReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${route.params.threadReportID}`); | ||
| const transactionID = getTransactionID(transactionThreadReport); | ||
| const transactionID = getTransactionID(report); |
There was a problem hiding this comment.
Restore thread report lookup for tax review transaction
reviewDuplicates.reportID is populated from transaction.reportID (expense report) in src/libs/TransactionPreviewUtils.ts:93, but getTransactionID() only resolves an IOU transaction from a thread report (src/libs/TransactionUtils/index.ts:2547). After this change, ReviewTaxCode derives transactionID from report loaded via reviewDuplicates?.reportID, so the normal path yields undefined and the tax-code review screen cannot reliably load the transaction/duplicates data needed to present tax options.
Useful? React with 👍 / 👎.
| reimbursable: reviewDuplicates?.reimbursable ?? false, | ||
| category: reviewDuplicates?.category ?? '', | ||
| tag: reviewDuplicates?.tag ?? '', | ||
| taxCode: reviewDuplicates?.taxCode ?? '', | ||
| merchant: reviewDuplicates?.merchant ?? '', | ||
| comment: reviewDuplicates?.description ?? '', |
There was a problem hiding this comment.
Include selected tax code in duplicate merge parameters
The selected tax code from the review flow is now dropped when building merge params: buildMergeDuplicatesParams() no longer forwards reviewDuplicates.taxCode, so downstream merge/resolve actions cannot apply the user’s tax-code choice. In cases where duplicates differ by tax code, confirming the merge can keep the old tax configuration (and derived tax amount) instead of the value the user picked.
Useful? React with 👍 / 👎.
neil-marcellini
left a comment
There was a problem hiding this comment.
straight revert should be fine
|
@stitesExpensify looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
Not an emergency, straight revert |
|
🚧 @stitesExpensify has triggered a test Expensify/App build. You can view the workflow run here. |
…wTaxCodeTransactionID [CP STG] Revert "Use threadReportID for report lookup in ReviewTaxCode" (cherry picked from commit 29401f1) (cherry-picked to staging by mountiny)
|
🧪🧪 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. |
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.3.60-10 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required. This PR reverts #87943, removing internal |
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.3.60-12 🚀
Bundle Size Analysis (Sentry): |
|
I reviewed the changes in this PR. This is a revert of #87943 to fix deploy blockers #88035 and #88032. No help site changes are required. The changes are entirely internal — removing |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.60-22 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.3.61-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. This is a revert of #87943, rolling back internal code changes to tax code handling in the duplicate transaction merge/resolve flow. There are no user-facing changes — no new features, removed features, renamed UI elements, or altered user flows that would need documentation updates. |
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.3.61-4 🚀
|
Reverts #87943
Fixes 2 deploy blockers:
#88035
#88032