mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 13:09:17 +00:00
fix: update the pending qty in production plan on completion of work order (#19180)
This commit is contained in:
committed by
Nabin Hait
parent
b54f0fb388
commit
8d889ef80e
@@ -195,6 +195,7 @@ class ProductionPlan(Document):
|
|||||||
for data in self.po_items:
|
for data in self.po_items:
|
||||||
if data.name == production_plan_item:
|
if data.name == production_plan_item:
|
||||||
data.produced_qty = produced_qty
|
data.produced_qty = produced_qty
|
||||||
|
data.pending_qty = data.planned_qty - data.produced_qty
|
||||||
data.db_update()
|
data.db_update()
|
||||||
|
|
||||||
self.calculate_total_produced_qty()
|
self.calculate_total_produced_qty()
|
||||||
|
|||||||
Reference in New Issue
Block a user