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 'invoice_prefix' => 'INV_',
46 'credit_notes_prefix' => 'CN_',
48 'due_date_period' => 'days',
50 'tax_term' => 'Sales Tax',
51 'tax_display_settings' => 'Inclusive',
54 'title' => ts('Deprecated setting'),
60 'group_name' => 'Contribute Preferences',
61 'group' => 'contribute',
62 'name' => 'invoicing',
64 'html_type' => 'checkbox',
65 'quick_form_type' => 'Element',
68 'title' => ts('Enable Tax and Invoicing'),
72 'CRM_Invoicing_Utils::onToggle',
74 'settings_pages' => ['contribute' => ['weight' => 90]],
77 'html_type' => 'text',
78 'name' => 'invoice_prefix',
80 'type' => CRM_Utils_Type
::T_STRING
,
81 'title' => ts('Invoice Prefix'),
82 'description' => ts('Enter prefix to be be preprended when creating an invoice number'),
86 'invoice_due_date' => [
87 'name' => 'invoice_due_date',
88 'html_type' => 'text',
89 'title' => ts('Due Date'),
91 'type' => CRM_Utils_Type
::T_INT
,
95 'invoice_due_date_period' => [
96 'html_type' => 'select',
97 'name' => 'invoice_due_date_period',
98 'title' => ts('For transmission'),
101 'type' => CRM_Utils_Type
::T_STRING
,
104 'description' => ts('Select the interval for due date.'),
106 'select' => ts('- select -'),
107 'days' => ts('Days'),
108 'months' => ts('Months'),
109 'years' => ts('Years'),
113 'name' => 'invoice_notes',
114 'html_type' => 'wysiwyg',
115 'title' => ts('Notes or Standard Terms'),
116 'type' => CRM_Utils_Type
::T_STRING
,
120 'description' => ts('Enter note or message to be displayed on PDF invoice or credit notes '),
121 'attributes' => ['rows' => 2, 'cols' => 40],
123 'invoice_is_email_pdf' => [
124 'name' => 'invoice_is_email_pdf',
125 'html_type' => 'checkbox',
127 'type' => CRM_Utils_Type
::T_BOOLEAN
,
130 'title' => ts('Automatically email invoice when user purchases online'),
131 'description' => ts('Should a pdf invoice be emailed automatically?'),
134 'name' => 'tax_term',
135 'html_type' => 'text',
137 'title' => ts('Tax Term'),
138 'type' => CRM_Utils_Type
::T_STRING
,
142 'tax_display_settings' => [
143 'html_type' => 'select',
144 'name' => 'tax_display_settings',
145 'type' => CRM_Utils_Type
::T_STRING
,
147 'title' => ts('Tax Display Settings'),
150 'pseudoconstant' => ['callback' => 'CRM_Core_SelectValues::taxDisplayOptions'],
152 'acl_financial_type' => [
153 'group_name' => 'Contribute Preferences',
154 'group' => 'contribute',
155 'name' => 'acl_financial_type',
157 'html_type' => 'checkbox',
158 'quick_form_type' => 'Element',
161 'title' => ts('Enable Access Control by Financial Type'),
165 'help' => ['id' => 'acl_financial_type'],
166 'settings_pages' => ['contribute' => ['weight' => 30]],
168 'deferred_revenue_enabled' => [
169 'group_name' => 'Contribute Preferences',
170 'group' => 'contribute',
171 'name' => 'deferred_revenue_enabled',
173 'html_type' => 'checkbox',
174 'quick_form_type' => 'Element',
177 'title' => ts('Enable Deferred Revenue'),
181 'settings_pages' => ['contribute' => ['weight' => 50]],
183 'default_invoice_page' => [
184 'group_name' => 'Contribute Preferences',
185 'group' => 'contribute',
186 'name' => 'default_invoice_page',
188 'quick_form_type' => 'Select',
190 'pseudoconstant' => [
191 // @todo - handle table style pseudoconstants for settings & avoid deprecated function.
192 'callback' => 'CRM_Contribute_PseudoConstant::contributionPage',
194 'html_type' => 'select',
196 'title' => ts('Default invoice payment page'),
200 'settings_pages' => ['contribute' => ['weight' => 70]],
202 'always_post_to_accounts_receivable' => [
203 'group_name' => 'Contribute Preferences',
204 'group' => 'contribute',
205 'name' => 'always_post_to_accounts_receivable',
207 'html_type' => 'checkbox',
208 'quick_form_type' => 'Element',
211 'title' => ts('Always post to Accounts Receivable?'),
215 'settings_pages' => ['contribute' => ['weight' => 40]],
217 'update_contribution_on_membership_type_change' => [
218 'group_name' => 'Contribute Preferences',
219 'group' => 'contribute',
220 'name' => 'update_contribution_on_membership_type_change',
222 'html_type' => 'checkbox',
223 'quick_form_type' => 'Element',
226 'title' => ts('Automatically update related contributions when Membership Type is changed'),
229 'description' => ts('Enabling this setting will update related contribution of membership(s) except if the membership is paid for with a recurring contribution.'),
231 'settings_pages' => ['contribute' => ['weight' => 20]],