Added code to display check number on edit payment form
This commit is contained in:
@ -209,4 +209,15 @@ function checknumberpaymentmethod_civicrm_buildForm($formName, &$form) {
|
||||
$form->assign('paymentTypeLabel', ts('Check Information'));
|
||||
}
|
||||
}
|
||||
if ('CRM_Financial_Form_PaymentEdit' == $formName) {
|
||||
$paymentInstrumentsFromSettings = civicrm_api3('Setting', 'getvalue', [
|
||||
'name' => 'check_payment_instrument_ids',
|
||||
]);
|
||||
$paymentInstrumentsFromSettings[] = (string) CRM_Core_PseudoConstant::getKey(
|
||||
'CRM_Contribute_BAO_Contribution',
|
||||
'payment_instrument_id',
|
||||
'Check'
|
||||
);
|
||||
$form->assign('paymentInstrumentsFromSettings', json_encode($paymentInstrumentsFromSettings));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user