lib/rock_rms/resources/refund.rb in rock_rms-5.11.0 vs lib/rock_rms/resources/refund.rb in rock_rms-5.12.0

- old
+ new

@@ -43,10 +43,12 @@ def refunded_details(details, transaction_amount, refund_amount) apportion_refund_amount_over_accounts(details, transaction_amount, refund_amount).map do |dt| { 'Amount' => -dt[:amount], - 'AccountId' => dt[:fund_id] + 'AccountId' => dt[:fund_id], + 'EntityTypeId' => dt[:entity_type_id], + 'EntityId' => dt[:entity_id] } end end def apportion_refund_amount_over_accounts(details, transaction_amount, refund_amount)