Merge pull request #34360 from s-aga-r/FIX-ITEM-ALTERNATIVE-ERR-MSG

chore: `Alternative Item Code` error msg
This commit is contained in:
Sagar Sharma 2023-03-09 10:07:35 +05:30 committed by GitHub
commit 428274df56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ class ItemAlternative(Document):
if not item_data.allow_alternative_item:
frappe.throw(alternate_item_check_msg.format(self.item_code))
if self.two_way and not alternative_item_data.allow_alternative_item:
frappe.throw(alternate_item_check_msg.format(self.item_code))
frappe.throw(alternate_item_check_msg.format(self.alternative_item_code))
def validate_duplicate(self):
if frappe.db.get_value(