commit | 7116d7ae0eabe9c31e03b84466ba74751e9479a9 | [log] [tgz] |
---|---|---|
author | marination <maricadsouza221197@gmail.com> | Tue Feb 08 12:40:33 2022 +0530 |
committer | marination <maricadsouza221197@gmail.com> | Tue Feb 08 12:40:33 2022 +0530 |
tree | c21536262ef276be431305948e86c575aef52439 | |
parent | 5e32b809cb022a5b3263a8630bdb2ecf37f1b69b [diff] |
fix: Set Pending Qty in Prod Plan after updating Work Order
diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.py b/erpnext/manufacturing/doctype/production_plan/production_plan.py index 4290ca3..a6d4dfc 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.py +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.py
@@ -279,6 +279,7 @@ 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()