Enabling Invoices as a feature#46567
Conversation
|
I've asked for translations here. |
…ture/45168-enabling-invoices-feature
src/libs/PolicyUtils.ts
Outdated
| /** Whether the user can send invoice */ | ||
| function canSendInvoice(policies: OnyxCollection<Policy> | null): boolean { | ||
| return getActiveAdminWorkspaces(policies).length > 0; | ||
| return getActiveAdminWorkspaces(policies).some((policy) => policy?.areInvoicesEnabled); |
There was a problem hiding this comment.
The check is correct, but maybe we should update it later and leave a TODO for now?
Cause invoicing settings screen isn't ready yet, and this update will block users from invoice creation.
It relates to other places where we check for areInvoicesEnabled as well.
Maybe we should confirm it
There was a problem hiding this comment.
I got you. Let me clarify.
There was a problem hiding this comment.
Yeah that makes sense, let's put it as a todo and update it when the invoices screen is ready
There was a problem hiding this comment.
I've commented out some changes to prevent the invoice creation from being blocked.
Commit - 4acdd47.
Video
Flow.mp4
There was a problem hiding this comment.
Can I open the PR for review?
…https://github.com/rezkiy37/Expensify into feature/45168-enabling-invoices-feature
…ture/45168-enabling-invoices-feature
madmax330
left a comment
There was a problem hiding this comment.
Looks good, I think we can get a c+ on it.
Just some small comments
…ture/45168-enabling-invoices-feature
|
@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] |
|
LGTM |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeweb-resize.mp4Android: mWeb Chromeweb-resize.mp4iOS: Nativeweb-resize.mp4iOS: mWeb Safariweb-resize.mp4MacOS: Chrome / Safariweb-resize.mp4MacOS: Desktopweb-resize.mp4 |
|
✋ 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/madmax330 in version: 9.0.18-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.18-10 🚀
|
Details
The PR introduces enabling invoices as a feature. This feature allows users to enable invoicing for their workspaces by adding a toggle in the workspace.
Fixed Issues
$ #45168
PROPOSAL: N/A
Tests
There was a decision (#46567 (comment)) to comment out some crucial changes to avoid blocking the invoice creation for the users. Please revert this commit (4acdd47) to test.
Offline tests
Same as "Tests".
QA Steps
Same as "Tests".
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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop