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

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