diff options
-rwxr-xr-x | LedgerSMB/Form.pm | 3 | ||||
-rw-r--r-- | doc/manual/LedgerSMB-manual.tex | 11 |
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} |