Home Forums Support Add pre-tax variable to $subtotals at PDF Invoice

This topic contains 1 reply, has 1 voice, and was last updated by  psycho0verload 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16937

    psycho0verload
    Participant

    Hi,

    inclusive taxes have been enabled in my System. I need to expand the $subtotals with the pre-tax amount respectively reduce the sub-total with the tax amount in $subtotals.

    I found something in resources/assets/js/pdf.pdfmake.js and added this:

    
    var netto = invoice.amount - invoice.tax_amount1;
        if (parseFloat(invoice.tax_rate1 || 0) != 0 || invoice.tax_name1) {
            data.push([{text: formatMoneyInvoice(netto, invoice)}]);
    }
    

    But it doesn’t work.

    Please help me.

    Thanks

    #16938

    psycho0verload
    Participant

    After learning how to use

    gulp / bower / elexir I am able to create my variable!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Posted in: