-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add edit fields for tax tracking #33927
feat: add edit fields for tax tracking #33927
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests well
🎯 @alitoshmatov, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #39431. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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