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',
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 'invoice_prefix' => 'INV_',
45 'credit_notes_prefix' => 'CN_',
47 'due_date_period' => 'days',
49 'tax_term' => 'Sales Tax',
50 'tax_display_settings' => 'Inclusive',
53 'title' => ts('Contribution Invoice Settings'),
59 'group_name' => 'Contribute Preferences',
60 'group' => 'contribute',
61 'name' => 'invoicing',
63 'html_type' => 'checkbox',
64 'quick_form_type' => 'Element',
67 'title' => ts('Enable Tax and Invoicing'),
71 'CRM_Invoicing_Utils::onToggle',
74 'acl_financial_type' => [
75 'group_name' => 'Contribute Preferences',
76 'group' => 'contribute',
77 'name' => 'acl_financial_type',
79 'html_type' => 'checkbox',
80 'quick_form_type' => 'Element',
83 'title' => ts('Enable Access Control by Financial Type'),
87 'help' => ['id' => 'acl_financial_type'],
89 'deferred_revenue_enabled' => [
90 'group_name' => 'Contribute Preferences',
91 'group' => 'contribute',
92 'name' => 'deferred_revenue_enabled',
94 'html_type' => 'checkbox',
95 'quick_form_type' => 'Element',
98 'title' => ts('Enable Deferred Revenue'),
103 'default_invoice_page' => [
104 'group_name' => 'Contribute Preferences',
105 'group' => 'contribute',
106 'name' => 'default_invoice_page',
108 'quick_form_type' => 'Select',
110 'pseudoconstant' => [
111 // @todo - handle table style pseudoconstants for settings & avoid deprecated function.
112 'callback' => 'CRM_Contribute_PseudoConstant::contributionPage',
114 'html_type' => 'select',
116 'title' => ts('Default invoice payment page'),
121 'always_post_to_accounts_receivable' => [
122 'group_name' => 'Contribute Preferences',
123 'group' => 'contribute',
124 'name' => 'always_post_to_accounts_receivable',
126 'html_type' => 'checkbox',
127 'quick_form_type' => 'Element',
130 'title' => ts('Always post to Accounts Receivable?'),
135 'update_contribution_on_membership_type_change' => [
136 'group_name' => 'Contribute Preferences',
137 'group' => 'contribute',
138 'name' => 'update_contribution_on_membership_type_change',
140 'html_type' => 'checkbox',
141 'quick_form_type' => 'Element',
144 'title' => ts('Automatically update related contributions when Membership Type is changed'),
147 'description' => ts('Enabling this setting will update related contribution of membership(s) except if the membership is paid for with a recurring contribution.'),