*
* Generated from xml/schema/CRM/Financial/FinancialType.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:fd432275b49386f3ed17cc5697280dc4)
+ * (GenCodeChecksum:d5785043e794b3d41c007f4ae2e1980d)
*/
/**
*/
public static $_tableName = 'civicrm_financial_type';
+ /**
+ * Field to show when displaying a record.
+ *
+ * @var string
+ */
+ public static $_labelField = 'name';
+
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
'entity' => 'FinancialType',
'bao' => 'CRM_Financial_BAO_FinancialType',
'localizable' => 0,
+ 'html' => [
+ 'type' => 'Number',
+ ],
'add' => '1.3',
],
'financial_type' => [
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Tax Deductible?'),
'description' => ts('Is this financial type tax-deductible? If true, contributions of this type may be fully OR partially deductible - non-deductible amount is stored in the Contribution record.'),
+ 'required' => TRUE,
'where' => 'civicrm_financial_type.is_deductible',
- 'default' => '1',
+ 'default' => '0',
'table_name' => 'civicrm_financial_type',
'entity' => 'FinancialType',
'bao' => 'CRM_Financial_BAO_FinancialType',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Financial Type is Reserved?'),
'description' => ts('Is this a predefined system object?'),
+ 'required' => TRUE,
'where' => 'civicrm_financial_type.is_reserved',
+ 'default' => '0',
'table_name' => 'civicrm_financial_type',
'entity' => 'FinancialType',
'bao' => 'CRM_Financial_BAO_FinancialType',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Financial Type Is Active?'),
'description' => ts('Is this property active?'),
+ 'required' => TRUE,
'where' => 'civicrm_financial_type.is_active',
+ 'default' => '1',
'table_name' => 'civicrm_financial_type',
'entity' => 'FinancialType',
'bao' => 'CRM_Financial_BAO_FinancialType',