fix: Item Tax Template check on company field
This commit is contained in:
parent
015910b4c4
commit
ad3d44d622
@ -41,12 +41,13 @@
|
||||
"fieldtype": "Link",
|
||||
"in_list_view": 1,
|
||||
"label": "Company",
|
||||
"options": "Company"
|
||||
"options": "Company",
|
||||
"read_only": 1
|
||||
}
|
||||
],
|
||||
"idx": 1,
|
||||
"istable": 1,
|
||||
"modified": "2020-06-18 02:30:44.610171",
|
||||
"modified": "2020-06-18 22:53:44.546967",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Stock",
|
||||
"name": "Item Tax",
|
||||
|
@ -413,7 +413,7 @@ def get_item_tax_info(company, tax_category, item_codes):
|
||||
continue
|
||||
out[item_code] = {}
|
||||
item = frappe.get_cached_doc("Item", item_code)
|
||||
get_item_tax_template({"tax_category": tax_category}, item, out[item_code])
|
||||
get_item_tax_template({"company": company, "tax_category": tax_category}, item, out[item_code])
|
||||
out[item_code]["item_tax_rate"] = get_item_tax_map(company, out[item_code].get("item_tax_template"), as_json=True)
|
||||
|
||||
return out
|
||||
|
Loading…
x
Reference in New Issue
Block a user