diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py index d53a67eff70..4bf94541b83 100644 --- a/erpnext/controllers/accounts_controller.py +++ b/erpnext/controllers/accounts_controller.py @@ -3312,6 +3312,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"), } ) diff --git a/erpnext/controllers/queries.py b/erpnext/controllers/queries.py index 397622a572e..d2563aadf15 100644 --- a/erpnext/controllers/queries.py +++ b/erpnext/controllers/queries.py @@ -843,6 +843,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"), } ) diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index 0430bf71da9..a2454f31f8f 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -2503,6 +2503,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)