Sha256: a7a302f38f6391d62a6c525d31d4e1b902d119fa9fce24c885e9e5f075ce336d

Contents?: true

Size: 423 Bytes

Versions: 4

Compression:

Stored size: 423 Bytes

Contents

module Spree
  class ReimbursementType::Credit < Spree::ReimbursementType
    extend Spree::ReimbursementType::ReimbursementHelpers

    class << self
      def reimburse(reimbursement, return_items, simulate)
        unpaid_amount = return_items.sum(&:total).round(2)
        reimbursement_list, unpaid_amount = create_credits(reimbursement, unpaid_amount, simulate)
        reimbursement_list
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_core-2.4.0 app/models/spree/reimbursement_type/credit.rb
spree_core-2.4.0.rc3 app/models/spree/reimbursement_type/credit.rb
spree_core-2.4.0.rc2 app/models/spree/reimbursement_type/credit.rb
spree_core-2.4.0.rc1 app/models/spree/reimbursement_type/credit.rb