*
* Generated from xml/schema/CRM/Price/LineItem.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:588f54f07db70f636888c88374b6b5b1)
+ * (GenCodeChecksum:27940b7d9e1152223c1fde0e32a8e909)
*/
/**
*/
public $tax_amount;
+ /**
+ * Number of terms for this membership (only supported in Order->Payment flow). If the field is NULL it means unknown and it will be assumed to be 1 during payment.create if entity_table is civicrm_membership
+ *
+ * @var int
+ */
+ public $membership_num_terms;
+
/**
* Class constructor.
*/
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
'where' => 'civicrm_line_item.label',
- 'default' => 'NULL',
+ 'default' => NULL,
'table_name' => 'civicrm_line_item',
'entity' => 'LineItem',
'bao' => 'CRM_Price_BAO_LineItem',
'title' => ts('Line Item Participant Count'),
'description' => ts('Participant count for field'),
'where' => 'civicrm_line_item.participant_count',
- 'default' => 'NULL',
+ 'default' => NULL,
'table_name' => 'civicrm_line_item',
'entity' => 'LineItem',
'bao' => 'CRM_Price_BAO_LineItem',
'title' => ts('Option ID'),
'description' => ts('FK to civicrm_price_field_value'),
'where' => 'civicrm_line_item.price_field_value_id',
- 'default' => 'NULL',
+ 'default' => NULL,
'table_name' => 'civicrm_line_item',
'entity' => 'LineItem',
'bao' => 'CRM_Price_BAO_LineItem',
'title' => ts('Financial Type ID'),
'description' => ts('FK to Financial Type.'),
'where' => 'civicrm_line_item.financial_type_id',
- 'default' => 'NULL',
+ 'default' => NULL,
'table_name' => 'civicrm_line_item',
'entity' => 'LineItem',
'bao' => 'CRM_Price_BAO_LineItem',
],
'add' => '4.6',
],
+ 'membership_num_terms' => [
+ 'name' => 'membership_num_terms',
+ 'type' => CRM_Utils_Type::T_INT,
+ 'title' => ts('Number of membership terms purchased'),
+ 'description' => ts('Number of terms for this membership (only supported in Order->Payment flow). If the field is NULL it means unknown and it will be assumed to be 1 during payment.create if entity_table is civicrm_membership'),
+ 'where' => 'civicrm_line_item.membership_num_terms',
+ 'default' => NULL,
+ 'table_name' => 'civicrm_line_item',
+ 'entity' => 'LineItem',
+ 'bao' => 'CRM_Price_BAO_LineItem',
+ 'localizable' => 0,
+ 'add' => '5.40',
+ ],
];
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
}