Skip to content
Snippets Groups Projects
Commit 1f34d30a authored by ayduns's avatar ayduns
Browse files

financial#57 Add order_reference field

parent ded799d1
Branches
Tags
No related merge requests found
......@@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Financial/FinancialTrxn.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:ea6e4e27680634c1c2e4def15d91e02c)
* (GenCodeChecksum:30dff7f6f16ef7cd997187a202a59173)
*/
/**
......@@ -145,6 +145,13 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
*/
public $pan_truncation;
/**
* Payment Processor external order reference
*
* @var string
*/
public $order_reference;
/**
* Class constructor.
*/
......@@ -460,6 +467,22 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
'type' => 'Text',
],
],
'financial_trxn_order_reference' => [
'name' => 'order_reference',
'type' => CRM_Utils_Type::T_STRING,
'title' => ts('Order Reference'),
'description' => ts('Payment Processor external order reference'),
'maxlength' => 255,
'size' => 25,
'where' => 'civicrm_financial_trxn.order_reference',
'table_name' => 'civicrm_financial_trxn',
'entity' => 'FinancialTrxn',
'bao' => 'CRM_Financial_DAO_FinancialTrxn',
'localizable' => 0,
'html' => [
'type' => 'Text',
],
],
];
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
}
......
......@@ -81,6 +81,8 @@ class CRM_Upgrade_Incremental_php_FiveTwenty extends CRM_Upgrade_Incremental_Bas
'frontend_title', "varchar(255) DEFAULT NULL COMMENT 'Contribution Page Public title'", TRUE, '5.20.alpha1');
$this->addTask('Add is_template field to civicrm_contribution', 'addColumn', 'civicrm_contribution', 'is_template',
"tinyint(4) DEFAULT '0' COMMENT 'Shows this is a template for recurring contributions.'", FALSE, '5.20.alpha1');
$this->addTask('Add order_reference field to civicrm_financial_trxn', 'addColumn', 'civicrm_financial_trxn', 'order_reference',
"varchar(255) COMMENT 'Payment Processor external order reference'", FALSE, '5.20.alpha1');
$this->addTask(ts('Upgrade DB to %1: SQL', [1 => $rev]), 'runSql', $rev);
}
......
......@@ -286,4 +286,17 @@
<comment>Last 4 digits of credit card</comment>
<add>4.7</add>
</field>
<field>
<name>order_reference</name>
<uniqueName>financial_trxn_order_reference</uniqueName>
<title>Order Reference</title>
<type>varchar</type>
<length>255</length>
<html>
<type>Text</type>
<size>25</size>
</html>
<comment>Payment Processor external order reference</comment>
<add>5.20</add>
</field>
</table>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment