Skip to content

Commit

Permalink
Merge branch 'develop' into fix-singles
Browse files Browse the repository at this point in the history
  • Loading branch information
akurungadam authored Dec 3, 2024
2 parents 13f9034 + 063607a commit 00e6f1c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def get_drug_shortage_map(medication_orders, warehouse):

drug_shortage = dict()
for drug, required_qty in drug_requirement.items():
available_qty = get_latest_stock_qty(drug, warehouse)
available_qty = get_latest_stock_qty(drug, warehouse) or 0
if flt(required_qty) > flt(available_qty):
drug_shortage[drug] = flt(flt(required_qty) - flt(available_qty))

Expand Down

0 comments on commit 00e6f1c

Please sign in to comment.