mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
fix: Item Tax Template with no validity
This commit is contained in:
@@ -450,6 +450,7 @@ def _get_item_tax_template(args, taxes, out={}, for_validate=False):
|
|||||||
if getdate(tax.valid_from) <= getdate(validation_date):
|
if getdate(tax.valid_from) <= getdate(validation_date):
|
||||||
taxes_with_validity.append(tax)
|
taxes_with_validity.append(tax)
|
||||||
else:
|
else:
|
||||||
|
if tax.company == args['company']:
|
||||||
taxes_with_no_validity.append(tax)
|
taxes_with_no_validity.append(tax)
|
||||||
|
|
||||||
if taxes_with_validity:
|
if taxes_with_validity:
|
||||||
|
|||||||
Reference in New Issue
Block a user