Stock Entry: get fg item incoming rate if bom is mentioned

This commit is contained in:
Anand Doshi 2014-06-18 14:05:29 +05:30
parent a469954ef3
commit 222b7b660e

View File

@ -228,7 +228,7 @@ class StockEntry(StockController):
raw_material_cost += flt(d.amount) raw_material_cost += flt(d.amount)
# set incoming rate for fg item # set incoming rate for fg item
if self.production_order and self.purpose == "Manufacture/Repack": if self.purpose == "Manufacture/Repack":
for d in self.get("mtn_details"): for d in self.get("mtn_details"):
if d.bom_no: if d.bom_no:
if not flt(d.incoming_rate): if not flt(d.incoming_rate):