Sha256: 32482ed0ca909e4d767c1c55c256d9341232d9318f0590a2ee3976482a7dd3e0

Contents?: true

Size: 282 Bytes

Versions: 7

Compression:

Stored size: 282 Bytes

Contents

Spree::ReturnItem.class_eval do
  unless ::Returnly.is_solidus?
    attr_accessor :amount

    def amount
      self.total_excluding_vat + self.included_tax_total
    end


    def amount=(amount)
      self.total_excluding_vat  = amount - self.included_tax_total
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
spree-returnly-0.13.1 app/models/spree/return_item_decorator.rb
solidus-returnly-0.13.1 app/models/spree/return_item_decorator.rb
spree-returnly-0.13.0 app/models/spree/return_item_decorator.rb
solidus-returnly-0.13.0 app/models/spree/return_item_decorator.rb
solidus-returnly-0.12.0 app/models/spree/return_item_decorator.rb
solidus-returnly-0.11.0 app/models/spree/return_item_decorator.rb
solidus-returnly-0.10.0 app/models/spree/return_item_decorator.rb