FrontAccounting Update

## Important Notes

- You can easily upload all the files to your installation folder on the server overwriting the existing files. From 2.2 RC, your existing configuration files, - config_db.php, config.php, /lang/installed_languages.inc and installed_extensions.php - will nolonger be installed. They are created the first time you install FrontAccounting and don't need further updates.
  - Backup (download) the following files to another folder:
    - if you have made changes to other files than above mentioned, like themes or so, backup these files.
  - Upload all the new files.
  - Look into the file, config.default.php and compare with your own config.php file. You should update the the following in your config.php:
  - Change the $version in your config.php file, about line 59, from "2.X.X" to "2.2.10".
  - Change in line 67 to:
    $power_url = "http://frontaccounting.com";
    Change in line 92 to:
    // $help_base_url = 'http://frontaccounting.com/fawiki/index.php?n=Help.';
    Paste these 2 lines into line 83:
    /* default print destination. 0 = PDF/Printer, 1 = Excel */
    $def_print_destination = 0;
    if this is an update from 2.2.6, 2.2.7, 2.2.8 , 2.2.9 to 2.2.10 you are done and should ignore the the rest of the items in this note.
  - Copy the 2 lines from config.default file, about line 122:
    $table_style = "class='tablestyle'";
    $table_style2 = "class='tablestyle2'";
    into config.php about line 122 and replace these 4 lines:
    if (!isset($_SESSION['bordercolor']))
    $_SESSION['bordercolor'] = "#8cacbb";
    $table_style = "cellpadding=3 border=1 bordercolor='".$_SESSION['bordercolor']."' class='tablestyle'";
    $table_style2 = "cellpadding=3 border=1 bordercolor='#cccccc' class='tablestyle2'";
    If this is an update from 2.2.3, 2.2.4 , 2.2.5 to 2.2.10 you are done and should ignore the the rest of the items in this note.
  - Copy these 2 lines from config.default.php about line 80-82 into config.php about line 80:
    /* Show users online discretetely in the footer */
    $show_users_online = 0;
    Change this to 1 if you want to show users online.
  - Remove these 2 lines from config.php about line 176-177:
    /* default start-up tab (orders/AP/stock/manuf/proj/GL/system) */
    $def_app = "orders";
  - Copy these 3 lines from config.default.php about line 113-115
    // defalt dateformats and dateseps indexes used before user login
    $dflt_date_fmt = 0;
    $dflt_date_sep = 0;
  - Copy these 2 lines from config.default.php about line 211-212:
    define("ICON_SUBMIT", "ok.gif"); // new in 2.2
    define("ICON_ESCAPE", "escape.png"); // new in 2.2
  - And paste them into config.php about line 209
  - If you use gregorian calendar and have non-workdays on Friday and first day of week = Saturday
    then you should set this line in config.php about line 95.

        $date_system = 3;

  - If you want to use FrontAccounting help wiki then set this line in config.php about line 85

        $help_base_url = "http://frontaccounting.net/fawiki?n=Help.";

  - Rename or remove the /install folder (you have already performed the install process earlier).
- There are no database changes during a major and minor release. Like from 2.2 to 2.2.1 - 2.2.X .
- If you are upgrading from an earlier installation you must immediately login on company 0, the first company you created, as admin (called the superadmin). If you use a theme other than the standard 3, aqua, cool or default, switch to one of these before going further. You can download a new one of the new themes on the download page later. Go to the 'Setup' tab and run 'Software Upgrade'. Mark the checkbox 'Install' and press 'Upgrade System'. You must also do this if you upgrade from 2.2 Beta to 2.2 RC. This will upgrade ALL your companies.
- If something goes wrong during upgrade, you can enter here again and try 'Force Upgrade', and press 'Upgrade System' again.
- Enter 'Setup' tab, 'System and Generel GL Setup'. Set the correct Accounts for Retained Earnings, Profit/Loss Year and Bank Charge.
- Enter 'Setup' tab, 'Access Setup'. Check all the roles and change as you please. The roles have been converted from the former Access Roles and may need some changes.
- Enter 'Setup' tab, 'Company Setup'. If you want Automatic Item Price Calculations from Standard Cost, add a percent to add and eventually round to the nearest XX Cent. Also check that Base for Auto Price calculations is set.