Hide pay button when auto reimbursement enabled#33987
Conversation
…er component to hide Pay button
… type declaration in ReportUtils.ts
|
@aimane-chnaif 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] |
|
On hold for backend changes but the code can be reviewed |
|
Hi @aimane-chnaif, the backend changes were deployed to production so the PR is ready for review. Can you provide me with some emails so I can add you to a policy with auto reimbursement enabled for testing? |
|
Friendly bump @aimane-chnaif |
|
review & testing is in progress. expecting completion on Monday |
|
Hi @aimane-chnaif, let me know if you run into any issues during testing, happy to help if something wasn't clear in the instructions or didn't result as expected during the testing :) |
|
Please resolve conflict |
|
I am not seeing |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
@stitesExpensify 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] |
| type CurrencyType = (typeof CONST.DIRECT_REIMBURSEMENT_CURRENCIES)[number]; | ||
| const reimbursableTotal = getMoneyRequestReimbursableTotal(report); | ||
| const autoReimbursementLimit = policy.autoReimbursementLimit ?? 0; | ||
| const isAutoReimbursable = |
There was a problem hiding this comment.
NAB Unnecessary variable
|
✋ 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 production by https://github.com/thienlnam in version: 1.4.31-7 🚀
|






On hold for https://github.com/Expensify/Web-Expensify/pull/40396Details
This PR hides the
Paybutton after approval for group policies only if the auto-reimbursement limit is greater than or equal to the reimbursable total and if the reimbursement is enabled at the policy level.Fixed Issues
$ #33716
Tests
Manual reimbursementto a big numberPaybutton is not shownPayis not shown after approvalScreen.Recording.2024-01-04.at.6.36.24.p.m.mov
Offline tests
N/A
QA Steps
Same as test steps
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)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop