commit | 8d889ef80e18ae6533d2686bae61d6226aaab2ca | [log] [tgz] |
---|---|---|
author | rohitwaghchaure <rohitw1991@gmail.com> | Mon Sep 30 15:22:12 2019 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Mon Sep 30 15:22:12 2019 +0530 |
tree | 1f989f14ed14b1b1adec5115105ea7a00d7dc291 | |
parent | b54f0fb388dfbb71fe845c91fb9ee7c7363faeda [diff] |
fix: update the pending qty in production plan on completion of work order (#19180)
diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.py b/erpnext/manufacturing/doctype/production_plan/production_plan.py index b51420f..04359e3 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.py +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.py
@@ -195,6 +195,7 @@ 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()