Remove included_tax scope from Adjustment

This scope is no longer used, and it's name is exactly the same as other method names and database columns on multiple objects, which is quite confusing.
This commit is contained in:
Matt-Yorkley
2021-04-06 12:42:14 +01:00
parent 2ee15838d9
commit 61b41491fe

View File

@@ -72,9 +72,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') }