Merge pull request #16233 from demeritcowboy/more-t5
[civicrm-core.git] / settings / Contribute.setting.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
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 +--------------------------------------------------------------------+
10 */
11
12 /**
13 *
14 * @package CRM
15 * @copyright CiviCRM LLC (c) 2004-2020
16 *
17 * Settings metadata file
18 */
19
20 return [
21 'cvv_backoffice_required' => [
22 'group_name' => 'Contribute Preferences',
23 'group' => 'contribute',
24 'name' => 'cvv_backoffice_required',
25 'type' => 'Boolean',
26 'html_type' => 'radio',
27 'quick_form_type' => 'YesNo',
28 'default' => '1',
29 'add' => '4.1',
30 'title' => ts('CVV required for backoffice?'),
31 'is_domain' => 1,
32 'is_contact' => 0,
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 ],
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',
42 'type' => 'Array',
43 'default' => [
44 'invoice_prefix' => 'INV_',
45 'credit_notes_prefix' => 'CN_',
46 'due_date' => '10',
47 'due_date_period' => 'days',
48 'notes' => '',
49 'tax_term' => 'Sales Tax',
50 'tax_display_settings' => 'Inclusive',
51 ],
52 'add' => '4.7',
53 'title' => ts('Contribution Invoice Settings'),
54 'is_domain' => 1,
55 'is_contact' => 0,
56 'help_text' => NULL,
57 ],
58 'invoicing' => [
59 'group_name' => 'Contribute Preferences',
60 'group' => 'contribute',
61 'name' => 'invoicing',
62 'type' => 'Boolean',
63 'html_type' => 'checkbox',
64 'quick_form_type' => 'Element',
65 'default' => 0,
66 'add' => '4.7',
67 'title' => ts('Enable Tax and Invoicing'),
68 'is_domain' => 1,
69 'is_contact' => 0,
70 'on_change' => [
71 'CRM_Invoicing_Utils::onToggle',
72 ],
73 ],
74 'acl_financial_type' => [
75 'group_name' => 'Contribute Preferences',
76 'group' => 'contribute',
77 'name' => 'acl_financial_type',
78 'type' => 'Boolean',
79 'html_type' => 'checkbox',
80 'quick_form_type' => 'Element',
81 'default' => 0,
82 'add' => '4.7',
83 'title' => ts('Enable Access Control by Financial Type'),
84 'is_domain' => 1,
85 'is_contact' => 0,
86 'help_text' => NULL,
87 'help' => ['id' => 'acl_financial_type'],
88 ],
89 'deferred_revenue_enabled' => [
90 'group_name' => 'Contribute Preferences',
91 'group' => 'contribute',
92 'name' => 'deferred_revenue_enabled',
93 'type' => 'Boolean',
94 'html_type' => 'checkbox',
95 'quick_form_type' => 'Element',
96 'default' => 0,
97 'add' => '4.7',
98 'title' => ts('Enable Deferred Revenue'),
99 'is_domain' => 1,
100 'is_contact' => 0,
101 'help_text' => NULL,
102 ],
103 'default_invoice_page' => [
104 'group_name' => 'Contribute Preferences',
105 'group' => 'contribute',
106 'name' => 'default_invoice_page',
107 'type' => 'Integer',
108 'quick_form_type' => 'Select',
109 'default' => NULL,
110 'pseudoconstant' => [
111 // @todo - handle table style pseudoconstants for settings & avoid deprecated function.
112 'callback' => 'CRM_Contribute_PseudoConstant::contributionPage',
113 ],
114 'html_type' => 'select',
115 'add' => '4.7',
116 'title' => ts('Default invoice payment page'),
117 'is_domain' => 1,
118 'is_contact' => 0,
119 'help_text' => NULL,
120 ],
121 'always_post_to_accounts_receivable' => [
122 'group_name' => 'Contribute Preferences',
123 'group' => 'contribute',
124 'name' => 'always_post_to_accounts_receivable',
125 'type' => 'Boolean',
126 'html_type' => 'checkbox',
127 'quick_form_type' => 'Element',
128 'default' => 0,
129 'add' => '4.7',
130 'title' => ts('Always post to Accounts Receivable?'),
131 'is_domain' => 1,
132 'is_contact' => 0,
133 'help_text' => NULL,
134 ],
135 'update_contribution_on_membership_type_change' => [
136 'group_name' => 'Contribute Preferences',
137 'group' => 'contribute',
138 'name' => 'update_contribution_on_membership_type_change',
139 'type' => 'Boolean',
140 'html_type' => 'checkbox',
141 'quick_form_type' => 'Element',
142 'default' => 0,
143 'add' => '4.7',
144 'title' => ts('Automatically update related contributions when Membership Type is changed'),
145 'is_domain' => 1,
146 'is_contact' => 0,
147 'description' => ts('Enabling this setting will update related contribution of membership(s) except if the membership is paid for with a recurring contribution.'),
148 'help_text' => NULL,
149 ],
150 ];