fix: Set Pending Qty in Prod Plan after updating Work Order
This commit is contained in:
parent
5e32b809cb
commit
7116d7ae0e
@ -279,6 +279,7 @@ class ProductionPlan(Document):
|
||||
for data in self.po_items:
|
||||
if data.name == production_plan_item:
|
||||
data.produced_qty = produced_qty
|
||||
data.pending_qty = flt(data.planned_qty - produced_qty)
|
||||
data.db_update()
|
||||
|
||||
self.calculate_total_produced_qty()
|
||||
|
Loading…
x
Reference in New Issue
Block a user