item validation in bom

This commit is contained in:
Nabin Hait 2014-12-31 12:37:11 +05:30
parent a74468b353
commit 5604f987f2

View File

@ -57,6 +57,9 @@ class BOM(Document):
last_purchase_rate, is_manufactured_item
from `tabItem` where name=%s""", item_code, as_dict = 1)
if not item:
frappe.throw(_("Item: {0} does not exist in the system").format(item_code))
return item
def validate_rm_item(self, item):