From 7981ea0e6cd6894051ae5ef65da96b3c0919f20b Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 1 May 2015 11:10:13 +0530 Subject: [PATCH] duplicate item message --- erpnext/buying/doctype/purchase_common/purchase_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/buying/doctype/purchase_common/purchase_common.py b/erpnext/buying/doctype/purchase_common/purchase_common.py index d09768ecca..21791f771d 100644 --- a/erpnext/buying/doctype/purchase_common/purchase_common.py +++ b/erpnext/buying/doctype/purchase_common/purchase_common.py @@ -72,8 +72,8 @@ class PurchaseCommon(BuyingController): frappe.throw(_("{0} must be a Purchased or Sub-Contracted Item in row {1}").format(d.item_code, d.idx)) items.append(cstr(d.item_code)) - if items and len(items) != len(set(items)): - frappe.msgprint(_("Warning: Same item has been entered multiple times.")) + if items and len(items) != len(set(items)): + frappe.msgprint(_("Warning: Same item has been entered multiple times.")) def check_for_stopped_status(self, doctype, docname):