Sha256: df1ac41c8705d300df8353a1d84896cf8d3b353497c64b1474f9e45cf65ab58c
Contents?: true
Size: 508 Bytes
Versions: 2
Compression:
Stored size: 508 Bytes
Contents
module Solidus module Returnly module Refund class AmountCalculator attr_accessor :refund def initialize(refund) self.refund = refund end def return_item_refund_amount(return_item) default_amount(return_item) end protected def default_amount(return_item) refund.refund_amount_per_item - Money.from_amount(return_item.total - return_item.pre_tax_amount) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus-returnly-0.4.3 | lib/solidus/returnly/refund/amount_calculator.rb |
solidus-returnly-0.4.2 | lib/solidus/returnly/refund/amount_calculator.rb |