*
* Generated from xml/schema/CRM/Financial/FinancialTrxn.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:d897b17ff4b5dee8e47c0c377658eddc)
+ * (GenCodeChecksum:21185c4929ef1a8d126c72733cc7ad1d)
*/
require_once 'CRM/Core/DAO.php';
require_once 'CRM/Utils/Type.php';
'title' => ts('Transaction ID') ,
'description' => 'Transaction id supplied by external processor. This may not be unique.',
'maxlength' => 255,
- 'size' => CRM_Utils_Type::HUGE,
+ 'size' => 10,
'table_name' => 'civicrm_financial_trxn',
'entity' => 'FinancialTrxn',
'bao' => 'CRM_Financial_DAO_FinancialTrxn',
'localizable' => 0,
+ 'html' => array(
+ 'type' => 'Text',
+ ) ,
) ,
'trxn_result_code' => array(
'name' => 'trxn_result_code',
$this->assign('paymentFields', $paymentFields);
foreach ($paymentFields as $name => $paymentField) {
if (!empty($paymentField['add_field'])) {
- $this->addField($name, $paymentField['attributes'], $paymentField['is_required']);
+ $attributes = array(
+ 'entity' => 'FinancialTrxn',
+ 'name' => $name,
+ );
+ $this->addField($name, $attributes, $paymentField['is_required']);
}
else {
$this->add($paymentField['htmlType'],
'payment_instrument_id' => array(
'is_required' => TRUE,
'add_field' => TRUE,
- 'attributes' => array(
- 'entity' => 'FinancialTrxn',
- 'name' => 'payment_instrument_id',
- ),
),
'check_number' => array(
'is_required' => FALSE,
'add_field' => TRUE,
- 'attributes' => array(
- 'entity' => 'FinancialTrxn',
- 'name' => 'check_number',
- ),
),
// @TODO we need to show card type icon in place of select field
'card_type_id' => array(
'is_required' => FALSE,
'add_field' => TRUE,
- 'attributes' => array(
- 'entity' => 'FinancialTrxn',
- 'name' => 'card_type_id',
- ),
),
'pan_truncation' => array(
'is_required' => FALSE,
'add_field' => TRUE,
- 'attributes' => array(
- 'entity' => 'FinancialTrxn',
- 'name' => 'pan_truncation',
- ),
),
'trxn_id' => array(
- 'htmlType' => 'text',
- 'title' => ts('Transaction ID'),
+ 'add_field' => TRUE,
'is_required' => FALSE,
- 'attributes' => array(
- 'size' => 6,
- ),
),
'trxn_date' => array(
'htmlType' => 'datepicker',