Merge pull request #18612 from mattwire/tokenprocessorsimplify
[civicrm-core.git] / settings / Contribute.setting.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
10 */
11
12 /**
13 *
14 * @package CRM
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
16 * Settings metadata file
17 */
18
19 return [
20 'cvv_backoffice_required' => [
21 'group_name' => 'Contribute Preferences',
22 'group' => 'contribute',
23 'name' => 'cvv_backoffice_required',
24 'type' => 'Boolean',
25 'html_type' => 'radio',
26 'quick_form_type' => 'YesNo',
27 'default' => '1',
28 'add' => '4.1',
29 'title' => ts('CVV required for backoffice?'),
30 'is_domain' => 1,
31 'is_contact' => 0,
32 'description' => ts('Is the CVV code required for back office credit card transactions'),
33 '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',
34 'settings_pages' => ['contribute' => ['weight' => 10]],
35 ],
36 'contribution_invoice_settings' => [
37 // @todo our standard is to have a setting per item not to hide settings in an array with
38 // no useful metadata. Undo this setting.
39 'group_name' => 'Contribute Preferences',
40 'group' => 'contribute',
41 'name' => 'contribution_invoice_settings',
42 'type' => 'Array',
43 'add' => '4.7',
44 'title' => ts('Deprecated, virtualized setting'),
45 'is_domain' => 1,
46 'is_contact' => 0,
47 'help_text' => NULL,
48 ],
49 'invoicing' => [
50 'group_name' => 'Contribute Preferences',
51 'group' => 'contribute',
52 'name' => 'invoicing',
53 'type' => 'Boolean',
54 'html_type' => 'checkbox',
55 'quick_form_type' => 'Element',
56 'default' => 0,
57 'add' => '4.7',
58 'title' => ts('Enable Tax and Invoicing'),
59 'is_domain' => 1,
60 'is_contact' => 0,
61 'on_change' => [
62 'CRM_Invoicing_Utils::onToggle',
63 ],
64 'settings_pages' => ['contribute' => ['weight' => 90]],
65 ],
66 'invoice_prefix' => [
67 'default' => 'INV_',
68 'html_type' => 'text',
69 'name' => 'invoice_prefix',
70 'add' => '5.23',
71 'type' => CRM_Utils_Type::T_STRING,
72 'title' => ts('Invoice Prefix'),
73 'description' => ts('Enter prefix to be be preprended when creating an invoice number'),
74 'is_domain' => 1,
75 'is_contact' => 0,
76 ],
77 'invoice_due_date' => [
78 'default' => '10',
79 'name' => 'invoice_due_date',
80 'html_type' => 'text',
81 'title' => ts('Due Date'),
82 'add' => '5.23',
83 'type' => CRM_Utils_Type::T_INT,
84 'is_domain' => 1,
85 'is_contact' => 0,
86 ],
87 'invoice_due_date_period' => [
88 'default' => 'days',
89 'html_type' => 'select',
90 'name' => 'invoice_due_date_period',
91 'title' => ts('For transmission'),
92 'weight' => 4,
93 'add' => '5.23',
94 'type' => CRM_Utils_Type::T_STRING,
95 'is_domain' => 1,
96 'is_contact' => 0,
97 'description' => ts('Select the interval for due date.'),
98 'options' => [
99 'select' => ts('- select -'),
100 'days' => ts('Days'),
101 'months' => ts('Months'),
102 'years' => ts('Years'),
103 ],
104 ],
105 'invoice_notes' => [
106 'default' => '',
107 'name' => 'invoice_notes',
108 'html_type' => 'wysiwyg',
109 'title' => ts('Notes or Standard Terms'),
110 'type' => CRM_Utils_Type::T_STRING,
111 'add' => '5.23',
112 'is_domain' => 1,
113 'is_contact' => 0,
114 'description' => ts('Enter note or message to be displayed on PDF invoice or credit notes '),
115 'attributes' => ['rows' => 2, 'cols' => 40],
116 ],
117 'invoice_is_email_pdf' => [
118 'name' => 'invoice_is_email_pdf',
119 'html_type' => 'checkbox',
120 'add' => '5.23',
121 'type' => CRM_Utils_Type::T_BOOLEAN,
122 'is_domain' => 1,
123 'is_contact' => 0,
124 'title' => ts('Automatically email invoice when user purchases online'),
125 'description' => ts('Should a pdf invoice be emailed automatically?'),
126 ],
127 'tax_term' => [
128 'default' => 'Sales Tax',
129 'name' => 'tax_term',
130 'html_type' => 'text',
131 'add' => '5.23',
132 'title' => ts('Tax Term'),
133 'type' => CRM_Utils_Type::T_STRING,
134 'is_domain' => 1,
135 'is_contact' => 0,
136 ],
137 'tax_display_settings' => [
138 'default' => 'Inclusive',
139 'html_type' => 'select',
140 'name' => 'tax_display_settings',
141 'type' => CRM_Utils_Type::T_STRING,
142 'add' => '5.23',
143 'title' => ts('Tax Display Settings'),
144 'is_domain' => 1,
145 'is_contact' => 0,
146 'pseudoconstant' => ['callback' => 'CRM_Core_SelectValues::taxDisplayOptions'],
147 ],
148 'acl_financial_type' => [
149 'group_name' => 'Contribute Preferences',
150 'group' => 'contribute',
151 'name' => 'acl_financial_type',
152 'type' => 'Boolean',
153 'html_type' => 'checkbox',
154 'quick_form_type' => 'Element',
155 'default' => 0,
156 'add' => '4.7',
157 'title' => ts('Enable Access Control by Financial Type'),
158 'is_domain' => 1,
159 'is_contact' => 0,
160 'help_text' => NULL,
161 'help' => ['id' => 'acl_financial_type'],
162 'settings_pages' => ['contribute' => ['weight' => 30]],
163 ],
164 'deferred_revenue_enabled' => [
165 'group_name' => 'Contribute Preferences',
166 'group' => 'contribute',
167 'name' => 'deferred_revenue_enabled',
168 'type' => 'Boolean',
169 'html_type' => 'checkbox',
170 'quick_form_type' => 'Element',
171 'default' => 0,
172 'add' => '4.7',
173 'title' => ts('Enable Deferred Revenue'),
174 'is_domain' => 1,
175 'is_contact' => 0,
176 'help_text' => NULL,
177 'settings_pages' => ['contribute' => ['weight' => 50]],
178 ],
179 'default_invoice_page' => [
180 'group_name' => 'Contribute Preferences',
181 'group' => 'contribute',
182 'name' => 'default_invoice_page',
183 'type' => 'Integer',
184 'quick_form_type' => 'Select',
185 'default' => NULL,
186 'pseudoconstant' => [
187 'table' => 'civicrm_contribution_page',
188 'keyColumn' => 'id',
189 'labelColumn' => 'title',
190 ],
191 'html_type' => 'select',
192 'add' => '4.7',
193 'title' => ts('Default invoice payment page'),
194 'is_domain' => 1,
195 'is_contact' => 0,
196 'help_text' => NULL,
197 'settings_pages' => ['contribute' => ['weight' => 70]],
198 ],
199 'always_post_to_accounts_receivable' => [
200 'group_name' => 'Contribute Preferences',
201 'group' => 'contribute',
202 'name' => 'always_post_to_accounts_receivable',
203 'type' => 'Boolean',
204 'html_type' => 'checkbox',
205 'quick_form_type' => 'Element',
206 'default' => 0,
207 'add' => '4.7',
208 'title' => ts('Always post to Accounts Receivable?'),
209 'is_domain' => 1,
210 'is_contact' => 0,
211 'help_text' => NULL,
212 'settings_pages' => ['contribute' => ['weight' => 40]],
213 ],
214 'update_contribution_on_membership_type_change' => [
215 'group_name' => 'Contribute Preferences',
216 'group' => 'contribute',
217 'name' => 'update_contribution_on_membership_type_change',
218 'type' => 'Boolean',
219 'html_type' => 'checkbox',
220 'quick_form_type' => 'Element',
221 'default' => 0,
222 'add' => '4.7',
223 'title' => ts('Automatically update related contributions when Membership Type is changed'),
224 'is_domain' => 1,
225 'is_contact' => 0,
226 'description' => ts('Enabling this setting will update related contribution of membership(s) except if the membership is paid for with a recurring contribution.'),
227 'help_text' => NULL,
228 'settings_pages' => ['contribute' => ['weight' => 20]],
229 ],
230 ];