From: eileen Date: Tue, 5 Jan 2021 01:55:04 +0000 (+1300) Subject: FinancialType Schema: make is_deductible db default 0, make bool fields required X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8d1863fa99a7d875d186a499b2f6951f941670c3;p=civicrm-core.git FinancialType Schema: make is_deductible db default 0, make bool fields required --- diff --git a/CRM/Financial/DAO/FinancialType.php b/CRM/Financial/DAO/FinancialType.php index 868e1e17a3..2a3d44bba6 100644 --- a/CRM/Financial/DAO/FinancialType.php +++ b/CRM/Financial/DAO/FinancialType.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Financial/FinancialType.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:8c3444c5cd613f6f817d6f7bbea2b05f) + * (GenCodeChecksum:ddbf4faec2a77ef3fa7b9d126c9d0443) */ /** @@ -158,8 +158,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', @@ -175,6 +176,7 @@ 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', @@ -192,6 +194,7 @@ 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', diff --git a/xml/schema/Financial/FinancialType.xml b/xml/schema/Financial/FinancialType.xml index 4a68d037db..09530a7ae3 100644 --- a/xml/schema/Financial/FinancialType.xml +++ b/xml/schema/Financial/FinancialType.xml @@ -55,8 +55,9 @@ is_deductible Is Tax Deductible? boolean + true 4 - 1 + 0 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. 1.3 @@ -69,6 +70,7 @@ Financial Type is Reserved? boolean 4 + true Is this a predefined system object? 1.3 0 @@ -83,6 +85,7 @@ 1 Financial Type Is Active? 4 + true Is this property active? 1.3