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' => 'CVV required for backoffice?',
33 'description' => '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' => 'Contribution Invoice Settings',
56 'description' => NULL,
60 'group_name' => 'Contribute Preferences',
61 'group' => 'contribute',
62 'name' => 'invoicing',
64 'html_type' => 'checkbox',
65 'quick_form_type' => 'Element',
68 'title' => 'Enable Tax and Invoicing',
72 'CRM_Invoicing_Utils::onToggle',
75 'acl_financial_type' => [
76 'group_name' => 'Contribute Preferences',
77 'group' => 'contribute',
78 'name' => 'acl_financial_type',
80 'html_type' => 'checkbox',
81 'quick_form_type' => 'Element',
84 'title' => 'Enable Access Control by Financial Type',
87 'description' => NULL,
89 'help' => ['id' => 'acl_financial_type'],
91 'deferred_revenue_enabled' => [
92 'group_name' => 'Contribute Preferences',
93 'group' => 'contribute',
94 'name' => 'deferred_revenue_enabled',
96 'html_type' => 'checkbox',
97 'quick_form_type' => 'Element',
100 'title' => 'Enable Deferred Revenue',
103 'description' => NULL,
106 'default_invoice_page' => [
107 'group_name' => 'Contribute Preferences',
108 'group' => 'contribute',
109 'name' => 'default_invoice_page',
111 'quick_form_type' => 'Select',
113 'pseudoconstant' => [
114 // @todo - handle table style pseudoconstants for settings & avoid deprecated function.
115 'callback' => 'CRM_Contribute_PseudoConstant::contributionPage',
117 'html_type' => 'select',
119 'title' => 'Default invoice payment page',
122 'description' => NULL,
125 'always_post_to_accounts_receivable' => [
126 'group_name' => 'Contribute Preferences',
127 'group' => 'contribute',
128 'name' => 'always_post_to_accounts_receivable',
130 'html_type' => 'checkbox',
131 'quick_form_type' => 'Element',
134 'title' => 'Always post to Accounts Receivable?',
137 'description' => NULL,
140 'update_contribution_on_membership_type_change' => [
141 'group_name' => 'Contribute Preferences',
142 'group' => 'contribute',
143 'name' => 'update_contribution_on_membership_type_change',
145 'html_type' => 'checkbox',
146 'quick_form_type' => 'Element',
149 'title' => 'Automatically update related contributions when Membership Type is changed',
152 'description' => 'Enabling this setting will update related contribution of membership(s) except if the membership is paid for with a recurring contribution.',