Sha256: b04e3d5ea8428b131b82dec520028ac0cf7be81cc5c71db24d1b546db7def53b
Contents?: true
Size: 462 Bytes
Versions: 27
Compression:
Stored size: 462 Bytes
Contents
# frozen_string_literal: true 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, :down) reimbursement_list, _unpaid_amount = create_credits(reimbursement, unpaid_amount, simulate) reimbursement_list end end end end
Version data entries
27 entries across 27 versions & 2 rubygems