-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Prevent payment for open invoice reports #54958
Prevent payment for open invoice reports #54958
Conversation
I am building Android and uploading screenshots very soon. |
Reviewer Checklist
Screenshots/Videos |
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!
@Expensify/design could you please review this one? Here's some context: When the user sends an invoice over NewDot, the invoice is instantly submitted and visible to the receiver. Being in the |
Oh interesting... so it sounds like the receiver can still see an open Invoice? I would think it would be unshared with them at that point and they wouldn't be able to see it? But perhaps I am not understanding correctly. Also cc @puneetlath @trjExpensify @JmillsExpensify for a second opinion on this one too. |
@shawnborton yes, for now. I opened a discussion here about it |
This is what I was thinking too. But if we're just going to hide the button, could we include a system message like "Bobby Name unsent this invoice" (or something better that communicates what happened)? |
@cristipaval, AFAIK it requires a change on the backend side. Should I tweak the frontend? |
…/54541-pay-grouped-invoices
I've synced it up. |
yes, this requires backend changes. |
…/54541-pay-grouped-invoices
…/54541-pay-grouped-invoices
@cristipaval, any updates? |
…/54541-pay-grouped-invoices
I've synced it up. |
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.
I don't think it makes sense to hold this one until we add the system message. Also, this is low priority in our roadmap so the backend changes won't happen soon.
✋ 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.93-0 🚀
|
@rezkiy37 can you check ^? 🙏 |
As long as there's no bigger bug introduced, we can mark this PR off the deploy checklist 🙏 |
🚀 Deployed to production by https://github.com/roryabraham in version: 9.0.93-3 🚀
|
@Beamanator Yes, I can. It was addressed here #54958 (review). The actual result is expected for now:
@cristipaval will work on it later to manage the backend. cc @izarutskaya |
@Beamanator we chatted about this in #billpay. This is low-priority, and it actually patches a rare case, so we don't want to spend time on it. In order to make it work ideally for the user, we might hide the OPEN invoice reports from the payer in NewDot and also archive the invoice room if the invoice is the only activity in that room. But this requires some backend effort that we'll allocate when billpay gets prioritized again. |
Explanation of Change
The PR hides the Settlement button for the invoice report if the report is not submitted.
Fixed Issues
$ #54541
PROPOSAL: N/A
Tests
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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop