Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add missing quantize method on checkout in Avatax plugin
Damian Wbfd45c560252
diff --git a/saleor/plugins/avatax/plugin.py b/saleor/plugins/avatax/plugin.pyindex f801cd391e..29828d1553 100644--- a/saleor/plugins/avatax/plugin.py+++ b/saleor/plugins/avatax/plugin.py@@ -139,8 +139,9 @@ class AvataxPlugin(BasePlugin):voucher_value = checkout.discountif voucher_value:total -= voucher_value- total = max(total, zero_taxed_money(total.currency))- return quantize_price(total, total.currency)+ return quantize_price(+ max(total, zero_taxed_money(total.currency)), total.currency+ )def _calculate_checkout_subtotal(self, currency: str, lines: List[Dict]