Treat invoice ID as number or string
avoid undefined value for $entry->child("entry:invoice")
avoid undefined value for $entry->child("entry:action")
get replacement variables not in while
add invoice items as parameters to avoid latex code in perl script
add parameter in sub definition of l_enc
remove sub createLaTeXTable, use createLaTexParams is more flexible
add some more parameters for invoice
fill in some more fields in the parameters
New functions for amount calculation:
- CalculateDiscount
- CalculateTax
- getAmount
These include discount and tax caclulation fully compatible with the
calculation that gnucash does.
use new sub getAmount to caculate all amounts. This includes now discount calculation
remove unused functions
replace multiple occurences of GNUCASH variable in one line
fix example template to not use gc2latex generated table but pameters
add all address fields, alow empty lines in address
Distinction for Credit-Notes added, works since GnuCash 2.6
Billing terms added
Applied LaTex::Encode to invoice notes and billing terms, path to perl
changed because of MacOSX MacPorts/CPAN installation
More robust for empty strings in case of LaTeX::Encode usage
Sub 'translateNewlines' moved into sub 'l_enc' in order to use it for
invoice notes, billing terms and the address; the output was wrong
with use of LaTeX::Encode, corrected with this commit