fix: Set Pending Qty in Prod Plan after updating Work Order

This commit is contained in:
marination 2022-02-08 12:40:33 +05:30
parent 5e32b809cb
commit 7116d7ae0e

View File

@ -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()