mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 15:39:20 +00:00
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:
@@ -743,7 +743,7 @@ def set_taxes(
|
|||||||
args.update({"tax_type": "Purchase"})
|
args.update({"tax_type": "Purchase"})
|
||||||
|
|
||||||
if use_for_shopping_cart:
|
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)
|
return get_tax_template(posting_date, args)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user