Skip to content

Commit

Permalink
from be3cbaf3dccb350e7cc530a8907026be38ac9d57
Browse files Browse the repository at this point in the history
  • Loading branch information
lache-melvin committed Oct 17, 2024
1 parent d171872 commit f489890
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 5 additions & 12 deletions content/docs/dispensary/prescriptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,14 +404,10 @@ You can delete multiple lines at once. Be sure to review what is selected before

## Backdating A Prescription

A prescription can be backdated by changing the Date field in the header.
A prescription can be backdated by changing the Date field in the header. This must be done before adding items to the prescription.

![Prescription Date UI Control](/docs/dispensary/images/prescription_backdate_highlight.png)

<div class="tip">
It is recommended to backdate the prescription before adding any items to the prescription, that way you'll see the stock available at that date.
</div>

#### Stock Levels

When adding items to a backdated prescription, the available stock will be adjusted to what was available at that date (and hasn't been used since).
Expand All @@ -423,16 +419,13 @@ The other fields still show the current state of the system.
If some stock you are expecting to see doesn't show as available, use the <a href="/docs/inventory/stock-view/#ledger-tab">Ledger</a> in Inventory -> Stock to see when that stock was received.
</div>

#### Errors when Backdating a Prescription
#### Changing the date after adding items

If you have already assigned stock to a prescription, and then you change the date of the prescription to a date before the stock was received, you may see an error message saying
`Stock not available on specified date`.
If you have already assigned stock to a prescription, and then you change the date of the prescription, you will see this warning:

![Backdating a Prescription Error](/docs/dispensary/images/prescription_backdate_stock_error.png)
![Backdating a Prescription - Delete lines](/docs/dispensary/images/prescription_backdate_delete_lines.png)

<div class="tip">
This means some of the stock you've selected was introduced after the date of the prescription. The best way to resolve this is to delete all lines from the prescription, change the date, then add the items again. You might have just selected the wrong date, so check that first!
</div>
The system needs to recalculate the available stock levels based on the new date, so existing lines will be removed and you'll need to add them again. Therefore, it is recommended to set the date before adding items to the prescription!

## Processing a Prescription

Expand Down

0 comments on commit f489890

Please sign in to comment.