Merge pull request #19070 from mattwire/extensionupgrademsg
[civicrm-core.git] / settings / Contribute.setting.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
6b7eb9df 4 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 5 | |
6b7eb9df
TO
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 |
6a488035 9 +--------------------------------------------------------------------+
d25dd0ee 10 */
6a488035
TO
11
12/**
13 *
14 * @package CRM
f452d72c 15 * @copyright CiviCRM LLC https://civicrm.org/licensing
6a488035
TO
16 * Settings metadata file
17 */
18
dfe1f88a
CW
19return [
20 'cvv_backoffice_required' => [
6a488035
TO
21 'group_name' => 'Contribute Preferences',
22 'group' => 'contribute',
23 'name' => 'cvv_backoffice_required',
24 'type' => 'Boolean',
2f6c641a 25 'html_type' => 'radio',
6a488035
TO
26 'quick_form_type' => 'YesNo',
27 'default' => '1',
28 'add' => '4.1',
af72f92b 29 'title' => ts('CVV required for backoffice?'),
6a488035
TO
30 'is_domain' => 1,
31 'is_contact' => 0,
af72f92b 32 'description' => ts('Is the CVV code required for back office credit card transactions'),
6a488035 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',
71bbdae1 34 'settings_pages' => ['contribute' => ['weight' => 10]],
dfe1f88a
CW
35 ],
36 'contribution_invoice_settings' => [
2f6c641a 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.
007e3bdc
TO
39 'group_name' => 'Contribute Preferences',
40 'group' => 'contribute',
41 'name' => 'contribution_invoice_settings',
42 'type' => 'Array',
007e3bdc 43 'add' => '4.7',
be177277 44 'title' => ts('Deprecated, virtualized setting'),
007e3bdc
TO
45 'is_domain' => 1,
46 'is_contact' => 0,
007e3bdc 47 'help_text' => NULL,
dfe1f88a
CW
48 ],
49 'invoicing' => [
201b45e2
PN
50 'group_name' => 'Contribute Preferences',
51 'group' => 'contribute',
52 'name' => 'invoicing',
0e700ee7 53 'type' => 'Boolean',
201b45e2
PN
54 'html_type' => 'checkbox',
55 'quick_form_type' => 'Element',
56 'default' => 0,
57 'add' => '4.7',
af72f92b 58 'title' => ts('Enable Tax and Invoicing'),
201b45e2
PN
59 'is_domain' => 1,
60 'is_contact' => 0,
dfe1f88a 61 'on_change' => [
8d334338 62 'CRM_Invoicing_Utils::onToggle',
dfe1f88a 63 ],
71bbdae1 64 'settings_pages' => ['contribute' => ['weight' => 90]],
dfe1f88a 65 ],
ff6f993e 66 'invoice_prefix' => [
be177277 67 'default' => 'INV_',
ff6f993e 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' => [
be177277 78 'default' => '10',
ff6f993e 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' => [
be177277 88 'default' => 'days',
ff6f993e 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' => [
be177277 106 'default' => '',
ff6f993e 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' => [
be177277 128 'default' => 'Sales Tax',
ff6f993e 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' => [
be177277 138 'default' => 'Inclusive',
ff6f993e 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 ],
dfe1f88a 148 'acl_financial_type' => [
201b45e2
PN
149 'group_name' => 'Contribute Preferences',
150 'group' => 'contribute',
151 'name' => 'acl_financial_type',
0e700ee7 152 'type' => 'Boolean',
201b45e2
PN
153 'html_type' => 'checkbox',
154 'quick_form_type' => 'Element',
155 'default' => 0,
156 'add' => '4.7',
af72f92b 157 'title' => ts('Enable Access Control by Financial Type'),
201b45e2
PN
158 'is_domain' => 1,
159 'is_contact' => 0,
201b45e2 160 'help_text' => NULL,
969afb18 161 'help' => ['id' => 'acl_financial_type'],
71bbdae1 162 'settings_pages' => ['contribute' => ['weight' => 30]],
dfe1f88a
CW
163 ],
164 'deferred_revenue_enabled' => [
201b45e2
PN
165 'group_name' => 'Contribute Preferences',
166 'group' => 'contribute',
167 'name' => 'deferred_revenue_enabled',
0e700ee7 168 'type' => 'Boolean',
201b45e2
PN
169 'html_type' => 'checkbox',
170 'quick_form_type' => 'Element',
171 'default' => 0,
172 'add' => '4.7',
af72f92b 173 'title' => ts('Enable Deferred Revenue'),
201b45e2
PN
174 'is_domain' => 1,
175 'is_contact' => 0,
201b45e2 176 'help_text' => NULL,
71bbdae1 177 'settings_pages' => ['contribute' => ['weight' => 50]],
dfe1f88a
CW
178 ],
179 'default_invoice_page' => [
201b45e2
PN
180 'group_name' => 'Contribute Preferences',
181 'group' => 'contribute',
182 'name' => 'default_invoice_page',
183 'type' => 'Integer',
0e700ee7 184 'quick_form_type' => 'Select',
201b45e2 185 'default' => NULL,
dfe1f88a 186 'pseudoconstant' => [
356013b6 187 'table' => 'civicrm_contribution_page',
188 'keyColumn' => 'id',
189 'labelColumn' => 'title',
dfe1f88a 190 ],
201b45e2
PN
191 'html_type' => 'select',
192 'add' => '4.7',
af72f92b 193 'title' => ts('Default invoice payment page'),
201b45e2
PN
194 'is_domain' => 1,
195 'is_contact' => 0,
201b45e2 196 'help_text' => NULL,
71bbdae1 197 'settings_pages' => ['contribute' => ['weight' => 70]],
dfe1f88a
CW
198 ],
199 'always_post_to_accounts_receivable' => [
4af9c91d
PN
200 'group_name' => 'Contribute Preferences',
201 'group' => 'contribute',
202 'name' => 'always_post_to_accounts_receivable',
0e700ee7 203 'type' => 'Boolean',
4af9c91d
PN
204 'html_type' => 'checkbox',
205 'quick_form_type' => 'Element',
206 'default' => 0,
207 'add' => '4.7',
af72f92b 208 'title' => ts('Always post to Accounts Receivable?'),
4af9c91d
PN
209 'is_domain' => 1,
210 'is_contact' => 0,
4af9c91d 211 'help_text' => NULL,
71bbdae1 212 'settings_pages' => ['contribute' => ['weight' => 40]],
dfe1f88a
CW
213 ],
214 'update_contribution_on_membership_type_change' => [
268a84f2 215 'group_name' => 'Contribute Preferences',
216 'group' => 'contribute',
217 'name' => 'update_contribution_on_membership_type_change',
0e700ee7 218 'type' => 'Boolean',
268a84f2 219 'html_type' => 'checkbox',
220 'quick_form_type' => 'Element',
221 'default' => 0,
222 'add' => '4.7',
af72f92b 223 'title' => ts('Automatically update related contributions when Membership Type is changed'),
268a84f2 224 'is_domain' => 1,
225 'is_contact' => 0,
af72f92b 226 'description' => ts('Enabling this setting will update related contribution of membership(s) except if the membership is paid for with a recurring contribution.'),
268a84f2 227 'help_text' => NULL,
71bbdae1 228 'settings_pages' => ['contribute' => ['weight' => 20]],
dfe1f88a
CW
229 ],
230];