mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-12 19:35:09 +00:00
[Fix] BOM validation issue for scrap item (#13429)
This commit is contained in:
committed by
Nabin Hait
parent
a4502c4f6b
commit
badc855400
@@ -602,6 +602,9 @@ def validate_bom_no(item, bom_no):
|
||||
for d in bom.items:
|
||||
if (d.item_code.lower() == item.lower()):
|
||||
rm_item_exists = True
|
||||
for d in bom.scrap_items:
|
||||
if (d.item_code.lower() == item.lower()):
|
||||
rm_item_exists = True
|
||||
if bom.item.lower() == item.lower() or \
|
||||
bom.item.lower() == cstr(frappe.db.get_value("Item", item, "variant_of")).lower():
|
||||
rm_item_exists = True
|
||||
|
||||
Reference in New Issue
Block a user