Merge pull request #7328 from Matt-Yorkley/dead-scope

Remove included_tax scope from Adjustment
This commit is contained in:
Pau Pérez Fabregat
2021-04-09 09:03:47 +02:00
committed by GitHub

View File

@@ -74,9 +74,6 @@ module Spree
scope :enterprise_fee, -> { where(originator_type: 'EnterpriseFee') }
scope :admin, -> { where(source_type: nil, originator_type: nil) }
scope :included_tax, -> {
where(originator_type: 'Spree::TaxRate', adjustable_type: 'Spree::LineItem')
}
scope :with_tax, -> { where('spree_adjustments.included_tax <> 0') }
scope :without_tax, -> { where('spree_adjustments.included_tax = 0') }