mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Loosen Spree::Adjustment#tax scope to include any tax adjustments
This commit is contained in:
@@ -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') }
|
||||
|
||||
Reference in New Issue
Block a user