Add Pay as Business option for invoices sent to any individual#47862
Add Pay as Business option for invoices sent to any individual#47862MariaHCD merged 11 commits intoExpensify:mainfrom
Conversation
# Conflicts: # src/libs/actions/IOU.ts
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-app-2024-08-29_14.33.44.mp4Android: mWeb Chromeandroid-chrome-2024-08-29_14.37.44.mp4iOS: Nativeios-app-2024-08-29_17.02.51.mp4iOS: mWeb Safariios-safari-2024-08-29_14.58.55.mp4MacOS: Chrome / Safaridesktop-chrome-2024-08-29_10.38.40.mp4MacOS: DesktopNo workspaces: desktop-app-2024-08-29_14.22.47.mp4Existing non-admin workspace: desktop-app-2024-08-29_14.26.55.mp4 |
This comment was marked as off-topic.
This comment was marked as off-topic.
|
Ah looks like this is happening on staging too. @VickyStash Do you think this can be handled here or is it better off in a followup? |
|
I'm also seeing this error |
|
@VickyStash Oh yes, good catch! I'll report it there. |
|
desktop-chrome-2024-08-29_10.38.40.mp4 |
|
@jjcoffee nice catch! No report with the ID like this, and I've looked through all of the reports and there is no |
This comment was marked as resolved.
This comment was marked as resolved.
User B should be the admin of the primary (active) workspace. Only in this case the new workspace won't be created. |
Ahh thanks for the clarification! I hadn't made any changes in oldDot so that explains why this happened (I sort of assumed that the new workspace would automatically become the primary one). |
# Conflicts: # src/components/SettlementButton.tsx
# Conflicts: # src/libs/actions/IOU.ts
|
There is a new BE issue, announce chat isn't creating anymore by bug1.mp4@MariaHCD Could you help us with it? |
Looks like we don't create the announce chat unless there are at least 3 members in the policy: I'm not super familiar with this project but do we know if the expected behavior is that the announce room must be created when an invoice is paid? |
|
I spoke with @madmax330 and looks this is a BE bug - created the internal issue here: https://github.com/Expensify/Expensify/issues/427525 But I don't think we need to block this PR on that? Is this feature under a beta? |
If the user pay the invoice as business, but he is not the admin of his active(primary) workspace, we create a new workspace where the user is an admin and make this workspace to be primary. I use
It looks like it's not just this PR problem, but overall the issue in the app, cause bug_example.mp4Steps:
|
|
Cool, looks like we're also handling that here: #34929 |
|
✋ 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 production by https://github.com/luacmartins in version: 9.0.33-4 🚀
|
|
@VickyStash so the conclusion for this was that we should stop creating the announce room optimistically. |
|
I think it will be removed here: https://github.com/Expensify/App/pull/48660/files |
Yes, it should be so |




Details
Add Pay as Business option for invoices sent to any individual
Fixed Issues
$ #41974
PROPOSAL: N/A
Tests
Offline tests
Same as in the Tests section.
QA Steps
Same as in the Tests section.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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.mp4
Android: mWeb Chrome
android_web.mp4
iOS: Native
ios1.mp4
iOS: mWeb Safari
ios_web1.mp4
MacOS: Chrome / Safari
web1.mp4
MacOS: Desktop
desktop1.mp4