tab/app/models/concerns/transaction_helpers.rb
2017-01-09 16:40:58 +01:00

12 lines
232 B
Ruby

module TransactionHelpers
include ActiveSupport::Concern
def peer_of(user)
return creditor if user == debtor
return debtor if user == creditor
end
def is_client_transaction?
issuer_type == 'Client'
end
end