diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py index df7452c0a01..55889c3b4c3 100644 --- a/erpnext/controllers/accounts_controller.py +++ b/erpnext/controllers/accounts_controller.py @@ -3291,6 +3291,7 @@ def set_child_tax_template_and_map(item, child_item, parent_doc): "posting_date": parent_doc.transaction_date, "tax_category": parent_doc.get("tax_category"), "company": parent_doc.get("company"), + "base_net_rate": item.get("base_net_rate"), } child_item.item_tax_template = _get_item_tax_template(args, item.taxes) diff --git a/erpnext/controllers/queries.py b/erpnext/controllers/queries.py index f124bfdbfc8..e9177f84fcc 100644 --- a/erpnext/controllers/queries.py +++ b/erpnext/controllers/queries.py @@ -837,6 +837,7 @@ def get_tax_template(doctype, txt, searchfield, start, page_len, filters): "posting_date": valid_from, "tax_category": filters.get("tax_category"), "company": company, + "base_net_rate": filters.get("base_net_rate"), } taxes = _get_item_tax_template(args, taxes, for_validate=True) diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index a98cb450eb3..2fab91cbf88 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -2479,6 +2479,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe 'item_code': item.item_code, 'valid_from': ["<=", doc.transaction_date || doc.bill_date || doc.posting_date], 'item_group': item.item_group, + "base_net_rate": item.base_net_rate, } if (doc.tax_category)