From 4af9c91d4e077e4ba0426227fde9b289bbb2e5fe Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Wed, 10 Aug 2016 02:35:57 +0530 Subject: [PATCH] CRM-16189 Added settings for 'Always post to Accounts Receivable' ---------------------------------------- * CRM-16189: Improve support for Accrual Method bookkeeping https://issues.civicrm.org/jira/browse/CRM-16189 --- CRM/Admin/Form/Preferences/Contribute.php | 1 + settings/Contribute.setting.php | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/CRM/Admin/Form/Preferences/Contribute.php b/CRM/Admin/Form/Preferences/Contribute.php index caa0c55365..a4a9518a2f 100644 --- a/CRM/Admin/Form/Preferences/Contribute.php +++ b/CRM/Admin/Form/Preferences/Contribute.php @@ -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, diff --git a/settings/Contribute.setting.php b/settings/Contribute.setting.php index b953b79e57..ff9d82a056 100644 --- a/settings/Contribute.setting.php +++ b/settings/Contribute.setting.php @@ -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, + ), ); -- 2.25.1