Restoring compressed sql files sometimes failed due to nasty bug in php gzfile function.
[fa-stable.git] / config.default.php
index 4948695794a091d13162e520a195052cb52740bf..5462943545f6afafb17a8a8403a3a2bac05442e8 100644 (file)
@@ -68,10 +68,13 @@ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_
        $power_by               = "FrontAccounting";
        $power_url              = "http://frontaccounting.com";
 
+       /* No check on edit conflicts. Maybe needed to be set to 1 in certains Windows Servers */
+       $no_check_edit_conflicts = 0;
+       
        /* Do not print zero lines amount of 0.00 in Sales Documents if service item. 1 = do not */
        $no_zero_lines_amount = 1;
 
-       /* Use icon for editkey (=true) righ of combobox. 1 = use, 0 = do not use */
+       /* Use icon for editkey (=true) right of combobox. 1 = use, 0 = do not use */
        $use_icon_for_editkey = 0;
 
        /* Creates automatic a default branch with contact. Value 0 do not create auto branch */
@@ -87,6 +90,8 @@ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_
        $use_date_picker = 1;
 
        /* use Audit Trails in GL */
+       /* This variable is deprecated. Setting this to 1, will stamp the user name in the memo fields in GL */
+       /* This has been superseded with built in Audit Trail */
        $use_audit_trail = 0;
 
        /* $show_voiced_gl_trans = 0, setting this to 1 will show the voided gl trans */
@@ -104,9 +109,13 @@ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_
        /* default print destination. 0 = PDF/Printer, 1 = Excel */
        $def_print_destination = 0;
 
+       /* default print orientation. 0 = Portrait, 1 = Landscape */
+       $def_print_orientation = 0;
+
        // Wiki context help configuration
        // If your help wiki use translated page titles uncomment next line
        // $old_style_help = 1; // this setting is depreciated and subject to removal in next FA versions
+       $old_style_help = 0;
        //      locally installed wiki module
        // $help_base_url = $path_to_root.'/modules/wiki/index.php?n='._('Help').'.';
        //      context help feed from frontaccounting.com
@@ -125,6 +134,7 @@ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_
        $date_system = 0;
 
        /* email stock location if order below reorder-level */
+       /* Remember to set an email on the Location(s). */
        $loc_notification = 0;
 
        /* print_invoice_no. 0 = print reference number, 1 = print invoice number */
@@ -140,27 +150,32 @@ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_
        $dateseps               = array("/", ".", "-", " ");
        $thoseps                = array(",", ".", " ");
        $decseps                = array(".", ",");
-       // defalt dateformats and dateseps indexes used before user login
+
+       /* default dateformats and dateseps indexes used before user login */
        $dflt_date_fmt = 0;
        $dflt_date_sep = 0;
 
-       $pagesizes              = array("Letter", "A4"); // default PDF pagesize
+       /* default PDF pagesize taken from /reporting/includes/tcpdf.php */
+       $pagesizes              = array("Letter", "A4");
 
        /* Accounts Payable */
        /* System check to see if quantity charged on purchase invoices exceeds the quantity received.
-       If this parameter is checked the proportion by which the purchase invoice is an overcharge
-       referred to before reporting an error */
+          If this parameter is checked the proportion by which the purchase invoice is an overcharge
+          referred to before reporting an error */
 
        $check_qty_charged_vs_del_qty = true;
 
        /* System check to see if price charged on purchase invoices exceeds the purchase order price.
-       If this parameter is checked the proportion by which the purchase invoice is an overcharge
-       referred to before reporting an error */
+          If this parameter is checked the proportion by which the purchase invoice is an overcharge
+          referred to before reporting an error */
 
        $check_price_charged_vs_order_price = True;
 
        $config_allocation_settled_allowance = 0.005;
 
+       /* Show average costed values instead of fixed standard cost in report, Inventory Valuation Report */
+       $use_costed_values = 0; 
+       
        /* Allow negative prices for dummy/service items. To be moved to GL db settings */
        $allow_negative_prices = 1;
 
@@ -174,14 +189,24 @@ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_
 
        $allow_demo_mode = false;
 
+    /* Whether to allow sending new password by e-mail */
+    $allow_password_reset = false;
+
+    /* Print Item Images on Sales Quotations. Set to 1 if so. */
+    $print_item_images_on_quote = 0;
+
        /* for uploaded item pictures */
        $pic_width              = 80;
        $pic_height     = 50;
        $max_image_size = 500;
 
-       /* skin for Business Graphics, 1, 2 or 3 */
+       /* skin for Business Graphics. 1 = Office, 2 = Matrix, or 3 = Spring. 
+          Pallete skin attributes set in reporting/includes/class.graphic.inc */
        $graph_skin     = 1;
 
+       /* UTF-8 font for Business Graphics. Copy it to /reporting/fonts/ folder. */
+       $UTF8_fontfile  = "FreeSans.ttf";
+
 /*     
        Before upgrade from pre-2.2 FA you have to move here your customized
        security roles definitions. If you have used standard roles, you
@@ -217,29 +242,6 @@ if(isset($_SESSION["wa_current_user"])) {
        // additional js source included in header
        $js_lib = $js_userlib = array();
 
-if (!defined('ICON_EDIT'))
-{
-       define("ICON_EDIT", "edit.gif");        
-       define("ICON_DELETE", "delete.gif");    
-       define("ICON_ADD", "ok.gif");   
-       define("ICON_UPDATE", "ok.gif");        
-       define("ICON_OK", "ok.gif");    
-       define("ICON_CANCEL", "cancel.png");    
-       define("ICON_GL", "gl.png");    
-       define("ICON_PRINT", "print.png");      
-       define("ICON_PDF", "pdf.gif");  
-       define("ICON_DOC", "invoice.gif");      
-       define("ICON_CREDIT", "credit.gif");    
-       define("ICON_RECEIVE", "receive.gif");  
-       define("ICON_DOWN", "download.gif");    
-       define("ICON_MONEY", "money.png");      
-       define("ICON_REMOVE", "remove.png");    
-       define("ICON_REPORT", "report.png");    
-       define("ICON_VIEW", "view.gif");        
-       define("ICON_SUBMIT", "ok.gif");
-       define("ICON_ESCAPE", "escape.png");    
-}
-
 /* 
        Display a dropdown select box for choosing Company to login if false.
        Show a blank editbox only if true where the Company NickName
@@ -268,4 +270,21 @@ $login_max_attempts = 10;
 $xr_providers = array("ECB", "YAHOO", "GOOGLE", "BLOOMBERG");
 $dflt_xr_provider = 0;
 
-?>
\ No newline at end of file
+/*
+       Set to true when remote service is authoritative source of exchange rates, and can be stored automatically without
+       manual edition. Otherwise exrate is stored on first new currency transaction of the day.
+*/
+$xr_provider_authoritative = false;
+
+/*
+       Optional sorting sales documents lines during edition according to item code
+*/
+$sort_sales_items = false;
+
+/*
+       Trial Balance opening balance presentation option.
+       When set to true past years part of opening balance is cleared.
+*/
+$clear_trial_balance_opening = false;
+
+?>