fix: precision on work order total qty (#45341)

* fix: precision on work order total qty

* chore: linters
This commit is contained in:
Dany Robert
2025-01-21 20:18:26 +05:30
committed by GitHub
parent 10d99f4bc9
commit 53468202de

View File

@@ -348,7 +348,7 @@ class WorkOrder(Document):
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: