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

(cherry picked from commit 7116d7ae0e)
This commit is contained in:
marination
2022-02-08 12:40:33 +05:30
committed by mergify-bot
parent 7fa46f77e0
commit c7b9df5aee

View File

@@ -280,6 +280,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()