Prevent payment for open invoice reports#54958
Conversation
|
I am building Android and uploading screenshots very soon. |
Reviewer Checklist
Screenshots/Videos |
|
@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. |
cristipaval
left a comment
There was a problem hiding this comment.
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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop