Sha256: 9a70a4abd98b5ffe64d9de3f50de52ae9ea64668b7191041a253915739ce8aea

Contents?: true

Size: 224 Bytes

Versions: 1

Compression:

Stored size: 224 Bytes

Contents

Spree::Adjustment.class_eval do
  scope :not_tax, -> { where.not(source_type: 'Spree::TaxRate') }

  def avatax_cache_key
    key = ['Spree::Adjustment']
    key << self.id
    key << self.amount
    key.join('-')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_avatax_certified-1.0.0 app/models/spree/adjustment_decorator.rb