Fixed planned qty bug and patch to recalculate planned qty

This commit is contained in:
Nabin Hait 2014-01-27 14:58:55 +05:30
parent fa9fabaa49
commit b3d26c08f6
2 changed files with 3 additions and 1 deletions

View File

@ -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",
]

View File

@ -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":