Calculates the commission based on the fee/commission configuration and creates commission (fee) entries for the passed transaction.
Syntax
void
calculateCommission
(
final SubTransaction
txn
,
final Customer
payee
,
final Customer
payer
,
final Long
actor
)
Parameters
-
txn –
the transaction to calculate the commission for
-
payee –
commission beneficiary
-
payer –
commission payer
-
actor –
the current actor