fix: auto-pay approved reports can be enabled when payment is disabled#63466
Conversation
|
@rushatgabhane 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] |
|
@trjExpensify Do you want to update the "Go to more features..." subtitle text size to match other subtitles? Before: After: |
Yep, let's have it match the other subtitles. 👍 |
|
@rushatgabhane I updated. You can review now. |
Reviewer Checklist
Screenshots/VideosAndroid: mWeb ChromeMacOS: Desktop |
| const policy = usePolicy(policyID); | ||
| const workflowApprovalsUnavailable = getWorkflowApprovalsUnavailable(policy); | ||
| const autoPayApprovedReportsUnavailable = policy?.reimbursementChoice === CONST.POLICY.REIMBURSEMENT_CHOICES.REIMBURSEMENT_NO; | ||
| const autoPayApprovedReportsUnavailable = !policy?.areWorkflowsEnabled || policy?.reimbursementChoice !== CONST.POLICY.REIMBURSEMENT_CHOICES.REIMBURSEMENT_YES || !hasVBBA(policyID); |
There was a problem hiding this comment.
@gijoe0295 for readability can you please invert this condition?
isAutoPayApprovedReportAvailable
There was a problem hiding this comment.
actually leave it. it is NAB
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.1.66-0 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.1.66-5 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.1.66-5 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.1.66-5 🚀
|







Explanation of Change
The autoPay toggle should be locked, unless the workspace:
Fixed Issues
$ #62606
PROPOSAL: #62606 (comment)
Tests
Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.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 and/or tagged@Expensify/designso 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
Screen.Recording.2025-06-05.at.01.16.41.mov
Android: mWeb Chrome
Screen.Recording.2025-06-05.at.01.17.52.mov
iOS: Native
Screen.Recording.2025-06-05.at.01.10.17.mov
screen-recording-2025-06-05-at-010901_AdtXLA2K.mp4
iOS: mWeb Safari
Screen.Recording.2025-06-05.at.01.12.09.mov
Screen.Recording.2025-06-05.at.01.13.27.mov
MacOS: Chrome / Safari
Screen.Recording.2025-06-05.at.01.06.43.mov
Screen.Recording.2025-06-05.at.01.07.24.mov
MacOS: Desktop
Screen.Recording.2025-06-05.at.01.08.12.mov