Regenerate DAO files
[civicrm-core.git] / CRM / Financial / DAO / FinancialType.php
index d9b1ce7f58e422671a0b67c6948fde845ee7c794..7f7f99077316858782803b42a5e750dc9b40c3ff 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Financial/FinancialType.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:36875c58b3267bdc2def295713858868)
+ * (GenCodeChecksum:d5785043e794b3d41c007f4ae2e1980d)
  */
 
 /**
@@ -15,6 +15,7 @@
 class CRM_Financial_DAO_FinancialType extends CRM_Core_DAO {
   const EXT = 'civicrm';
   const TABLE_ADDED = '1.3';
+  const COMPONENT = 'CiviContribute';
 
   /**
    * Static instance to hold the table name.
@@ -23,6 +24,13 @@ class CRM_Financial_DAO_FinancialType extends CRM_Core_DAO {
    */
   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.
    *
@@ -109,6 +117,9 @@ class CRM_Financial_DAO_FinancialType extends CRM_Core_DAO {
           'entity' => 'FinancialType',
           'bao' => 'CRM_Financial_BAO_FinancialType',
           'localizable' => 0,
+          'html' => [
+            'type' => 'Number',
+          ],
           'add' => '1.3',
         ],
         'financial_type' => [
@@ -157,8 +168,9 @@ class CRM_Financial_DAO_FinancialType extends CRM_Core_DAO {
           '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',
@@ -174,7 +186,9 @@ class CRM_Financial_DAO_FinancialType extends CRM_Core_DAO {
           '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',
@@ -190,7 +204,9 @@ class CRM_Financial_DAO_FinancialType extends CRM_Core_DAO {
           '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',