The official SQL-Ledger version, plus some additions.
Perl Perl 6 Shell PLpgSQL CSS SQLPL Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
js Version 3.2.0 (Jan 14, 2016) Jan 20, 2016
sql Merge branch 'master' into full Apr 18, 2017
VERSION Add perldoc, clean code. Apr 8, 2018 Add perldoc, clean code. Apr 8, 2018 Add perldoc, clean code. Apr 8, 2018 Add perldoc, clean code. Apr 8, 2018
favicon.ico Add perldoc, clean code. Apr 8, 2018 Add perldoc, clean code. Apr 8, 2018
index.html Add perldoc, clean code. Apr 8, 2018
menu.ini Add perldoc, clean code. Apr 8, 2018 Add perldoc, clean code. Apr 8, 2018

What is SQL-Ledger?

SQL-Ledger is an open source ERP and accounting system. It gives you all the functionality you need for quotations, order management, invoices, payrolls and much more. The program is written in Perl, runs on an Apache webserver, uses a PostgreSQL database and is highly configurable.

About this repo

SQL-Ledger is developed by DWS Systems Inc.. The master branch contains the original version from DWS. It has version tags, so you can download a specific version back to 2.6.0 from October 1, 2005.

The full branch, which is checked out by default, provides some additions:

  • WLprinter
  • real Unicode support
  • minimalistic documentation
  • Swiss charts of accounts in German, French and Italian
  • security patch for template editor


To install the program on Debian, you can use the Ansible Role for SQL-Ledger. If you are on a different distribution, either follow the instructions from DWS, or open an issue in the other repo (the chances that you get an update depend on your Github name, the weather and the lunar phase).


WLprinter, included in the full branch, is a Java program that is executed on the client PC and allows to print directly from SQL-Ledger to your local printers. It is available for printing if you add a printer with command wlprinter at System--Workstations. The client program is started from Batch--WLprinter. You will have to add a Java security exception for your SQL-Ledger server.

Unicode Support

In difference to the original SQL-Ledger, the version in the full branch internally works with Unicode characters. This requires that your database, your templates and translations are all encoded in UTF-8.


The documentation is very minimalistic and doesn't contain much more than the function names of the different modules. If you have Mojolicious installed, you can start a perldoc server from your SQL-Ledger base directory with

perl -I. -Mojo -e"plugin 'PODRenderer'; app->start;" daemon

and browse to localhost:3000/perldoc/sql-ledger.


As mentioned above, what you find here is more or less a copy of the code from DWS. 'copy' means that the code flows from DWS to here and rarely in the other direction. 'more or less' means that the differences between the full and the master branch should always be as small that it is possible to include updates without problems. 2 merge conflics are not a problem, but 100 conflics are.

It follows that if you want the DWS code to change, you have to speak with them. If on the other hand you want this repo to change, don't care about the moon calendar and create an issue.

It was mentioned too that the full branch contains some additions, like Unicode support and documentation. So it's probably more correct to call it a superset of the DWS code.