Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix tests
Tomasz Szymanskie6bda18b3e38
diff --git a/saleor/plugins/avatax/plugin.py b/saleor/plugins/avatax/plugin.pyindex 9b27f0f0be..3978d357ac 100644--- a/saleor/plugins/avatax/plugin.py+++ b/saleor/plugins/avatax/plugin.py@@ -115,6 +115,15 @@ class AvataxPlugin(BasePlugin):if not self.active:return True+ # The previous plugin already calculated taxes so we can skip our logic+ if isinstance(previous_value, TaxedMoneyRange):+ start = previous_value.start+ stop = previous_value.stop++ return start.net != start.gross and stop.net != stop.gross++ if isinstance(previous_value, TaxedMoney):+ return previous_value.net != previous_value.grossreturn Falsedef _append_prices_of_not_taxed_lines(