config.php

This is the config.php for FA 2.4.x.

Data not in config.php

System variables in config.php

  1. $error_logfile = $path_to_root.'/tmp/errors.log';
    • A warning or error during operation is written to this logfile.
  2. $debug = 1;
    • Don't touch this. This is for special operations.
  3. $show_sql = 0;
    • Setting this variable to 1 will print all the SQL statements on screen. It takes a lot of spaces, so it might be difficult to see the forms.
  4. $go_debug = 0;
    • This shows only user warnings, errors and notices during operation.
    • Setting this to 1 shows all kind of warnings, errors and notices.
  5. $pdf_debug = 0;
    • Setting this to 1 shows all internal pdf output codes.
  6. $sql_trail = 0;
    • Set $sql_trail to 1 only if you want to perform bugtracking sql trail
    • Warning: this produces huge amount of data in sql_trail table.
    • Don't forget switch this option off and flush the table manually after trail checking, or your future backup files will get overloaded with this extra needless data.
  7. $select_trail = 0;
    • Setting this to 1 tracks SELECT queries also
  8. $app_title = "NotrinosERP";
    • Main Title of Application
  9. $version = "2.4.1";
    • Application Version (Release) now moved to version.php file
  10. $build_version = date("d.m.Y", filemtime("$path_to_root/CHANGELOG.txt"));
    • Build for development and support purposes. Don't touch this.
  11. $power_by = "NotrinosERP";
    • Powered by. Don't touch this.
  12. $power_url = "http://notrinos.com ";
    • Powered by URL. Don't touch this.
  13. $no_check_edit_conflicts = 0;
    • No check on edit conflicts. May need to be set to 1 in certain Windows Servers.
  14. $use_icon_for_editkey = 0;
    • Use icon for editkey (=true) right of combobox. 1 = use, 0 = do not use
  15. $auto_create_branch = 1;
    • Creates automatic a default branch with contact. Value 0 do not create auto branch
  16. $use_popup_windows = 1;
    • Use popup windows for views. This is the most common way to use these views. You see the underlying screen as well.
  17. $use_audit_trail = 0;
    • 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
  18. $use_oldstyle_convert = 0;
    • Setting this to 1 will use old style amount convert (income and expense in BalanceSheet, Profit/Loss Statement)
  19. $show_users_online = 0;
    • Setting this variable to 1 shows users online discretely in the footer.
    • This might be handy to see how many users are online on the company, before doing critical operations.
  20. $old_style_help = 0;
    • If your help wiki uses translated page titles set to 1. It is used only in includes/page/header.inc
    • This setting is depreciated and subject to removal in future FA versions
  21. $help_base_url = null;
    • If not used set $help_base_url = null;
    • Setting $help_base_url = 'http://support.notrinos.com/ERP/index.php?n=Help.'; will use this Wiki for your help.
    • Setting $help_base_url = $path_to_root.'/modules/wiki/index.php?n='._('Help').'.'; or similar URL will use locally installed Wiki Help
  22. $comp_path = $path_to_root.'/company';
    • Per user data/cache directory. Don't touch this.
  23. $date_system = 0;
    • Date systems. 0 = traditional, 1 = Jalali used by Iran and neighbour countries, Afghanistan and some other Central / South East Asian nations, 2 = Islamic used by other arabic nations. 3 = traditional, but where non-workday is Friday and start of week is Saturday.
  24. $allow_gl_reopen = 0;
    • Allow reopening closed transactions
    • New variable in FA 2.4.x
  25. $dateformats = array("MMDDYYYY", "DDMMYYYY", "YYYYMMDD","MmmDDYYYY", "DDMmmYYYY", "YYYYMmmDD");
    • Don't touch this. This is our options for date presentation.
  26. $dateseps = array("/", ".", "-", " ");
    • These are the most common date separators. Be careful if you change these. It might give side-effects.
  27. $thoseps = array(",", ".", " ");
    • Don't touch this. These are our options for thousand separators
  28. $decseps = array(".", ",");
    • Don't touch this. These are our options for decimal separators
  29. $dflt_date_fmt = 0;
    • Don't touch this. Defalt dateformat index used before user login
  30. $dflt_date_sep = 0;
    • Don't touch this. Defalt date separator used before user login
  31. $pagesizes = array("Letter", "A4");
    • Default PDF pagesize. If you need more/other, please look inside file tcpdf.php in /reporting/includes folder.
  32. $check_qty_charged_vs_del_qty = true;
    • 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 is referred to before reporting an error. This threshold proportion margin is set in SysPrefs table as po_over_receive.
  33. $check_price_charged_vs_order_price = 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. This threshold proportion margin is set in SysPrefs table as po_over_charge.
  34. $config_allocation_settled_allowance = 0.005;
    • Difference to allow fully allocations.
  35. $use_costed_values = 1;
    • Show average costed values instead of fixed standard cost in report, Inventory Valuation Report.
  36. $show_menu_category_icons = 0;
    • Show menu category icons in core themes
  37. $allow_demo_mode = false;
    • Setting this to true will pre-print the demouser and password parameters. Only use this is you are planning a demo system.
  38. $allow_password_reset = false;
    • Whether to allow sending new password by e-mail
  39. $pic_width = 80;
    • Uploaded Item Picture width in pixels.
  40. $pic_height = 50;
    • Uploaded Item Picture height in pixels.
  41. $max_image_size = 500;
    • Max size in KB for uploaded Item Picture.
  42. $graph_skin = 1;
    • Skin for Business Graphics. 1 = Office, 2 = Matrix, or 3 = Spring. Pallete skin attributes set in reporting/includes/class.graphic.inc
  43. $UTF8_fontfile = "FreeSans.ttf";
    • UTF-8 font for Business Graphics. Copy it to /reporting/fonts/ folder. Get it from the GNU FreeFont Archives.
    • For Arabic Dashboard, use $UTF8_fontfile = "zarnormal.ttf";
  44. $text_company_selection = false;
    • Privacy Login Mode - display text edit box for Company if true.
  45. $hide_inaccessible_menu_items = 0;
    • Hide if true, else greyed out
  46. $login_delay = 30; // 0 to disable (only for trusted intranet)
  47. $login_max_attempts = 10;
    • Brute force prevention.
  48. $xr_providers = array("ECB", "YAHOO", "GOOGLE", "BLOOMBERG");
    • Don't touch this. This is our options for Exchange Rate Providers.
    • YAHOO broken since 2017-Dec.
  49. $dflt_xr_provider = 0;
    • Default Exchange Rate Provider set to ECB for backwards compatibility.
    • Variables available since FA v2.3.17 (Backward compatible if absent)
  50. $xr_provider_authoritative = false;
    • 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.
  51. $sort_sales_items = false;
    • Optional sorting sales documents lines during edition according to item code
  52. $clear_trial_balance_opening = false;
    • Trial Balance opening balance presentation option. When set to true, past years part of opening balance is cleared.
  53. $backup_path = dirname(__FILE__).'/company/%s/backup/';
    • Optional backup path.
    • Use %s in place of company number.
    • If not defined $comp_path/%s/backup/ is used.
    • Commented out by default
  54. $use_popup_search = true;
    • Optional popup search enabled if this is true.
  55. $max_rows_in_search = 10;
    • Denotes maximum number of rows used in search

System config variables moved from config.php to sys_prefs table in FA 2.4.x

  1. $no_zero_lines_amount = 1;
    • Do not print zero lines amount of 0.00 in Sales Documents if service item. 1 = do not
  2. $show_po_item_codes = 0;
    • Show item codes on purchase order
  3. $accounts_alpha = 0;
    • Allow alpha characters in accounts. 0 = only numeric, 1 = alpha numeric, 2 = uppercase alpha numeric
  4. $loc_notification = 0;
    • If this variable is 1 emails stock location if order below reorder-level. Remember to set an email on the Location(s).
  5. $print_invoice_no = 0;
    • Setting this variable to 1 prints our internal numbers on the documents. If this variable is 0 prints our reference numbers on the documents instead. This is very handy if you have a letter/number combination in your references.
  6. $alternative_tax_include_on_docs = 0;
    • Setting this variable to 1 will print sub total before tax and then the traditional values, instead of text line.
  7. $suppress_tax_rates = 0;
    • Setting this variable to 1 will suppress the tax rates. Put tax rates in Tax Type Name instead. Useful for tax on tax.
  8. $allow_negative_prices = 1;
    • Allow negative prices for dummy/service items. To be moved to GL db settings
  9. $print_item_images_on_quote = 0;
    • Print Item Images on Sales Quotations. Set to 1 if so.
  10. if(isset($_SESSION["wa_current_user"])) {
    define("BACKUP_PATH", $comp_path.'/'.user_company()."/backup/");
    }
    • Internal variable. Don't touch.
  11. $js_path = $path_to_root.'/js/';
  12. $js_static = array('JsHttpRequest.js', 'behaviour.js', 'utils.js', 'inserts.js');
  13. $js_lib = $js_userlib = array();
    • Internal JavaScript variables. Don't touch.

System config variables not needed in config.php for FA 2.4.x

  1. $show_voided_gl_trans = 0;
    • Setting this to 1 will show the voided GL Transactions

Moved to fields in tables

  1. $save_report_selections = 0; // users.save_report_selections
    • Save Report selections (a value > 0 means days to save. 0 = no save)
  2. $use_date_picker = 1; // users.use_date_picker
    • Use date picker for all date fields. This is very handy to pick up dates. If you don't want it, set this value to 0.
  3. $def_print_destination = 0; // users.def_print_destination
    • Setting this variable to 1 sets the default destination in reports to Excel instead of PDF/Printer.
  4. $def_print_orientation = 0; // users.def_print_orientation
    • Setting this variable to 1 sets the default orientation in reports to Landscape instead of Portrait.