From 4d43c74f5f7ebf3cb23ae64f178ba74f26988581 Mon Sep 17 00:00:00 2001 From: diptanilsaha Date: Thu, 21 May 2026 12:16:22 +0530 Subject: [PATCH] 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 --- erpnext/accounts/party.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/party.py b/erpnext/accounts/party.py index bb603c7bb1b..fa82b3e9188 100644 --- a/erpnext/accounts/party.py +++ b/erpnext/accounts/party.py @@ -762,7 +762,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)