Add Pay as Business option for invoices sent to an individual who is admin of their primary workspace#43036
Conversation
# Conflicts: # src/libs/ReportUtils.ts
# Conflicts: # src/components/ReportActionItem/ReportPreview.tsx # src/components/SettlementButton.tsx
| settledExpensify: 'Pagado', | ||
| settledElsewhere: 'Pagado de otra forma', | ||
| individual: 'Individual', | ||
| business: 'Empresa', |
There was a problem hiding this comment.
I've asked about translation confirmation in the slack
| return ( | ||
| <KYCWall | ||
| onSuccessfulKYC={onPress} | ||
| onSuccessfulKYC={(paymentType) => onPress(paymentType)} |
There was a problem hiding this comment.
| onSuccessfulKYC={(paymentType) => onPress(paymentType)} | |
| onSuccessfulKYC={onPress} |
I think it will work right?
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-app-2024-06-14_13.30.00.mp4Android: mWeb Chromeandroid-chrome-2024-06-14_13.33.55.mp4iOS: Nativeios-app-2024-06-14_13.20.03.mp4iOS: mWeb Safariios-safari-2024-06-14_13.17.55.mp4MacOS: Chrome / Safaridesktop-chrome-2024-06-13_16.29.43.mp4MacOS: Desktopdesktop-app-2024-06-14_11.31.09.mp4 |
This comment was marked as resolved.
This comment was marked as resolved.
@jjcoffee It's a known issue caused by API returns empty cc @cristipaval Have you had a chance to take a look at it? |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I think I've tested this use case and it worked for me, could you provide a video please 🙏 |
This comment was marked as resolved.
This comment was marked as resolved.
@jjcoffee It looks like it works for me, did I miss something? INV1.mp4 |
# Conflicts: # src/libs/actions/Policy/Policy.ts
@VickyStash Hmm, interesting! What if you try with User B as a new account that User A has never chatted with before? |
|
@VickyStash I guess this is related to the empty desktop-app-delayed.mp4 |
This comment was marked as resolved.
This comment was marked as resolved.
@jjcoffee |
Same issue is reproduced on the main branch, so it would be better to fix it separately |
|
Issues, that should be fixed by API updates:
Bug exists on main, should be tracked in a separate ticket:
Let's leave it to a follow up:
Fixed in the app:
Note: I'm going to be OOO Jul 1- Jul 7 🌴 |
|
Thanks for the summary @VickyStash! @jjcoffee, I think you can approve the PR, and I can test it when the backend fixes get into production. If nothing else occurs, I'll merge this PR and @VickyStash will create a follow-up issue to fix the redirection when the invoice is moved to an existing b2b invoice room. This way you can go ooo and don't worry about this PR. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
The issue with the avatar is still reproducible on the room header, but I think we can fix it in a follow-up PR to keep things going |
|
🚀 Deployed to staging by https://github.com/cristipaval in version: 9.0.4-0 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/tgolen in version: 9.0.4-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to staging by https://github.com/cristipaval in version: 9.0.5-0 🚀
|
|
🚀 Deployed to staging by https://github.com/cristipaval in version: 9.0.5-2 🚀
|
|
@mountinyThe QA team is only seeing the "Pay as individual" option. This was reverted in this PR. Are we good to check it off? Recording.3432.mp4 |
@cristipaval could you please verify this before closing the issue? In the meantime I am checking this off our checklist as it isn't a blocker. |
This PR was reverted, @Julesssss |
|
This is the PR that should not have been added to the checklist, it was reverted |

Details
This PR implements the Pay as business option in the App for the individuals who are admins of their primary workspace.
Fixed Issues
$ #40438
PROPOSAL: N/A
Tests
Pay as business->Pay elsewhereOffline tests
Repeat steps 5-7 from 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_receiver.mp4
Android: mWeb Chrome
android_web_receiver.mp4
iOS: Native
ios_receiver.mp4
iOS: mWeb Safari
ios_web_receiver.mp4
MacOS: Chrome / Safari
web_receiver.mp4
MacOS: Desktop
desktop_receiver.mp4