Recurrent Invoices: fixed buggy call to non existing function and payment terms type...
[fa-stable.git] / config.default.php
1 <?php
2 /**********************************************************************
3     Copyright (C) FrontAccounting, LLC.
4         Released under the terms of the GNU General Public License, GPL, 
5         as published by the Free Software Foundation, either version 3 
6         of the License, or (at your option) any later version.
7     This program is distributed in the hope that it will be useful,
8     but WITHOUT ANY WARRANTY; without even the implied warranty of
9     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
10     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
11 ***********************************************************************/
12     //--------------------------------------------------
13
14         // User configurable variables
15         //---------------------------------------------------
16
17         /*Show debug messages returned from an error on the page.
18         Debugging info level also determined by settings in PHP.ini
19         if $debug=1 show debugging info, dont show if $debug=0 */
20
21 if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_to_root']))
22         die("Restricted access");
23
24         // Server time zone. Since php 5.3.0 time zone have to be set either here or in server php ini file
25         if (!ini_get('date.timezone'))
26                 ini_set('date.timezone', 'Europe/Berlin');
27
28         // Log file for error/warning messages. Should be set to any location
29         // writable by www server. When set to empty string logging is switched off. 
30         // Special value 'syslog' can be used for system logger usage (see php manual).
31         //$error_logfile = '';
32         $error_logfile = VARLOG_PATH.'/errors.log';
33         $debug                  = 1;    // show sql on database errors
34
35         $show_sql               = 0;    // show all sql queries in page footer for debugging purposes
36         $go_debug               = 0;    // set to 1 for basic debugging, or 2 to see also backtrace after failure.
37         $pdf_debug              = 0;    // display pdf source instead reports for debugging when $go_debug!=0
38         // set $db_trail when you need full log of database changes for debugging purposes
39         // Warning: this option can produce huge amount of data either in backups or error log file.
40         // 1 - log to db_trail table
41         // 2 - log to error file
42         $db_trail               = 0;
43
44         // Main Title
45         $app_title = "FrontAccounting";
46
47         // Build for development purposes
48         $build_version  = date("d.m.Y", filemtime("$path_to_root/CHANGELOG.txt"));
49
50         // Powered by
51         $power_by               = "FrontAccounting";
52         $power_url              = "http://frontaccounting.com";
53
54         /* No check on edit conflicts. Maybe needed to be set to 1 in certains Windows Servers */
55         $no_check_edit_conflicts = 0;
56         
57         /* Use additional icon for supplier/customer edition right of combobox. 1 = use, 0 = do not use */
58         $use_icon_for_editkey = 0;
59
60         /* Creates automatic a default branch with contact. Value 0 do not create auto branch */
61         $auto_create_branch = 1;
62
63         /* use popup windows for views */
64         $use_popup_windows = 1;
65
66         /* use Audit Trails in GL */
67         /* This variable is deprecated. Setting this to 1, will stamp the user name in the memo fields in GL */
68         /* This has been superseded with built in Audit Trail */
69         $use_audit_trail = 0;
70
71         /* use old style convert (income and expense in BS, PL) */
72         $use_oldstyle_convert = 0;
73
74         /* show users online discretely in the footer */
75         $show_users_online = 0;
76
77         // Wiki context help configuration
78         // If your help wiki use translated page titles uncomment next line
79         // $old_style_help = 1; // this setting is depreciated and subject to removal in next FA versions
80         $old_style_help = 0;
81         //      locally installed wiki module
82         // $help_base_url = $path_to_root.'/modules/wiki/index.php?n='._('Help').'.';
83         //      context help feed from frontaccounting.com
84         $help_base_url = 'http://frontaccounting.com/fawiki/index.php?n=Help.';
85         //      set to null if not used:
86         //      $help_base_url = null;
87
88         /* per user data/cache directory */
89         $comp_path = $path_to_root.'/company';
90
91         /* Date systems. 0 = traditional, 1 = Jalali used by Iran, Afghanistan and some other Central Asian nations,
92         2 = Islamic used by other arabic nations. 3 = traditional, but where non-workday is Friday and start of week is Saturday */
93         $date_system = 0;
94
95         /* allow reopening closed transactions */
96         $allow_gl_reopen = 0;
97
98         $dateformats    = array("MMDDYYYY", "DDMMYYYY", "YYYYMMDD","MmmDDYYYY", "DDMmmYYYY", "YYYYMmmDD");
99         $dateseps               = array("/", ".", "-", " ");
100         $thoseps                = array(",", ".", " ");
101         $decseps                = array(".", ",");
102
103         /* default dateformats and dateseps indexes used before user login */
104         $dflt_date_fmt = 0;
105         $dflt_date_sep = 0;
106
107         /* default PDF pagesize taken from /reporting/includes/tcpdf.php */
108         $pagesizes              = array("Letter", "A4");
109
110         /* Accounts Payable */
111         /* System check to see if quantity charged on purchase invoices exceeds the quantity received.
112            If this parameter is checked the proportion by which the purchase invoice is an overcharge
113            referred to before reporting an error */
114
115         $check_qty_charged_vs_del_qty = true;
116
117         /* System check to see if price charged on purchase invoices exceeds the purchase order price.
118            If this parameter is checked the proportion by which the purchase invoice is an overcharge
119            referred to before reporting an error */
120
121         $check_price_charged_vs_order_price = true;
122
123         $config_allocation_settled_allowance = 0.005;
124
125         /* Show average costed values instead of fixed standard cost in report, Inventory Valuation Report */
126         $use_costed_values = 1; 
127         
128         /* Show menu category icons in core themes */
129         $show_menu_category_icons = 1;
130         
131         // Internal configurable variables
132         //-----------------------------------------------------------------------------------
133
134         /* Whether to display the demo login and password or not */
135
136         $allow_demo_mode = false;
137
138     /* Whether to allow sending new password by e-mail */
139     $allow_password_reset = false;
140
141         /* for uploaded item pictures */
142         $pic_width              = 80;
143         $pic_height     = 50;
144         $max_image_size = 500;
145
146         /* skin for Business Graphics. 1 = Office, 2 = Matrix, or 3 = Spring. 
147            Pallete skin attributes set in reporting/includes/class.graphic.inc */
148         $graph_skin     = 1;
149
150         /* UTF-8 font for Business Graphics. Copy it to /reporting/fonts/ folder. */
151         $UTF8_fontfile  = "FreeSans.ttf";
152         //$UTF8_fontfile        = "zarnormal.ttf"; // for Arabic Dashboard
153
154 /* 
155         Display a dropdown select box for choosing Company to login if false.
156         Show a blank editbox only if true where the Company NickName
157         will have to be manually entered. This is when privacy is needed.
158 */
159         $text_company_selection  = false;
160
161 /*  Should FA hide menu items (Applications, Modules, and Actions) from the user if they don't have access to them? 
162     0 for no       1 for yes
163 */
164
165         $hide_inaccessible_menu_items = 0;
166
167 /*
168         Brute force prevention.
169         $login_delay seconds delay is required between login attempts after $login_max_attemps failed logins.
170         Set $login_delay to 0 to disable the feature (not recommended)
171 */
172         $login_delay = 30;
173         $login_max_attempts = 10;
174
175 /*
176         Choose Exchange Rate Provider
177         Default is ECB for backwards compatibility
178 */
179         $xr_providers = array("ECB", "EXCHANGE-RATES.ORG", "GOOGLE", "YAHOO", "BLOOMBERG");
180         $dflt_xr_provider = 0;
181
182 /*
183         Set to true when remote service is authoritative source of exchange rates, and can be stored automatically without
184         manual edition. Otherwise exrate is stored on first new currency transaction of the day.
185 */
186         $xr_provider_authoritative = false;
187
188 /*
189         Optional sorting sales documents lines during edition according to item code
190 */
191         $sort_sales_items = false;
192
193 /*
194         Trial Balance opening balance presentation option.
195         When set to true past years part of opening balance is cleared.
196 */
197         $clear_trial_balance_opening = false;
198
199 /*
200         Optional backup path. Use %s in place of company number.
201         If not defined $comp_path/%s/backup/ is used.
202 */
203 //      $backup_path = dirname(__FILE__).'/company/%s/backup/';
204
205 /*
206         Optional popup search enabled if this is true.
207         $max_rows_in_search = 10 is used for maximum rows in search
208 */
209         $use_popup_search = true;
210         $max_rows_in_search = 10;