Invoice Printout: display registered capital and corporate code in the header
Invoice: do not display tax lines with 0 quantity.

Also simplify a bit the code
Invoice: fallback to invoice date for payment term
syncml : do not redefine variable as it is used later in some cases