commit | d436a407390c0e0d89c66445539bbb95784be7eb | [log] [tgz] |
---|---|---|
author | Gursheen Anand <gursheen@frappe.io> | Wed Oct 25 13:06:03 2023 +0530 |
committer | Gursheen Anand <gursheen@frappe.io> | Wed Oct 25 13:06:03 2023 +0530 |
tree | dce64fb25a90e33cbed504b298017178ea1261ba | |
parent | 5deba1b6f9b03ce5d078d624e339f6b0209a1555 [diff] |
fix: only update if variant table empty
diff --git a/erpnext/stock/get_item_details.py b/erpnext/stock/get_item_details.py index 8c6fd84..d199907 100644 --- a/erpnext/stock/get_item_details.py +++ b/erpnext/stock/get_item_details.py
@@ -268,7 +268,7 @@ if not item: item = frappe.get_doc("Item", args.get("item_code")) - if item.variant_of: + if item.variant_of and not item.taxes: item.update_template_tables() item_defaults = get_item_defaults(item.name, args.company)