mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
Modified validation for duplicate item
This commit is contained in:
@@ -139,7 +139,7 @@ class DocType(TransactionBase):
|
|||||||
msgprint("Item %s has been entered twice." % d.item_code)
|
msgprint("Item %s has been entered twice." % d.item_code)
|
||||||
raise Exception
|
raise Exception
|
||||||
else:
|
else:
|
||||||
chk_dupl_itm.append(f)
|
chk_dupl_itm.append([cstr(d.item_code),cstr(d.description)])
|
||||||
|
|
||||||
|
|
||||||
#do not allow sales item in maintenance quotation and service item in sales quotation
|
#do not allow sales item in maintenance quotation and service item in sales quotation
|
||||||
|
|||||||
Reference in New Issue
Block a user