-
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
Allow invoices with multiple expenses #52556
Allow invoices with multiple expenses #52556
Conversation
…ture/51528-multiple-invoices-page
…ture/51528-multiple-invoices-page
…ture/51528-multiple-invoices-page
…ture/51528-multiple-invoices-page
I am attaching a video where demonstrating how the app works for the sender and receiver. Test.mp4 |
@dukenv0307 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] |
🚧 @shawnborton has triggered a test build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
This one is a bit tricky to test - I am having issues with "unavailable workspace" when sending to another user Either way though, the UI seems like it's correct since we are just reusing the exact same patterns from expense reports. |
…ture/51528-multiple-invoices-page
@shawnborton Hmm... It is quite strange because I handled this case 1954c1d and it works properly for me. Can you please share the report's JSON data? |
@cristipaval, regarding the "unavailable workspace" issue, we can try to fix it. Should we do it? |
yes, let's fix it in this PR. |
Let's run another test build and see if the negative amount thing is fixed then. |
🚧 @shawnborton has triggered a test 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! 🧪🧪
|
Nice, it's fixed for me now! |
@shawnborton I've fixed this case by adding a condition to check if an invoice's parent is an invoice room - fa8ec14. To clarify, the app now renders the "formatted" name in the header and details, but only the real one when the user wants to edit it. Details
Example.mp4cc @cristipaval WDYT? |
Oh that's interesting, I would think that whatever is shown in the header is the exact thing that the invoice is technically titled with. I find it odd that you would go to edit the invoice title and suddenly it changes to something else in the editable input. |
Also, we are fixing the "unavailable workspace" issue with this change. |
Yeah, I agree but we would create a separate issue to "synchronize" invoice report names (titles) because it is out of the scope of the current PR. |
Sounds good, that works for me. @cristipaval let's make sure to create a follow up issue for that then. |
This is ready for the C+ review, @dukenv0307 |
@cristipaval Thanks for pointing that out. I'm reviewing now |
@dukenv0307, you're assigned as the C+ to this one as well |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-12-11.at.23.12.39.movAndroid: mWeb ChromeScreen.Recording.2024-12-11.at.23.10.41.moviOS: NativeScreen.Recording.2024-12-11.at.23.13.40.moviOS: mWeb SafariScreen.Recording.2024-12-11.at.23.08.30.movMacOS: Chrome / Safariweb-resize.mp4MacOS: Desktopdesktop.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.
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/cristipaval in version: 9.0.75-0 🚀
|
Explanation of Change
The PR handles OldDot invoices with multiple expenses and renders them successfully.
Fixed Issues
$ #51528
PROPOSAL: N/A
Tests
Precondition: have a workspace with enabled invoices. Admin is logged in ND and OD.
Offline 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.mp4
Android: mWeb Chrome
Android.CHrome.mp4
iOS: Native
IOS.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
Test.mp4
MacOS: Desktop
Desktop.mp4