<s>
LedgerSMB	B-Application
is	O
a	O
free	O
software	O
double	O
entry	O
accounting	O
and	O
Enterprise	O
Resource	O
Planning	O
(	O
ERP	O
)	O
system	O
.	O
</s>
<s>
Accounting	O
data	O
is	O
stored	O
in	O
a	O
SQL	B-Language
database	I-Language
server	O
and	O
a	O
standard	O
web	O
browser	O
can	O
be	O
used	O
as	O
its	O
user	O
interface	O
.	O
</s>
<s>
The	O
system	O
uses	O
the	O
Perl	B-Language
programming	I-Language
language	I-Language
and	O
a	O
Perl	B-Language
database	O
interface	O
module	O
for	O
processing	O
,	O
and	O
PostgreSQL	B-Application
for	O
data	O
storage	O
.	O
</s>
<s>
LedgerSMB	B-Application
is	O
a	O
client-server	O
application	O
,	O
with	O
server	O
access	O
through	O
a	O
web	O
browser	O
.	O
</s>
<s>
LedgerSMB	B-Application
is	O
distributed	O
under	O
the	O
terms	O
of	O
the	O
GPL-2.0-or-later	B-License
license	O
.	O
</s>
<s>
LedgerSMB	B-Application
supports	O
multiple	O
currencies	O
,	O
multiple	O
sales	O
or	O
VAT	O
tax	O
rates	O
and	O
per-user	O
language	O
and	O
locale	O
(	O
number	O
formatting	O
)	O
settings	O
.	O
</s>
<s>
Prior	O
to	O
1.3	O
,	O
there	O
were	O
numerous	O
challenges	O
in	O
the	O
code	O
base	O
,	O
such	O
as	O
the	O
fact	O
that	O
the	O
Perl	B-Language
code	O
generated	O
both	O
database	O
queries	O
and	O
web	O
pages	O
by	O
using	O
a	O
combination	O
of	O
string-concatenation	O
and	O
string-printing	O
page	O
snippets	O
to	O
compose	O
the	O
resulting	O
HTML	O
.	O
</s>
<s>
Faced	O
with	O
these	O
challenges	O
,	O
the	O
LedgerSMB	B-Application
team	O
developed	O
a	O
new	O
architecture	O
that	O
addresses	O
these	O
issues	O
by	O
adding	O
support	O
for	O
templates	O
in	O
the	O
user	O
interface	O
,	O
and	O
moving	O
all	O
database	O
calls	O
into	O
stored	O
procedures	O
.	O
</s>
<s>
The	O
overall	O
design	O
considerations	O
included	O
a	O
desire	O
to	O
ensure	O
that	O
multiple	O
programming	O
languages	O
could	O
be	O
used	O
cross-platform	B-Operating_System
to	O
access	O
LedgerSMB	B-Application
logic	O
and	O
that	O
security	O
would	O
be	O
consistently	O
enforced	O
across	O
these	O
applications	O
.	O
</s>
<s>
Thus	O
the	O
LedgerSMB	B-Application
team	O
envisioned	O
a	O
"	O
one	O
database	O
,	O
many	O
applications	O
"	O
environment	O
typical	O
of	O
SQL	B-Language
.	O
</s>
<s>
The	O
overall	O
approach	O
heavily	O
leverages	O
PostgreSQL	B-Application
roles	O
(	O
application	O
users	O
are	O
database	O
users	O
,	O
and	O
are	O
assigned	O
roles	O
)	O
.	O
</s>
<s>
These	O
are	O
then	O
exposed	O
to	O
the	O
Perl	B-Language
code	O
through	O
fairly	O
light-weight	O
wrappers	O
.	O
</s>
<s>
Workflow	O
is	O
handled	O
through	O
relatively	O
light-weight	O
Perl	B-Language
scripting	O
.	O
</s>
<s>
The	O
project	O
began	O
as	O
a	O
fork	O
of	O
SQL-Ledger	B-Language
when	O
Chris	O
Travers	O
,	O
dissatisfied	O
with	O
the	O
handling	O
of	O
security	O
bugs	O
in	O
SQL-Ledger	B-Language
,	O
joined	O
forces	O
with	O
Christopher	O
Murtagh	O
to	O
produce	O
a	O
fix	O
for	O
CVE-2006-4244	O
.	O
</s>
<s>
This	O
bug	O
was	O
apparently	O
reported	O
to	O
the	O
SQL-Ledger	B-Language
author	O
,	O
Dieter	O
Simader	O
,	O
several	O
months	O
prior	O
to	O
the	O
Chris	O
 '	O
working	O
on	O
a	O
patch	O
.	O
</s>
<s>
The	O
initial	O
release	O
of	O
LedgerSMB	B-Application
,	O
along	O
with	O
full	O
disclosure	O
of	O
the	O
bug	O
on	O
the	O
main	O
mailing	O
list	O
,	O
strained	O
relations	O
between	O
SQL-Ledger	B-Language
supporters	O
and	O
the	O
members	O
of	O
the	O
nascent	O
LedgerSMB	B-Application
project	O
.	O
</s>
