Merge pull request #12586 from eileenmcnaughton/dao_in_export
[civicrm-core.git] / settings / Contribute.setting.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | CiviCRM version 5 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2017 |
7 +--------------------------------------------------------------------+
8 | This file is a part of CiviCRM. |
9 | |
10 | CiviCRM is free software; you can copy, modify, and distribute it |
11 | under the terms of the GNU Affero General Public License |
12 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
13 | |
14 | CiviCRM is distributed in the hope that it will be useful, but |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
17 | See the GNU Affero General Public License for more details. |
18 | |
19 | You should have received a copy of the GNU Affero General Public |
20 | License and the CiviCRM Licensing Exception along |
21 | with this program; if not, contact CiviCRM LLC |
22 | at info[AT]civicrm[DOT]org. If you have questions about the |
23 | GNU Affero General Public License or the licensing of CiviCRM, |
24 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
25 +--------------------------------------------------------------------+
26 */
27
28 /**
29 *
30 * @package CRM
31 * @copyright CiviCRM LLC (c) 2004-2017
32 *
33 * Settings metadata file
34 */
35
36 return array(
37 'cvv_backoffice_required' => array(
38 'group_name' => 'Contribute Preferences',
39 'group' => 'contribute',
40 'name' => 'cvv_backoffice_required',
41 'type' => 'Boolean',
42 'quick_form_type' => 'YesNo',
43 'default' => '1',
44 'add' => '4.1',
45 'title' => 'CVV required for backoffice?',
46 'is_domain' => 1,
47 'is_contact' => 0,
48 'description' => 'Is the CVV code required for back office credit card transactions',
49 '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',
50 ),
51 'contribution_invoice_settings' => array(
52 'group_name' => 'Contribute Preferences',
53 'group' => 'contribute',
54 'name' => 'contribution_invoice_settings',
55 'type' => 'Array',
56 'default' => array(
57 'invoice_prefix' => 'INV_',
58 'credit_notes_prefix' => 'CN_',
59 'due_date' => '10',
60 'due_date_period' => 'days',
61 'notes' => '',
62 'tax_term' => 'Sales Tax',
63 'tax_display_settings' => 'Inclusive',
64 ),
65 'add' => '4.7',
66 'title' => 'Contribution Invoice Settings',
67 'is_domain' => 1,
68 'is_contact' => 0,
69 'description' => NULL,
70 'help_text' => NULL,
71 ),
72 'invoicing' => array(
73 'group_name' => 'Contribute Preferences',
74 'group' => 'contribute',
75 'name' => 'invoicing',
76 'type' => 'Boolean',
77 'html_type' => 'checkbox',
78 'quick_form_type' => 'Element',
79 'default' => 0,
80 'add' => '4.7',
81 'title' => 'Enable Tax and Invoicing',
82 'is_domain' => 1,
83 'is_contact' => 0,
84 'description' => NULL,
85 'help_text' => NULL,
86 ),
87 'acl_financial_type' => array(
88 'group_name' => 'Contribute Preferences',
89 'group' => 'contribute',
90 'name' => 'acl_financial_type',
91 'type' => 'Boolean',
92 'html_type' => 'checkbox',
93 'quick_form_type' => 'Element',
94 'default' => 0,
95 'add' => '4.7',
96 'title' => 'Enable Access Control by Financial Type',
97 'is_domain' => 1,
98 'is_contact' => 0,
99 'description' => NULL,
100 'help_text' => NULL,
101 ),
102 'deferred_revenue_enabled' => array(
103 'group_name' => 'Contribute Preferences',
104 'group' => 'contribute',
105 'name' => 'deferred_revenue_enabled',
106 'type' => 'Boolean',
107 'html_type' => 'checkbox',
108 'quick_form_type' => 'Element',
109 'default' => 0,
110 'add' => '4.7',
111 'title' => 'Enable Deferred Revenue',
112 'is_domain' => 1,
113 'is_contact' => 0,
114 'description' => NULL,
115 'help_text' => NULL,
116 ),
117 'default_invoice_page' => array(
118 'group_name' => 'Contribute Preferences',
119 'group' => 'contribute',
120 'name' => 'default_invoice_page',
121 'type' => 'Integer',
122 'quick_form_type' => 'Select',
123 'default' => NULL,
124 'pseudoconstant' => array(
125 // @todo - handle table style pseudoconstants for settings & avoid deprecated function.
126 'callback' => 'CRM_Contribute_PseudoConstant::contributionPage',
127 ),
128 'html_type' => 'select',
129 'add' => '4.7',
130 'title' => 'Default invoice payment page',
131 'is_domain' => 1,
132 'is_contact' => 0,
133 'description' => NULL,
134 'help_text' => NULL,
135 ),
136 'always_post_to_accounts_receivable' => array(
137 'group_name' => 'Contribute Preferences',
138 'group' => 'contribute',
139 'name' => 'always_post_to_accounts_receivable',
140 'type' => 'Boolean',
141 'html_type' => 'checkbox',
142 'quick_form_type' => 'Element',
143 'default' => 0,
144 'add' => '4.7',
145 'title' => 'Always post to Accounts Receivable?',
146 'is_domain' => 1,
147 'is_contact' => 0,
148 'description' => NULL,
149 'help_text' => NULL,
150 ),
151 'update_contribution_on_membership_type_change' => array(
152 'group_name' => 'Contribute Preferences',
153 'group' => 'contribute',
154 'name' => 'update_contribution_on_membership_type_change',
155 'type' => 'Boolean',
156 'html_type' => 'checkbox',
157 'quick_form_type' => 'Element',
158 'default' => 0,
159 'add' => '4.7',
160 'title' => 'Automatically update related contributions when Membership Type is changed',
161 'is_domain' => 1,
162 'is_contact' => 0,
163 'description' => 'Enabling this setting will update related contribution of membership(s) except if the membership is paid for with a recurring contribution.',
164 'help_text' => NULL,
165 ),
166 );