----------------------------------------
* CRM-15721: Associate contributions with the payment processor used to make it
https://issues.civicrm.org/jira/browse/CRM-15721
if ($values['to_financial_account_id']) {
$values['to_financial_account'] = CRM_Contribute_PseudoConstant::financialAccount($values['to_financial_account_id']);
}
+ $values['payment_processor_id'] = CRM_Core_DAO::getFieldValue('CRM_Financial_DAO_FinancialTrxn', $financialTrxnId['financialTrxnId'], 'payment_processor_id');
+ if ($values['payment_processor_id']) {
+ $values['payment_processor_name'] = CRM_Core_DAO::getFieldValue('CRM_Financial_DAO_PaymentProcessor', $values['payment_processor_id'], 'name');
+ }
}
if (!empty($values['contribution_recur_id'])) {
{/if}
<tr>
<td class="label">{ts}Paid By{/ts}</td>
- <td>{$payment_instrument}</td>
+ <td>{$payment_instrument}{if $payment_processor_name} ({$payment_processor_name}){/if}</td>
</tr>
{if $payment_instrument eq 'Check'|ts}