mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-11 13:41:47 +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"]:
|
||||
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")
|
||||
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):
|
||||
|
||||
Reference in New Issue
Block a user