Sha256: a6490b4119640bf5b97292678995729f6c6321b6a5d1f70f6f0a70324bfa9c9f
Contents?: true
Size: 507 Bytes
Versions: 106
Compression:
Stored size: 507 Bytes
Contents
# frozen_string_literal: true class Spree::ReimbursementType::OriginalPayment < Spree::ReimbursementType extend Spree::ReimbursementType::ReimbursementHelpers class << self def reimburse(reimbursement, return_items, simulate, _created_by) unpaid_amount = return_items.sum(&:total).round(2, :down) payments = reimbursement.order.payments.completed refund_list, _unpaid_amount = create_refunds(reimbursement, payments, unpaid_amount, simulate) refund_list end end end
Version data entries
106 entries across 106 versions & 1 rubygems