summaryrefslogtreecommitdiff
path: root/doc/UPGRADE-1.6-1.8
blob: cc9658496e37c03ee52254c2fa9b18518136abb0 (plain)
  1. Upgrading from version 1.6 to 1.8
  2. 1. make a backup copy of your databases and SQL-Ledger, just in case!
  3. $ cd /usr/local/www/sql-ledger
  4. $ pg_dump database > db.out
  5. $ tar cvf ~/sql-ledger.tar .
  6. 2. install LedgerSMB over top of your old installation
  7. $ cd /usr/local/www
  8. $ tar zxvf sql-ledger-1.8.0.tar.gz
  9. 3. change the tables to the new layout
  10. $ cd sql-ledger/sql
  11. $ psql database < upgrade-1.6-1.8.sql
  12. 4. copy the new master templates to your template directory
  13. $ cd ../templates
  14. $ cp Default-email_purchase_order.html your_template_dir/email_purchase_order.html
  15. $ cp Default-purchase_order.html your_template_dir/purchase_order.html
  16. $ cp Default-email_sales_order.html your_template_dir/email_sales_order.html
  17. $ cp Default-sales_order.html your_template_dir/sales_order.html
  18. 5. Two new accounts were hopefully added to your chart of accounts
  19. One account for Foreign Exchange Gains and one for
  20. Foreign Exchange Losses
  21. edit and change to suit your COA. You can safely change
  22. the account number too.
  23. 6. Edit your preferences
  24. In field 'Stylesheet' enter -> sql-ledger.css
  25. Stylesheet is in the css directory
  26. Add your foreign currencies in the Currencies field
  27. The first currency in the list is your default
  28. i.e CDN:USD:EUR:YEN
  29. If you used a nativecurr than it should be listed in the
  30. new currencies field.
  31. 7. <%nativecurr%> has changed to <%currency%>
  32. edit all your templates and change nativecurr to currency
  33. 8. I also added four more variables which can be used in your templates.
  34. <%contact%>, <%shiptocontact%>, <%shiptophone%>, <%shiptofax%>
  35. 9. Nameing convention for templates has changed from an
  36. underscore to a minus sign. If you designed your own
  37. master templates rename the templates from
  38. industry_invoice.html to industry-invoice.html,
  39. industry_packing_list.html to industry-packing_list.html, etc.
  40. The minus sign is used to separate the name and list them in
  41. the setup screen.
  42. This change only applies to the master templates in the
  43. templates root directory NOT the individual templates which
  44. are used by users.
  45. It looks more than it really is. Steps 1 to 4 are important,
  46. the rest is for fine tuning and info.