Find adjustments with and without tax

This commit is contained in:
Rohan Mitchell
2015-05-15 11:57:01 +10:00
parent ca1d88d8b1
commit 0dcd8eb8cc
2 changed files with 17 additions and 0 deletions

View File

@@ -4,6 +4,8 @@ module Spree
scope :enterprise_fee, where(originator_type: 'EnterpriseFee')
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')
attr_accessible :included_tax