Skip to content

Commit

Permalink
fix: precision on work order total qty (#45341)
Browse files Browse the repository at this point in the history
* fix: precision on work order total qty

* chore: linters
  • Loading branch information
rtdany10 authored Jan 21, 2025
1 parent 10d99f4 commit 5346820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/manufacturing/doctype/work_order/work_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def get_status(self, status=None):
if flt(self.material_transferred_for_manufacturing) > 0:
status = "In Process"

total_qty = flt(self.produced_qty) + flt(self.process_loss_qty)
total_qty = flt(flt(self.produced_qty) + flt(self.process_loss_qty), self.precision("qty"))
if flt(total_qty) >= flt(self.qty):
status = "Completed"
else:
Expand Down

0 comments on commit 5346820

Please sign in to comment.