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