Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Keep the unusable-exemption error reachable when a host swaps the resolver
Łukasz Adamczyke25eb358a1f0
diff --git a/spree/core/app/services/spree/tax/resolve_exemptions.rb b/spree/core/app/services/spree/tax/resolve_exemptions.rbindex 6f0b2f89f5..391bf94cc2 100644--- a/spree/core/app/services/spree/tax/resolve_exemptions.rb+++ b/spree/core/app/services/spree/tax/resolve_exemptions.rb@@ -1,10 +1,5 @@module Spreemodule Tax- # Raised for reporting when an exemption reaches core in a state that would- # widen rather than narrow a claim. Reported, never raised at the customer:- # the sale continues with tax charged.- class UnusableExemptionError < StandardError; end-# Assembles the exemption evidence for a sale, handed to the tax provider# as +estimate+'s +exemptions:+ input.#diff --git a/spree/core/app/services/spree/tax/unusable_exemption_error.rb b/spree/core/app/services/spree/tax/unusable_exemption_error.rbnew file mode 100644index 0000000000..81adcd74f4--- /dev/null+++ b/spree/core/app/services/spree/tax/unusable_exemption_error.rb@@ -0,0 +1,8 @@+module Spree+ module Tax+ # Raised for reporting when an exemption reaches core in a state that would+ # widen rather than narrow a claim. Reported, never raised at the customer:+ # the sale continues with tax charged.+ class UnusableExemptionError < StandardError; end+ end+end