fix: update the pending qty in production plan on completion of work order (#19180)

This commit is contained in:
rohitwaghchaure 2019-09-30 15:22:12 +05:30 committed by Nabin Hait
parent b54f0fb388
commit 8d889ef80e

View File

@ -195,6 +195,7 @@ class ProductionPlan(Document):
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()