-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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: can't Hold card expenses #57219
Conversation
@DylanDylann 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] |
@DylanDylann Currently, I will use Or if you can find a more accurate way, please let me know. |
yes, let's do that |
@DylanDylann this PR is ready for review I am a little stuck on the Android Native builds. Will add later |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-02-25.at.17.01.22.movAndroid: mWeb ChromeScreen.Recording.2025-02-25.at.17.02.10.moviOS: mWeb SafariScreen.Recording.2025-02-25.at.17.00.35.movMacOS: Chrome / SafariScreen.Recording.2025-02-25.at.16.55.36.mov |
@puneetlath We try to edit the Onyx data to test this PR. Could you please help to test again on your side to verify if the bug on your account is resolved? |
🚧 @puneetlath has triggered a test hybrid app build. You can view the workflow run here. |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
It worked! |
✋ 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/puneetlath in version: 9.1.8-0 🚀
|
const canUnholdRequest = | ||
!!(canHoldOrUnholdRequest && isOnHold && !isDuplicate(transaction.transactionID, true) && (isRequestIOU ? isHoldActionCreator : canModifyUnholdStatus)) && | ||
!!transaction?.reimbursable; | ||
const canHoldRequest = canHoldOrUnholdRequest && !isOnHold && (isRequestIOU || canModifyStatus) && !isScanning; |
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.
canHoldRequest
loosing !!transaction?.reimbursable
is causing this: #57702
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 transaction
is an empty object {}
when you follow the steps here: #57702
🚀 Deployed to production by https://github.com/puneetlath in version: 9.1.8-1 🚀
|
Explanation of Change
Fixed Issues
$ #56444
PROPOSAL: #56444 (comment)
Tests
Onyx.merge('transaction_id', {reimbursable: false})
Hold
option is displayedOffline tests
Same as tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
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
Android: mWeb Chrome
android-mweb.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web-resize.mp4
MacOS: Desktop
desktop.mov