fix(translations): Incorrect syntax

This commit is contained in:
Suraj Shetty
2020-01-29 15:34:06 +05:30
parent 2f67647f7b
commit da2c69e836
6 changed files with 14 additions and 14 deletions

View File

@@ -500,8 +500,8 @@ class BuyingController(StockController):
item_row = item_row.as_dict()
for fieldname in field_list:
if flt(item_row[fieldname]) < 0:
frappe.throw(_("Row #{0}: {1} can not be negative for item {2}".format(item_row['idx'],
frappe.get_meta(item_row.doctype).get_label(fieldname), item_row['item_code'])))
frappe.throw(_("Row #{0}: {1} can not be negative for item {2}").format(item_row['idx'],
frappe.get_meta(item_row.doctype).get_label(fieldname), item_row['item_code']))
def check_for_on_hold_or_closed_status(self, ref_doctype, ref_fieldname):
for d in self.get("items"):