Merge pull request #2539 from nabinhait/fix1

item validation in bom
This commit is contained in:
Nabin Hait 2014-12-31 12:37:38 +05:30
commit de0c87757a

View File

@ -57,6 +57,9 @@ class BOM(Document):
last_purchase_rate, is_manufactured_item last_purchase_rate, is_manufactured_item
from `tabItem` where name=%s""", item_code, as_dict = 1) 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 return item
def validate_rm_item(self, item): def validate_rm_item(self, item):