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 'deferred_revenue_enabled' => [
149 'group_name' => 'Contribute Preferences',
150 'group' => 'contribute',
151 'name' => 'deferred_revenue_enabled',
153 'html_type' => 'checkbox',
154 'quick_form_type' => 'Element',
157 'title' => ts('Enable Deferred Revenue'),
161 'settings_pages' => ['contribute' => ['weight' => 50]],
163 'default_invoice_page' => [
164 'group_name' => 'Contribute Preferences',
165 'group' => 'contribute',
166 'name' => 'default_invoice_page',
168 'quick_form_type' => 'Select',
170 'pseudoconstant' => [
171 'table' => 'civicrm_contribution_page',
173 'labelColumn' => 'title',
175 'html_type' => 'select',
177 'title' => ts('Default invoice payment page'),
181 'settings_pages' => ['contribute' => ['weight' => 70]],
183 'always_post_to_accounts_receivable' => [
184 'group_name' => 'Contribute Preferences',
185 'group' => 'contribute',
186 'name' => 'always_post_to_accounts_receivable',
188 'html_type' => 'checkbox',
189 'quick_form_type' => 'Element',
192 'title' => ts('Always post to Accounts Receivable?'),
196 'settings_pages' => ['contribute' => ['weight' => 40]],
198 'update_contribution_on_membership_type_change' => [
199 'group_name' => 'Contribute Preferences',
200 'group' => 'contribute',
201 'name' => 'update_contribution_on_membership_type_change',
203 'html_type' => 'checkbox',
204 'quick_form_type' => 'Element',
207 'title' => ts('Automatically update related contributions when Membership Type is changed'),
210 'description' => ts('Enabling this setting will update related contribution of membership(s) except if the membership is paid for with a recurring contribution.'),
212 'settings_pages' => ['contribute' => ['weight' => 20]],