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 (c) 2004-2020
17 * Settings metadata file
21 'cvv_backoffice_required' => [
22 'group_name' => 'Contribute Preferences',
23 'group' => 'contribute',
24 'name' => 'cvv_backoffice_required',
26 'html_type' => 'radio',
27 'quick_form_type' => 'YesNo',
30 'title' => ts('CVV required for backoffice?'),
33 'description' => ts('Is the CVV code required for back office credit card transactions'),
34 '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',
35 'settings_pages' => ['contribute' => ['weight' => 10]],
37 'contribution_invoice_settings' => [
38 // @todo our standard is to have a setting per item not to hide settings in an array with
39 // no useful metadata. Undo this setting.
40 'group_name' => 'Contribute Preferences',
41 'group' => 'contribute',
42 'name' => 'contribution_invoice_settings',
45 'title' => ts('Deprecated, virtualized setting'),
51 'group_name' => 'Contribute Preferences',
52 'group' => 'contribute',
53 'name' => 'invoicing',
55 'html_type' => 'checkbox',
56 'quick_form_type' => 'Element',
59 'title' => ts('Enable Tax and Invoicing'),
63 'CRM_Invoicing_Utils::onToggle',
65 'settings_pages' => ['contribute' => ['weight' => 90]],
69 'html_type' => 'text',
70 'name' => 'invoice_prefix',
72 'type' => CRM_Utils_Type
::T_STRING
,
73 'title' => ts('Invoice Prefix'),
74 'description' => ts('Enter prefix to be be preprended when creating an invoice number'),
78 'invoice_due_date' => [
80 'name' => 'invoice_due_date',
81 'html_type' => 'text',
82 'title' => ts('Due Date'),
84 'type' => CRM_Utils_Type
::T_INT
,
88 'invoice_due_date_period' => [
90 'html_type' => 'select',
91 'name' => 'invoice_due_date_period',
92 'title' => ts('For transmission'),
95 'type' => CRM_Utils_Type
::T_STRING
,
98 'description' => ts('Select the interval for due date.'),
100 'select' => ts('- select -'),
101 'days' => ts('Days'),
102 'months' => ts('Months'),
103 'years' => ts('Years'),
108 'name' => 'invoice_notes',
109 'html_type' => 'wysiwyg',
110 'title' => ts('Notes or Standard Terms'),
111 'type' => CRM_Utils_Type
::T_STRING
,
115 'description' => ts('Enter note or message to be displayed on PDF invoice or credit notes '),
116 'attributes' => ['rows' => 2, 'cols' => 40],
118 'invoice_is_email_pdf' => [
119 'name' => 'invoice_is_email_pdf',
120 'html_type' => 'checkbox',
122 'type' => CRM_Utils_Type
::T_BOOLEAN
,
125 'title' => ts('Automatically email invoice when user purchases online'),
126 'description' => ts('Should a pdf invoice be emailed automatically?'),
129 'default' => 'Sales Tax',
130 'name' => 'tax_term',
131 'html_type' => 'text',
133 'title' => ts('Tax Term'),
134 'type' => CRM_Utils_Type
::T_STRING
,
138 'tax_display_settings' => [
139 'default' => 'Inclusive',
140 'html_type' => 'select',
141 'name' => 'tax_display_settings',
142 'type' => CRM_Utils_Type
::T_STRING
,
144 'title' => ts('Tax Display Settings'),
147 'pseudoconstant' => ['callback' => 'CRM_Core_SelectValues::taxDisplayOptions'],
149 'acl_financial_type' => [
150 'group_name' => 'Contribute Preferences',
151 'group' => 'contribute',
152 'name' => 'acl_financial_type',
154 'html_type' => 'checkbox',
155 'quick_form_type' => 'Element',
158 'title' => ts('Enable Access Control by Financial Type'),
162 'help' => ['id' => 'acl_financial_type'],
163 'settings_pages' => ['contribute' => ['weight' => 30]],
165 'deferred_revenue_enabled' => [
166 'group_name' => 'Contribute Preferences',
167 'group' => 'contribute',
168 'name' => 'deferred_revenue_enabled',
170 'html_type' => 'checkbox',
171 'quick_form_type' => 'Element',
174 'title' => ts('Enable Deferred Revenue'),
178 'settings_pages' => ['contribute' => ['weight' => 50]],
180 'default_invoice_page' => [
181 'group_name' => 'Contribute Preferences',
182 'group' => 'contribute',
183 'name' => 'default_invoice_page',
185 'quick_form_type' => 'Select',
187 'pseudoconstant' => [
188 'table' => 'civicrm_contribution_page',
190 'labelColumn' => 'title',
192 'html_type' => 'select',
194 'title' => ts('Default invoice payment page'),
198 'settings_pages' => ['contribute' => ['weight' => 70]],
200 'always_post_to_accounts_receivable' => [
201 'group_name' => 'Contribute Preferences',
202 'group' => 'contribute',
203 'name' => 'always_post_to_accounts_receivable',
205 'html_type' => 'checkbox',
206 'quick_form_type' => 'Element',
209 'title' => ts('Always post to Accounts Receivable?'),
213 'settings_pages' => ['contribute' => ['weight' => 40]],
215 'update_contribution_on_membership_type_change' => [
216 'group_name' => 'Contribute Preferences',
217 'group' => 'contribute',
218 'name' => 'update_contribution_on_membership_type_change',
220 'html_type' => 'checkbox',
221 'quick_form_type' => 'Element',
224 'title' => ts('Automatically update related contributions when Membership Type is changed'),
227 'description' => ts('Enabling this setting will update related contribution of membership(s) except if the membership is paid for with a recurring contribution.'),
229 'settings_pages' => ['contribute' => ['weight' => 20]],