diff --git a/erpnext/controllers/buying_controller.py b/erpnext/controllers/buying_controller.py index 8fa8fa3ada6..d4e69cf46e9 100644 --- a/erpnext/controllers/buying_controller.py +++ b/erpnext/controllers/buying_controller.py @@ -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)