feat: add edit fields for tax tracking#33927
feat: add edit fields for tax tracking#33927MonilBhavsar merged 196 commits intoExpensify:mainfrom teneeto:feat/31672/add-edit-fields-for-tax-tracking
Conversation
There was a problem hiding this comment.
And if we can wrap this logic in function https://github.com/Expensify/App/pull/32550/files#r1438176999
…t-fields-for-tax-tracking
…t-fields-for-tax-tracking
…t-fields-for-tax-tracking
|
🎯 @alitoshmatov, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #39431. |
MonilBhavsar
left a comment
There was a problem hiding this comment.
Looks good, let's ship it! 🚀
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
I think this PR caused this deploy blocker here: #33927 |
|
This PR is failing because of issue #39616 The issue is reproducible in: All environments Bug6437972_1712235846086.bandicam_2024-04-04_21-00-05-673.mp4 |
@lanitochka17 you mean in offline mode, right? |
|
I see dev repeatedly crashing with I put up a fix here |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.60-13 🚀
|
|
Coming from #49556: Solution: if ('taxCode' in transactionChanges) {
- originalMessage.oldTaxRate = policy?.taxRates?.taxes[TransactionUtils.getTaxCode(oldTransaction)].value;
+ originalMessage.oldTaxRate = policy?.taxRates?.taxes[TransactionUtils.getTaxCode(oldTransaction)]?.value;
- originalMessage.taxRate = transactionChanges?.taxCode && policy?.taxRates?.taxes[transactionChanges?.taxCode].value;
+ originalMessage.taxRate = transactionChanges?.taxCode && policy?.taxRates?.taxes[transactionChanges?.taxCode]?.value;
} |


Details
create simple input fields that can allow editing and viewing tax details.
$: 31672
PROPOSAL: issuecomment
Fixed Issues
Tests
Pre-condition
Edit money request
Expectation
Offline tests
Pre-condition
Edit money request
Expectation
Ensure updating expense amount optimistically updates taxAmount
QA Steps
Pre-condition
Edit money request
Expectation
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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)/** comment above it */thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Web
Screen.Recording.2024-02-28.at.11.44.16.mov
Mobile Web - Chrome
Screen.Recording.2024-02-28.at.12.31.02.mov
Mobile Web - Safari
Screen.Recording.2024-02-28.at.11.59.19.mov
Desktop
Screen.Recording.2024-02-28.at.12.05.40.mov
iOS
Screen.Recording.2024-02-28.at.11.54.10.mov
Android
Screen.Recording.2024-02-28.at.12.22.09.mov