Update erpnext/production/doctype/bill_of_materials/bill_of_materials.py

This commit is contained in:
Nabin Hait 2012-02-23 10:46:24 +05:30
parent cab5b31ffa
commit 8569b7400a

View File

@ -268,7 +268,7 @@ class DocType:
def check_if_item_repeated(self, item, op, check_list): def check_if_item_repeated(self, item, op, check_list):
if [cstr(item), cstr(op)] in check_list: if [cstr(item), cstr(op)] in check_list:
msgprint("Item %s has been entered twice against same operation" % d.item_code, raise_exception = 1) msgprint("Item %s has been entered twice against same operation" % item, raise_exception = 1)
else: else:
check_list.append([cstr(item), cstr(op)]) check_list.append([cstr(item), cstr(op)])