fix: update the pending qty in production plan on completion of work order (#19180)
This commit is contained in:
parent
b54f0fb388
commit
8d889ef80e
@ -195,6 +195,7 @@ class ProductionPlan(Document):
|
||||
for data in self.po_items:
|
||||
if data.name == production_plan_item:
|
||||
data.produced_qty = produced_qty
|
||||
data.pending_qty = data.planned_qty - data.produced_qty
|
||||
data.db_update()
|
||||
|
||||
self.calculate_total_produced_qty()
|
||||
|
Loading…
x
Reference in New Issue
Block a user