mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-06 06:58:27 +00:00
fix(production_plan): Allow work orders to be cancelled (#15955)
This commit is contained in:
@@ -210,9 +210,10 @@ class ProductionPlan(Document):
|
||||
|
||||
def set_status(self):
|
||||
self.status = {
|
||||
'0': 'Draft',
|
||||
'1': 'Submitted'
|
||||
}[cstr(self.docstatus or 0)]
|
||||
0: 'Draft',
|
||||
1: 'Submitted',
|
||||
2: 'Cancelled'
|
||||
}.get(self.docstatus)
|
||||
|
||||
if self.total_produced_qty > 0:
|
||||
self.status = "In Process"
|
||||
|
||||
Reference in New Issue
Block a user