Merge pull request #8829 from monishdeb/CRM-19172
[civicrm-core.git] / settings / Contribute.setting.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | CiviCRM version 4.7 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2016 |
7 +--------------------------------------------------------------------+
8 | This file is a part of CiviCRM. |
9 | |
10 | CiviCRM is free software; you can copy, modify, and distribute it |
11 | under the terms of the GNU Affero General Public License |
12 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
13 | |
14 | CiviCRM is distributed in the hope that it will be useful, but |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
17 | See the GNU Affero General Public License for more details. |
18 | |
19 | You should have received a copy of the GNU Affero General Public |
20 | License and the CiviCRM Licensing Exception along |
21 | with this program; if not, contact CiviCRM LLC |
22 | at info[AT]civicrm[DOT]org. If you have questions about the |
23 | GNU Affero General Public License or the licensing of CiviCRM, |
24 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
25 +--------------------------------------------------------------------+
26 */
27
28 /**
29 *
30 * @package CRM
31 * @copyright CiviCRM LLC (c) 2004-2016
32 * $Id$
33 *
34 */
35 /*
36 * Settings metadata file
37 */
38
39 return array(
40 'cvv_backoffice_required' => array(
41 'group_name' => 'Contribute Preferences',
42 'group' => 'contribute',
43 'name' => 'cvv_backoffice_required',
44 'type' => 'Boolean',
45 'quick_form_type' => 'YesNo',
46 'default' => '1',
47 'add' => '4.1',
48 'title' => 'CVV required for backoffice?',
49 'is_domain' => 1,
50 'is_contact' => 0,
51 'description' => 'Is the CVV code required for back office credit card transactions',
52 'help_text' => 'If set it back-office credit card transactions will required a cvv code. Leave as required unless you have a very strong reason to change',
53 ),
54 'contribution_invoice_settings' => array(
55 'group_name' => 'Contribute Preferences',
56 'group' => 'contribute',
57 'name' => 'contribution_invoice_settings',
58 'type' => 'Array',
59 'default' => array(
60 'invoice_prefix' => 'INV_',
61 'credit_notes_prefix' => 'CN_',
62 'due_date' => '10',
63 'due_date_period' => 'days',
64 'notes' => '',
65 'tax_term' => 'Sales Tax',
66 'tax_display_settings' => 'Inclusive',
67 ),
68 'add' => '4.7',
69 'title' => 'Contribution Invoice Settings',
70 'is_domain' => 1,
71 'is_contact' => 0,
72 'description' => NULL,
73 'help_text' => NULL,
74 ),
75 'invoicing' => array(
76 'group_name' => 'Contribute Preferences',
77 'group' => 'contribute',
78 'name' => 'invoicing',
79 'type' => 'Integer',
80 'html_type' => 'checkbox',
81 'quick_form_type' => 'Element',
82 'default' => 0,
83 'add' => '4.7',
84 'title' => 'Enable Tax and Invoicing',
85 'is_domain' => 1,
86 'is_contact' => 0,
87 'description' => NULL,
88 'help_text' => NULL,
89 ),
90 'acl_financial_type' => array(
91 'group_name' => 'Contribute Preferences',
92 'group' => 'contribute',
93 'name' => 'acl_financial_type',
94 'type' => 'Integer',
95 'html_type' => 'checkbox',
96 'quick_form_type' => 'Element',
97 'default' => 0,
98 'add' => '4.7',
99 'title' => 'Enable Access Control by Financial Type',
100 'is_domain' => 1,
101 'is_contact' => 0,
102 'description' => NULL,
103 'help_text' => NULL,
104 ),
105 'deferred_revenue_enabled' => array(
106 'group_name' => 'Contribute Preferences',
107 'group' => 'contribute',
108 'name' => 'deferred_revenue_enabled',
109 'type' => 'Integer',
110 'html_type' => 'checkbox',
111 'quick_form_type' => 'Element',
112 'default' => 0,
113 'add' => '4.7',
114 'title' => 'Enable Deferred Revenue',
115 'is_domain' => 1,
116 'is_contact' => 0,
117 'description' => NULL,
118 'help_text' => NULL,
119 ),
120 'default_invoice_page' => array(
121 'group_name' => 'Contribute Preferences',
122 'group' => 'contribute',
123 'name' => 'default_invoice_page',
124 'type' => 'Integer',
125 'quick_form_type' => 'Element',
126 'default' => NULL,
127 'pseudoconstant' => array(
128 'name' => 'contributionPage',
129 ),
130 'html_type' => 'select',
131 'add' => '4.7',
132 'title' => 'Default invoice payment page',
133 'is_domain' => 1,
134 'is_contact' => 0,
135 'description' => NULL,
136 'help_text' => NULL,
137 ),
138 'financial_account_bal_enable' => array(
139 'group_name' => 'Contribute Preferences',
140 'group' => 'contribute',
141 'name' => 'financial_account_bal_enable',
142 'type' => 'Integer',
143 'html_type' => 'checkbox',
144 'quick_form_type' => 'Element',
145 'default' => 0,
146 'add' => '4.7',
147 'title' => 'Enable Financial Account Balances',
148 'is_domain' => 1,
149 'is_contact' => 0,
150 'description' => NULL,
151 'help_text' => NULL,
152 ),
153 'prior_financial_period' => array(
154 'group_name' => 'Contribute Preferences',
155 'group' => 'contribute',
156 'name' => 'prior_financial_period',
157 'type' => 'activityDate',
158 'quick_form_type' => 'Date',
159 'html_type' => 'Date',
160 'default' => NULL,
161 'add' => '4.7',
162 'title' => 'Prior Financial Period',
163 'is_domain' => 1,
164 'is_contact' => 0,
165 'description' => NULL,
166 'help_text' => NULL,
167 ),
168 );