-
Notifications
You must be signed in to change notification settings - Fork 5
Add Invoice flow docs and refresh billing concept and reference for 3.1 #79
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
Open
gauritejusa
wants to merge
3
commits into
main
Choose a base branch
from
docs/invoice-flows
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "label": "Billing", | ||
| "position": 4, | ||
| "key": "billing-flows" | ||
| } |
5 changes: 5 additions & 0 deletions
5
versioned_docs/version-3.1/flows/billing/invoice/_category_.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "label": "Invoice", | ||
| "position": 1, | ||
| "key": "billing-invoice-flows" | ||
| } |
109 changes: 109 additions & 0 deletions
109
versioned_docs/version-3.1/flows/billing/invoice/cancel-invoice.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,109 @@ | ||
| --- | ||
| sidebar_position: 10 | ||
| --- | ||
|
|
||
| # Cancel an invoice | ||
|
|
||
| ## Overview | ||
|
|
||
| This flow describes how to void an [invoice](../../../concepts/billing/invoice.mdx) in Care. Void an invoice when the invoice is no longer collectible, or when someone raised the invoice by mistake. | ||
|
|
||
| ## Pre-requisites | ||
|
|
||
| - The invoice is raised at the facility, and you can open the invoice. | ||
| - You know why you void the invoice. The invoice is no longer collectible, or someone recorded the invoice by mistake. | ||
| - If the invoice is locked, you have the extra permission listed below. | ||
| - You have the permissions listed below. | ||
|
|
||
| ## Permissions | ||
|
|
||
| | Permission | Access | | ||
| | --- | --- | | ||
| | Can Read Invoice | Lets you open the invoice. | | ||
| | Can Write Invoice | Lets you cancel an invoice inside the free-cancel period. | | ||
| | Can Destroy Invoice | Lets you cancel an invoice after the free-cancel period. Granted to the Facility Admin role and the Admin role. | | ||
| | Can Manage Locked Invoice | Needed in addition if the invoice is locked. | | ||
|
|
||
| :::info The free-cancel period | ||
| The permission that Care needs depends on the age of the invoice. Inside the free-cancel period after the invoice was created, Can Write Invoice is enough. After that period, Care needs Can Destroy Invoice. The length of the free-cancel period is a deployment setting. The period is zero minutes unless your deployment changes the setting. With the default setting, a cancellation always needs Can Destroy Invoice. | ||
| ::: | ||
|
|
||
| :::warning | ||
| The invoice screens do not hide these menu items. A user without the permission sees the menu items. Care refuses the action and shows the message "Cannot cancel invoice". | ||
| ::: | ||
|
|
||
| ## Steps | ||
|
|
||
| ### 1. Open the invoice | ||
|
|
||
| 1. Select **Billing** in the facility sidebar. | ||
| 2. Select **Invoices**. | ||
| 3. Select **See Invoice** for the invoice that you want to void. | ||
|
|
||
| ### 2. Open the more-options menu | ||
|
|
||
| Select the more-options menu next to **Print**. The more-options menu shows a vertical ellipsis. | ||
|
|
||
| ### 3. Select the menu item for your reason | ||
|
|
||
| The menu has two choices. | ||
|
|
||
| | Menu item | When to use the menu item | | ||
| | --- | --- | | ||
| | **Mark as Cancelled** | The invoice is no longer collectible. | | ||
| | **Mark as entered in error** | Someone recorded the invoice by mistake. Care retracts the invoice. | | ||
|
|
||
| ### 4. Confirm the action | ||
|
|
||
| Care shows a dialog with the title **Confirm**. | ||
|
|
||
| - For **Mark as Cancelled**, the dialog reads "Are you sure you want to mark this invoice as cancelled?". | ||
| - For **Mark as entered in error**, the dialog reads "Are you sure you want to mark this invoice as entered in error?". | ||
|
|
||
| Select **Confirm** to continue. Select **Cancel** to keep the invoice. | ||
|
|
||
| ### 5. Review the active payments and credit notes | ||
|
|
||
| If the invoice has active payments or credit notes, Care shows a second step. The heading is "Cancel Invoice with Active Payments". For the other menu item, the heading is "Mark as Entered in Error with Active Payments". | ||
|
|
||
| The step reads: "This invoice has active payments or credit notes. Cancelling this invoice will not automatically cancel those transactions. You may need to cancel the payments or issue refunds as needed." | ||
|
|
||
| Care lists the **Active Payments** and the **Active Credit Notes** with their totals. Read the lists before you continue. | ||
|
|
||
| Select **Proceed** to void the invoice. Select **Cancel** to keep the invoice. | ||
|
|
||
| :::warning Care does not reverse the money | ||
| Care does not reverse the payments and the credit notes that you recorded against the invoice. Cancel those payments separately, or issue the refunds separately. See [Record a payment against an invoice](./record-invoice-payment.mdx). | ||
| ::: | ||
|
|
||
| ## Expected Outcome | ||
|
|
||
| - Care shows the message "Invoice cancelled successfully". | ||
| - The status badge changes to **Cancelled** or to **Entered in Error**. | ||
| - Every charge item on the invoice returns to the status Billable. Care clears the link to the invoice and the paid date. You can put those charge items on a new invoice. | ||
| - Care keeps the payments and the credit notes that you already recorded. | ||
| - If the action fails, Care shows the message "Failed to cancel invoice". | ||
|
|
||
| :::note Both statuses are end states | ||
| You cannot void the invoice a second time. Care answers "Invoice is already cancelled". You cannot move the invoice back to **Draft**, **Issued**, or **Balanced**. Care answers "Invoice is already cancelled" again. | ||
|
|
||
| An ordinary status change cannot reach **Cancelled** or **Entered in Error**. Care answers "Call the cancel invoice API to cancel the invoice". Use the menu items in this flow. | ||
| ::: | ||
|
|
||
| ## Related | ||
|
|
||
| Concepts: | ||
|
|
||
| - [Invoice](../../../concepts/billing/invoice.mdx) | ||
|
|
||
| Flows: | ||
|
|
||
| - [Issue an invoice](./issue-invoice.mdx) | ||
| - [Mark an invoice as balanced](./mark-invoice-as-balanced.mdx) | ||
| - [Record a payment against an invoice](./record-invoice-payment.mdx) | ||
|
|
||
| References: | ||
|
|
||
| - [Invoice](../../../references/billing/invoice.mdx) | ||
| - [Charge Item](../../../references/billing/charge-item.mdx) | ||
| - [Payment Reconciliation](../../../references/billing/payment-reconciliation.mdx) |
137 changes: 137 additions & 0 deletions
137
versioned_docs/version-3.1/flows/billing/invoice/create-invoice.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,137 @@ | ||
| --- | ||
| sidebar_position: 2 | ||
| --- | ||
|
|
||
| # Create an invoice | ||
|
|
||
| ## Overview | ||
|
|
||
| This flow describes how to build a draft [invoice](../../../concepts/billing/invoice.mdx) from the billable charge items on a billing account of a patient. | ||
|
|
||
| ## Pre-requisites | ||
|
|
||
| - The patient has a billing account at the facility. | ||
| - The account is active and billable. Care shows the **Create Invoice** button only for an active and billable account. | ||
| - The account has charge items with the status Billable, or you add charge items in this flow. | ||
| - The account belongs to the facility that you work in. | ||
| - You have the permissions listed below. | ||
|
|
||
| ## Permissions | ||
|
|
||
| | Permission | Access | | ||
| | --- | --- | | ||
| | Can Write Invoice | Lets you create an invoice in the facility. | | ||
| | Can Read Invoice | Lets you open the invoice after Care creates it. | | ||
|
|
||
| ## Steps | ||
|
|
||
| ### 1. Open the billing account | ||
|
|
||
| 1. In the facility sidebar, select **Billing**. | ||
| 2. Select **Accounts**. | ||
| 3. Select the account. | ||
|
|
||
| ### 2. Start the invoice | ||
|
|
||
| Select **Create Invoice**. On a small screen the same button reads **Invoice**. | ||
|
|
||
| Note: Press `c` on the account screen to start the invoice. | ||
|
|
||
| Care opens the **Create Invoice** screen. The top of the screen shows the patient name, the account, and the account status. A **Draft** badge is next to the page title. | ||
|
|
||
| ### 3. Select the items to bill | ||
|
|
||
| The screen lists the charge items on the account that have the status Billable. The oldest charge item is first. Select the checkbox for each charge item to include. | ||
|
|
||
| The table shows these columns. | ||
|
|
||
| | Components | What it captures | | ||
| | --- | --- | | ||
| | Items | The charge item to bill. | | ||
| | Quantity | The number of units. | | ||
| | Unit Price | The price for one unit. | | ||
| | Performer | The user who did the work. | | ||
| | Amount | The total for the line. | | ||
|
|
||
| **Unit Price** and **Amount** show the configured currency symbol. | ||
|
|
||
| If the account has no billable charge item, Care shows "No Billable Items Found". If more charge items exist, select **Load more**. | ||
|
|
||
| ### 4. Add more charge items | ||
|
|
||
| To add a charge item that is not in the list, use one of these actions. | ||
|
|
||
| - Select **Quick Add** to open the quick add sheet. | ||
| - Select **Add Charge Items** to open the full add sheet. | ||
|
|
||
| You can also add a charge item in the inline row on the screen. | ||
|
|
||
| | Components | What it captures | | ||
| | --- | --- | | ||
| | Charge item definition | The charge item to add. The placeholder is **Select charge item definition**. | | ||
| | Quantity | The number of units. The quantity must be more than zero. | | ||
| | Performer | The user who did the work. The placeholder is **Select performer**. Optional. | | ||
|
|
||
| Confirm the row to add the charge item. | ||
|
|
||
| Note: Press `Enter` to confirm the row. Press `Esc` to cancel the row. | ||
|
|
||
| Care shows "Charge items added successfully" when Care adds the charge items. Care shows "Failed to add charge items" when Care cannot add the charge items. Care shows "Quantity must be positive" when the quantity is zero or less. | ||
|
|
||
| ### 5. Check the total | ||
|
|
||
| Below the table Care shows the number of selected charge items. If you select no charge item, Care shows "No items selected". | ||
|
|
||
| Care also shows the **Invoice Total**, with the note "Includes all applicable taxes". | ||
|
|
||
| ### 6. Enter the optional details | ||
|
|
||
| Expand **Issue Date, Payment Terms & Note** to record more detail. All three fields are optional. | ||
|
|
||
| | Components | What it captures | | ||
| | --- | --- | | ||
| | Issue Date | The date and the time of issue. Select the values in the picker. You cannot enter a future date. | | ||
| | Payment Terms | The payment terms, as free text. The placeholder is **Enter Payment Terms**. Your deployment can set a default value. | | ||
| | Note | A free-text note for the invoice. The placeholder is **Enter Invoice Note**. | | ||
|
|
||
| Note: If you enter a future issue date, Care shows "Issue date cannot be in the future". | ||
|
|
||
| ### 7. Create the invoice | ||
|
|
||
| Select **Create Invoice**. The button reads **Creating** while Care creates the invoice. | ||
|
|
||
| To leave the screen without an invoice, select **Cancel**. | ||
|
|
||
| :::warning | ||
| If the account belongs to another facility, Care refuses the request with "Account is not associated with the facility". | ||
| ::: | ||
|
|
||
| ## Expected Outcome | ||
|
|
||
| - Care shows "Invoice Created Successfully" and opens the new invoice. | ||
| - The status of the new invoice is Draft. | ||
| - Care accepts only the charge items on the account that have the status Billable. Care drops every other selected charge item without a message. | ||
| - Each included charge item changes from Billable to Billed, and links to the invoice. | ||
| - Care generates the invoice number from the invoice number expression of the facility, unless the invoice has a supplied number. The expression can use the invoice count of the facility and the current year. | ||
| - Care computes the net total as the base amounts, plus the surcharges, minus the discounts. The gross total adds the tax. | ||
| - Care recalculates the balance of the account. | ||
| - Care takes the patient from the account. You never select the patient. | ||
|
|
||
| ## Related | ||
|
|
||
| Concepts: | ||
|
|
||
| - [Invoice](../../../concepts/billing/invoice.mdx) | ||
|
|
||
| Flows: | ||
|
|
||
| - [View invoices](./view-invoices.mdx) | ||
| - [Edit the items on an invoice](./edit-invoice-items.mdx) | ||
| - [Edit invoice details](./edit-invoice-details.mdx) | ||
| - [Issue an invoice](./issue-invoice.mdx) | ||
|
|
||
| References: | ||
|
|
||
| - [Invoice](../../../references/billing/invoice.mdx) | ||
| - [Charge Item](../../../references/billing/charge-item.mdx) | ||
| - [Account](../../../references/billing/account.mdx) | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.