CRM-16189 Added settings for 'Always post to Accounts Receivable'
authorPradeep Nayak <pradpnayak@gmail.com>
Tue, 9 Aug 2016 21:05:57 +0000 (02:35 +0530)
committerPradeep Nayak <pradpnayak@gmail.com>
Sun, 25 Sep 2016 21:22:30 +0000 (02:52 +0530)
----------------------------------------
* CRM-16189: Improve support for Accrual Method bookkeeping
  https://issues.civicrm.org/jira/browse/CRM-16189

CRM/Admin/Form/Preferences/Contribute.php
settings/Contribute.setting.php

index caa0c55365c8292cf6567dbe0266fe681d4c06e8..a4a9518a2f9e8a9d2a2a01f95a45dd20920208b5 100644 (file)
@@ -38,6 +38,7 @@ class CRM_Admin_Form_Preferences_Contribute extends CRM_Admin_Form_Preferences {
   protected $_settings = array(
     'cvv_backoffice_required' => CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME,
     'acl_financial_type' => CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME,
+    'always_post_to_accounts_receivable' => CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME,
     'deferred_revenue_enabled' => CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME,
     'default_invoice_page' => CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME,
     'financial_account_bal_enable' => CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME,
index b953b79e57a47a6928a5d85ef1bcb31e9c7a4020..ff9d82a0565fce3182a5fd416245a37f303b3d24 100644 (file)
@@ -165,4 +165,19 @@ return array(
     'description' => NULL,
     'help_text' => NULL,
   ),
+  'always_post_to_accounts_receivable' => array(
+    'group_name' => 'Contribute Preferences',
+    'group' => 'contribute',
+    'name' => 'always_post_to_accounts_receivable',
+    'type' => 'Integer',
+    'html_type' => 'checkbox',
+    'quick_form_type' => 'Element',
+    'default' => 0,
+    'add' => '4.7',
+    'title' => 'Always post to Accounts Receivable',
+    'is_domain' => 1,
+    'is_contact' => 0,
+    'description' => NULL,
+    'help_text' => NULL,
+  ),
 );