-
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
Fix - change maxExpenseAmountNoReceipt
to maxAmountNoReceipt
for policy…
#52058
Fix - change maxExpenseAmountNoReceipt
to maxAmountNoReceipt
for policy…
#52058
Conversation
@hoangzinh Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-11-07.at.17.49.55.android.movAndroid: mWeb ChromeScreen.Recording.2024-11-07.at.17.52.31.android.chrome.moviOS: NativeScreen.Recording.2024-11-07.at.17.53.15.ios.moviOS: mWeb SafariScreen.Recording.2024-11-07.at.17.47.30.ios.safari.movMacOS: Chrome / SafariScreen.Recording.2024-11-07.at.17.26.21.web.movMacOS: DesktopScreen.Recording.2024-11-07.at.17.40.02.desktop.mov |
@@ -445,14 +445,14 @@ function setPolicyCategoryReceiptsRequired(policyID: string, categoryName: strin | |||
const parameters: SetPolicyCategoryReceiptsRequiredParams = { | |||
policyID, | |||
categoryName, | |||
maxExpenseAmountNoReceipt, | |||
maxExpenseAmountNoReceipt: maxAmountNoReceipt, |
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.
Hi @marcaaron @Beamanator do we need to rename the request param here from maxExpenseAmountNoReceipt
to maxAmountNoReceipt
too? Or we're still fine with request param
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.
Also to note a more important thing:
the policyCategory. maxAmountNoReceipt
is fixed and properly working but the policy. maxExpenseAmountNoReceipt
is not saving changes in the database so when you change the value the API returns the updated value but after you clear cache the value get back to the default value. It is not directly related to this issue but want to report it if you guys want to handle the BE changes.
2024-11-06.14-48-11.mp4
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.
Just keep with the current param name. It's still maxExpenseAmountNoReceipt
in the BE, but the category field will be correct.
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.
the policyCategory. maxAmountNoReceipt is fixed and properly working but the policy. maxExpenseAmountNoReceipt is not saving changes in the database so when you change the value the API returns the updated value but after you clear cache the value get back to the default value. It is not directly related to this issue but want to report it if you guys want to handle the BE changes.
Let's report this as a separate issue. As you said, it's not related.
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.
LGTM
✋ 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/marcaaron in version: 9.0.60-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.0.60-3 🚀
|
Details
Fixed Issues
$ #49450
PROPOSAL: #49450 (comment)
Tests
Precondition:
Enable categories and rules
Require receipts over
fieldOffline tests
Same as above
QA Steps
Same as above
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)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.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
Android: Native
2024-11-05.19-46-07.mp4
Android: mWeb Chrome
aw.mp4
iOS: Native
i.mp4
iOS: mWeb Safari
iw.mp4
MacOS: Chrome / Safari
w.mp4
MacOS: Desktop
d.mp4