Loosen Spree::Adjustment#tax scope to include any tax adjustments

This commit is contained in:
Matt-Yorkley
2021-01-22 20:38:13 +00:00
parent ddfcda0c0b
commit 4d4c055577

View File

@@ -64,7 +64,7 @@ module Spree
end
end
scope :tax, -> { where(originator_type: 'Spree::TaxRate', adjustable_type: 'Spree::Order') }
scope :tax, -> { where(originator_type: 'Spree::TaxRate') }
scope :price, -> { where(adjustable_type: 'Spree::LineItem') }
scope :optional, -> { where(mandatory: false) }
scope :charge, -> { where('amount >= 0') }