mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-16 05:22:10 +00:00
fix: `base_net_rate` required to check valid range
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user