From d26da56dac675f2c6f4847ca2fc83146f2fb3cdd Mon Sep 17 00:00:00 2001 From: einhverfr Date: Sun, 18 Feb 2007 19:46:07 +0000 Subject: Added documentation about tax interface. git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@816 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Form.pm | 3 +++ doc/manual/LedgerSMB-manual.tex | 11 ++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) 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} -- cgit v1.2.3