CRM-16189, added opening_balance and current_period_opening_balance db fields code...
authorPradeep Nayak <pradpnayak@gmail.com>
Wed, 15 Jun 2016 09:49:42 +0000 (15:19 +0530)
committerPradeep Nayak <pradpnayak@gmail.com>
Tue, 21 Jun 2016 20:03:04 +0000 (01:33 +0530)
----------------------------------------
* CRM-16189: Improve support for Accrual Method bookkeeping
  https://issues.civicrm.org/jira/browse/CRM-16189

CRM/Upgrade/Incremental/sql/4.7.9.mysql.tpl
xml/schema/Financial/FinancialAccount.xml

index 6aa89fdbe5f58caad40fa73ac8d140115e57ac49..292f732f72e459d3a570e4db1e8025261126c1f5 100644 (file)
@@ -14,3 +14,8 @@ UPDATE civicrm_state_province SET name="Wake Island" WHERE name="Wake Ialand";
 UPDATE civicrm_dashboard SET
   {localize field="label"}label = '{ts escape="sql"}CiviCRM Resources{/ts}'{/localize}
 WHERE name = 'getting-started';
+
+-- CRM-16189
+ALTER TABLE civicrm_financial_account
+ ADD `opening_balance` decimal(20,2) DEFAULT '0.00' COMMENT 'Contains the opening balance for this financial account',
+ ADD `current_period_opening_balance` decimal(20,2) DEFAULT '0.00' COMMENT 'Contains the opening balance for the current period for this financial account';
index eedf5c621069640207403b413993446f6d62fba4..4ec6f94416bae79236360ee6afe0f732917f3cf0 100644 (file)
     <unique>true</unique>
     <add>4.3</add>
   </index>
+  <field>
+    <name>opening_balance</name>
+    <type>decimal</type>
+    <title>Opening Balance</title>
+    <comment>Contains the opening balance for this financial account</comment>
+    <default>0</default>
+    <length>20,2</length>
+    <add>4.7</add>
+  </field>
+  <field>
+    <name>current_period_opening_balance</name>
+    <type>decimal</type>
+    <length>20,2</length>
+    <title>Current period opening Balance</title>
+    <comment>Contains the opening balance for the current period for this financial account</comment>
+    <default>0</default>
+    <add>4.7</add>
+  </field>
 </table>