Merge pull request #14326 from civicrm/5.14
[civicrm-core.git] / CRM / Financial / DAO / FinancialAccount.php
index e3ecc12530b2cf05ace670345c2dcffb43536a31..5f0f5f1dc4e37a4b89d283ead2ab2f7461ec1e21 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Financial/FinancialAccount.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:99e6943d33c4b4081a8d74e611589dd7)
+ * (GenCodeChecksum:be1c13919aa1ff84b28ef61832132842)
  */
 
 /**
@@ -19,19 +19,19 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
    *
    * @var string
    */
-  static $_tableName = 'civicrm_financial_account';
+  public static $_tableName = 'civicrm_financial_account';
 
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
    * @var bool
    */
-  static $_log = TRUE;
+  public static $_log = TRUE;
 
   /**
    * ID
    *
-   * @var int unsigned
+   * @var int
    */
   public $id;
 
@@ -45,14 +45,14 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
   /**
    * FK to Contact ID that is responsible for the funds in this account
    *
-   * @var int unsigned
+   * @var int
    */
   public $contact_id;
 
   /**
    * pseudo FK into civicrm_option_value.
    *
-   * @var int unsigned
+   * @var int
    */
   public $financial_account_type_id;
 
@@ -80,28 +80,28 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
   /**
    * Parent ID in account hierarchy
    *
-   * @var int unsigned
+   * @var int
    */
   public $parent_id;
 
   /**
    * Is this a header account which does not allow transactions to be posted against it directly, but only to its sub-accounts?
    *
-   * @var boolean
+   * @var bool
    */
   public $is_header_account;
 
   /**
    * Is this account tax-deductible?
    *
-   * @var boolean
+   * @var bool
    */
   public $is_deductible;
 
   /**
    * Is this account for taxes?
    *
-   * @var boolean
+   * @var bool
    */
   public $is_tax;
 
@@ -115,21 +115,21 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
   /**
    * Is this a predefined system object?
    *
-   * @var boolean
+   * @var bool
    */
   public $is_reserved;
 
   /**
    * Is this property active?
    *
-   * @var boolean
+   * @var bool
    */
   public $is_active;
 
   /**
    * Is this account the default one (or default tax one) for its financial_account_type?
    *
-   * @var boolean
+   * @var bool
    */
   public $is_default;
 
@@ -149,7 +149,7 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
    */
   public static function getReferenceColumns() {
     if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
+      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
       Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
       Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'parent_id', 'civicrm_financial_account', 'id');
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
@@ -171,6 +171,7 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'title' => ts('Financial Account ID'),
           'description' => ts('ID'),
           'required' => TRUE,
+          'where' => 'civicrm_financial_account.id',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
           'bao' => 'CRM_Financial_BAO_FinancialAccount',
@@ -184,6 +185,7 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'required' => TRUE,
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_financial_account.name',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
           'bao' => 'CRM_Financial_BAO_FinancialAccount',
@@ -194,6 +196,7 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Contact ID'),
           'description' => ts('FK to Contact ID that is responsible for the funds in this account'),
+          'where' => 'civicrm_financial_account.contact_id',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
           'bao' => 'CRM_Financial_BAO_FinancialAccount',
@@ -206,6 +209,7 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'title' => ts('Financial Account Type'),
           'description' => ts('pseudo FK into civicrm_option_value.'),
           'required' => TRUE,
+          'where' => 'civicrm_financial_account.financial_account_type_id',
           'default' => '3',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
@@ -217,7 +221,7 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'pseudoconstant' => [
             'optionGroupName' => 'financial_account_type',
             'optionEditPath' => 'civicrm/admin/options/financial_account_type',
-          ]
+          ],
         ],
         'accounting_code' => [
           'name' => 'accounting_code',
@@ -226,10 +230,8 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'description' => ts('Optional value for mapping monies owed and received to accounting system codes.'),
           'maxlength' => 64,
           'size' => CRM_Utils_Type::BIG,
-          'export' => TRUE,
           'where' => 'civicrm_financial_account.accounting_code',
-          'headerPattern' => '',
-          'dataPattern' => '',
+          'export' => TRUE,
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
           'bao' => 'CRM_Financial_BAO_FinancialAccount',
@@ -242,10 +244,8 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'description' => ts('Optional value for mapping account types to accounting system account categories (QuickBooks Account Type Codes for example).'),
           'maxlength' => 64,
           'size' => CRM_Utils_Type::BIG,
-          'export' => TRUE,
           'where' => 'civicrm_financial_account.account_type_code',
-          'headerPattern' => '',
-          'dataPattern' => '',
+          'export' => TRUE,
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
           'bao' => 'CRM_Financial_BAO_FinancialAccount',
@@ -258,6 +258,7 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'description' => ts('Financial Type Description.'),
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_financial_account.description',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
           'bao' => 'CRM_Financial_BAO_FinancialAccount',
@@ -268,6 +269,7 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Financial Account Parent'),
           'description' => ts('Parent ID in account hierarchy'),
+          'where' => 'civicrm_financial_account.parent_id',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
           'bao' => 'CRM_Financial_BAO_FinancialAccount',
@@ -279,6 +281,7 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Header Financial Account?'),
           'description' => ts('Is this a header account which does not allow transactions to be posted against it directly, but only to its sub-accounts?'),
+          'where' => 'civicrm_financial_account.is_header_account',
           'default' => '0',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
@@ -290,6 +293,7 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Deductible Financial Account?'),
           'description' => ts('Is this account tax-deductible?'),
+          'where' => 'civicrm_financial_account.is_deductible',
           'default' => '1',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
@@ -301,6 +305,7 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Tax Financial Account?'),
           'description' => ts('Is this account for taxes?'),
+          'where' => 'civicrm_financial_account.is_tax',
           'default' => '0',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
@@ -314,8 +319,9 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'description' => ts('The percentage of the total_amount that is due for this tax.'),
           'precision' => [
             10,
-            8
+            8,
           ],
+          'where' => 'civicrm_financial_account.tax_rate',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
           'bao' => 'CRM_Financial_BAO_FinancialAccount',
@@ -326,6 +332,7 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Reserved Financial Account?'),
           'description' => ts('Is this a predefined system object?'),
+          'where' => 'civicrm_financial_account.is_reserved',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
           'bao' => 'CRM_Financial_BAO_FinancialAccount',
@@ -336,6 +343,7 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Financial Account is Active'),
           'description' => ts('Is this property active?'),
+          'where' => 'civicrm_financial_account.is_active',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
           'bao' => 'CRM_Financial_BAO_FinancialAccount',
@@ -346,6 +354,7 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Default Financial Account'),
           'description' => ts('Is this account the default one (or default tax one) for its financial_account_type?'),
+          'where' => 'civicrm_financial_account.is_default',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
           'bao' => 'CRM_Financial_BAO_FinancialAccount',