[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [816] trunk



Revision: 816
          http://svn.sourceforge.net/ledger-smb/?rev=816&view=rev
Author:   einhverfr
Date:     2007-02-18 11:46:07 -0800 (Sun, 18 Feb 2007)

Log Message:
-----------
Added documentation about tax interface.

Modified Paths:
--------------
    trunk/LedgerSMB/Form.pm
    trunk/doc/manual/LedgerSMB-manual.tex

Modified: trunk/LedgerSMB/Form.pm
===================================================================
--- trunk/LedgerSMB/Form.pm	2007-02-18 19:35:45 UTC (rev 815)
+++ trunk/LedgerSMB/Form.pm	2007-02-18 19:46:07 UTC (rev 816)
@@ -575,6 +575,9 @@
 	$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} : $!");

Modified: trunk/doc/manual/LedgerSMB-manual.tex
===================================================================
--- trunk/doc/manual/LedgerSMB-manual.tex	2007-02-18 19:35:45 UTC (rev 815)
+++ trunk/doc/manual/LedgerSMB-manual.tex	2007-02-18 19:46:07 UTC (rev 816)
@@ -471,7 +471,16 @@
 
 
 \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}
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.