fix: default use_for_shopping_cart to 0 in set_taxes

Ensures regular transactions only match tax rules where
use_for_shopping_cart = 0, preventing webshop-specific rules
from applying to standard documents.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
(cherry picked from commit 4d43c74f5f)
This commit is contained in:
diptanilsaha
2026-05-21 12:16:22 +05:30
committed by Mergify
parent c45d2a3487
commit 54be4ee275

View File

@@ -750,7 +750,7 @@ def set_taxes(
args.update({"tax_type": "Purchase"})
if use_for_shopping_cart:
args.update({"use_for_shopping_cart": use_for_shopping_cart})
args.update({"use_for_shopping_cart": cint(use_for_shopping_cart)})
return get_tax_template(posting_date, args)