Fixed planned qty bug and patch to recalculate planned qty
This commit is contained in:
parent
fa9fabaa49
commit
b3d26c08f6
@ -268,4 +268,5 @@ patch_list = [
|
||||
"patches.1401.update_billing_status_for_zero_value_order",
|
||||
"patches.1401.enable_all_price_list",
|
||||
"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)
|
||||
_validate_production_order(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):
|
||||
if self.doc.purpose == "Manufacture/Repack":
|
||||
|
Loading…
x
Reference in New Issue
Block a user