Hello,
I must modify invoice template and add tax value calculations not only for whole invoice but separately to every position(product) on invoice.
Products have different tax values.
I've added columns called tax to invitems and invoicedetails tables and I'm looking for place where invoice positions are calculated on ex. keyup events.
I also should change invoice tax field behaviour - it should contain now the sum for tax position of every invoice product and be readonly.
The second question is:
when I press add invoice invoices_add.php is fired and, automaticly, product called Title 1(id=1) from invitems table is added as the first position of invoice.
How to change that to any other invitems row as a default for adding new invoice?
Can you help me?
Regards,
Jacek