message fixed

This commit is contained in:
Nabin Hait 2015-05-13 17:21:44 +05:30
parent 96c4252762
commit e6e456b373

View File

@ -281,5 +281,5 @@ class BuyingController(StockController):
for d in self.get("items"):
if d.meta.get_field("stock_qty") and not d.stock_qty:
if not d.conversion_factor:
frappe.throw(_("Row {0}: Conversion Factor is mandatory"))
frappe.throw(_("Row {0}: Conversion Factor is mandatory").format(d.idx))
d.stock_qty = flt(d.qty) * flt(d.conversion_factor)