Update erpnext/selling/doctype/quotation/quotation.py
This commit is contained in:
parent
4faf99424a
commit
efc2c327cf
@ -136,7 +136,7 @@ class DocType(TransactionBase):
|
|||||||
chk_dupl_itm = []
|
chk_dupl_itm = []
|
||||||
for d in getlist(self.doclist,'quotation_details'):
|
for d in getlist(self.doclist,'quotation_details'):
|
||||||
if [cstr(d.item_code),cstr(d.description)] in chk_dupl_itm:
|
if [cstr(d.item_code),cstr(d.description)] in chk_dupl_itm:
|
||||||
msgprint("Item %s has been entered twice." % d.item_code)
|
msgprint("Item %s has been entered twice. Please change atleast description to continue" % d.item_code)
|
||||||
raise Exception
|
raise Exception
|
||||||
else:
|
else:
|
||||||
chk_dupl_itm.append([cstr(d.item_code),cstr(d.description)])
|
chk_dupl_itm.append([cstr(d.item_code),cstr(d.description)])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user