mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-02 08:03:21 +00:00
fix: work order status should be in process if material transfer is s… (#55641)
This commit is contained in:
@@ -124,7 +124,11 @@ class StatusService:
|
|||||||
if status in ["Closed", "Stopped"]:
|
if status in ["Closed", "Stopped"]:
|
||||||
return status
|
return status
|
||||||
|
|
||||||
status = "In Process" if flt(self.doc.material_transferred_for_manufacturing) > 0 else "Not Started"
|
status = (
|
||||||
|
"In Process"
|
||||||
|
if flt(self.doc.material_transferred_for_manufacturing) > 0 or self.doc.skip_transfer
|
||||||
|
else "Not Started"
|
||||||
|
)
|
||||||
precision = frappe.get_precision("Work Order", "produced_qty")
|
precision = frappe.get_precision("Work Order", "produced_qty")
|
||||||
total_qty = flt(self.doc.produced_qty, precision) + flt(self.doc.process_loss_qty, precision)
|
total_qty = flt(self.doc.produced_qty, precision) + flt(self.doc.process_loss_qty, precision)
|
||||||
if flt(total_qty, precision) >= flt(self.doc.qty, precision):
|
if flt(total_qty, precision) >= flt(self.doc.qty, precision):
|
||||||
|
|||||||
Reference in New Issue
Block a user