mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
Fixed planned qty bug and patch to recalculate planned qty
This commit is contained in:
@@ -268,4 +268,5 @@ patch_list = [
|
|||||||
"patches.1401.update_billing_status_for_zero_value_order",
|
"patches.1401.update_billing_status_for_zero_value_order",
|
||||||
"patches.1401.enable_all_price_list",
|
"patches.1401.enable_all_price_list",
|
||||||
"patches.1401.fix_serial_no_status_and_warehouse",
|
"patches.1401.fix_serial_no_status_and_warehouse",
|
||||||
|
"patches.1401.fix_planned_qty",
|
||||||
]
|
]
|
||||||
@@ -346,7 +346,8 @@ class DocType(StockController):
|
|||||||
pro_bean = webnotes.bean("Production Order", self.doc.production_order)
|
pro_bean = webnotes.bean("Production Order", self.doc.production_order)
|
||||||
_validate_production_order(pro_bean)
|
_validate_production_order(pro_bean)
|
||||||
self.update_produced_qty(pro_bean)
|
self.update_produced_qty(pro_bean)
|
||||||
self.update_planned_qty(pro_bean)
|
if self.doc.purpose == "Manufacture/Repack":
|
||||||
|
self.update_planned_qty(pro_bean)
|
||||||
|
|
||||||
def update_produced_qty(self, pro_bean):
|
def update_produced_qty(self, pro_bean):
|
||||||
if self.doc.purpose == "Manufacture/Repack":
|
if self.doc.purpose == "Manufacture/Repack":
|
||||||
|
|||||||
Reference in New Issue
Block a user