summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-02-18 19:46:07 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-02-18 19:46:07 +0000
commitd26da56dac675f2c6f4847ca2fc83146f2fb3cdd (patch)
treef9bd77ac02a3066a6a859779082792a4b0b8d0f9
parent44647ab9c528e7dbba47a50420439a5b5dfab58e (diff)
Added documentation about tax interface.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@816 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-xLedgerSMB/Form.pm3
-rw-r--r--doc/manual/LedgerSMB-manual.tex11
2 files changed, 13 insertions, 1 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index 4b30c317..caa9857b 100755
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -575,6 +575,9 @@ sub parse_template {
$self->{images} = "${LedgerSMB::Sysconfig::images}/$self->{templates}";
if ($self->{language_code}) {
+ if ($self->{language_code} =~ /(\.\.|\/|\*)/){
+ $self->error("Invalid Language Code");
+ }
if (-f "$self->{templates}/$self->{language_code}/$self->{IN}") {
open(IN, '<', "$self->{templates}/$self->{language_code}/$self->{IN}") or $self->error("$self->{IN} : $!");
diff --git a/doc/manual/LedgerSMB-manual.tex b/doc/manual/LedgerSMB-manual.tex
index 04d54993..388e8482 100644
--- a/doc/manual/LedgerSMB-manual.tex
+++ b/doc/manual/LedgerSMB-manual.tex
@@ -471,7 +471,16 @@ in the System submenu.
\subsection{Taxes, Defaults, and Preferences}
-
+One of the new features in 1.2 is the modular sales tax system and the simple
+sales tax module. This allows one to install different tax modules and then
+select which taxes are applied by which programming modules. The sales tax
+module has access to everything on the submitted form so it is able to make
+complex determinations on what is taxable based on arbitrary criteria.
+
+The tax rules drop-down box allows one to select any installed tax module
+(LedgerSMB 1.2 ships only with the simple module), while the ordering is an
+integer which allows one to specify a tax run which occurs on the form after
+any rules with lower entries in this box. This allows for compounding of sales tax (for example, when PST applies to the total and GST as well).
\subsubsection{Adding A Sales Tax Account}