28874f830c76671fcc5b7266fd93c365a2228998
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
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 +--------------------------------------------------------------------+
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
16 * Settings metadata file
20 'cvv_backoffice_required' => [
21 'group_name' => 'Contribute Preferences',
22 'group' => 'contribute',
23 'name' => 'cvv_backoffice_required',
25 'html_type' => 'radio',
26 'quick_form_type' => 'YesNo',
29 'title' => ts('CVV required for backoffice?'),
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]],
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',
44 'title' => ts('Deprecated, virtualized setting'),
50 'group_name' => 'Contribute Preferences',
51 'group' => 'contribute',
52 'name' => 'invoicing',
54 'html_type' => 'checkbox',
55 'quick_form_type' => 'Element',
58 'title' => ts('Enable Tax and Invoicing'),
62 'CRM_Invoicing_Utils::onToggle',
64 'settings_pages' => ['contribute' => ['weight' => 90]],
68 'html_type' => 'text',
69 'name' => 'invoice_prefix',
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'),
77 'invoice_due_date' => [
79 'name' => 'invoice_due_date',
80 'html_type' => 'text',
81 'title' => ts('Due Date'),
83 'type' => CRM_Utils_Type
::T_INT
,
87 'invoice_due_date_period' => [
89 'html_type' => 'select',
90 'name' => 'invoice_due_date_period',
91 'title' => ts('For transmission'),
94 'type' => CRM_Utils_Type
::T_STRING
,
97 'description' => ts('Select the interval for due date.'),
99 'select' => ts('- select -'),
100 'days' => ts('Days'),
101 'months' => ts('Months'),
102 'years' => ts('Years'),
107 'name' => 'invoice_notes',
108 'html_type' => 'wysiwyg',
109 'title' => ts('Notes or Standard Terms'),
110 'type' => CRM_Utils_Type
::T_STRING
,
114 'description' => ts('Enter note or message to be displayed on PDF invoice or credit notes '),
115 'attributes' => ['rows' => 2, 'cols' => 40],
117 'invoice_is_email_pdf' => [
118 'name' => 'invoice_is_email_pdf',
119 'html_type' => 'checkbox',
121 'type' => CRM_Utils_Type
::T_BOOLEAN
,
124 'title' => ts('Automatically email invoice when user purchases online'),
125 'description' => ts('Should a pdf invoice be emailed automatically?'),
128 'default' => 'Sales Tax',
129 'name' => 'tax_term',
130 'html_type' => 'text',
132 'title' => ts('Tax Term'),
133 'type' => CRM_Utils_Type
::T_STRING
,
137 'tax_display_settings' => [
138 'default' => 'Inclusive',
139 'html_type' => 'select',
140 'name' => 'tax_display_settings',
141 'type' => CRM_Utils_Type
::T_STRING
,
143 'title' => ts('Tax Display Settings'),
146 'pseudoconstant' => ['callback' => 'CRM_Core_SelectValues::taxDisplayOptions'],
148 'acl_financial_type' => [
149 'group_name' => 'Contribute Preferences',
150 'group' => 'contribute',
151 'name' => 'acl_financial_type',
153 'html_type' => 'checkbox',
154 'quick_form_type' => 'Element',
157 'title' => ts('Enable Access Control by Financial Type'),
161 'help' => ['id' => 'acl_financial_type'],
162 'settings_pages' => ['contribute' => ['weight' => 30]],
164 'deferred_revenue_enabled' => [
165 'group_name' => 'Contribute Preferences',
166 'group' => 'contribute',
167 'name' => 'deferred_revenue_enabled',
169 'html_type' => 'checkbox',
170 'quick_form_type' => 'Element',
173 'title' => ts('Enable Deferred Revenue'),
177 'settings_pages' => ['contribute' => ['weight' => 50]],
179 'default_invoice_page' => [
180 'group_name' => 'Contribute Preferences',
181 'group' => 'contribute',
182 'name' => 'default_invoice_page',
184 'quick_form_type' => 'Select',
186 'pseudoconstant' => [
187 'table' => 'civicrm_contribution_page',
189 'labelColumn' => 'title',
191 'html_type' => 'select',
193 'title' => ts('Default invoice payment page'),
197 'settings_pages' => ['contribute' => ['weight' => 70]],
199 'always_post_to_accounts_receivable' => [
200 'group_name' => 'Contribute Preferences',
201 'group' => 'contribute',
202 'name' => 'always_post_to_accounts_receivable',
204 'html_type' => 'checkbox',
205 'quick_form_type' => 'Element',
208 'title' => ts('Always post to Accounts Receivable?'),
212 'settings_pages' => ['contribute' => ['weight' => 40]],
214 'update_contribution_on_membership_type_change' => [
215 'group_name' => 'Contribute Preferences',
216 'group' => 'contribute',
217 'name' => 'update_contribution_on_membership_type_change',
219 'html_type' => 'checkbox',
220 'quick_form_type' => 'Element',
223 'title' => ts('Automatically update related contributions when Membership Type is changed'),
226 'description' => ts('Enabling this setting will update related contribution of membership(s) except if the membership is paid for with a recurring contribution.'),
228 'settings_pages' => ['contribute' => ['weight' => 20]],