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

This topic contains 5 replies, has 3 voices, and was last updated by  julianengel 1 week, 1 day ago.

Viewing 6 posts - 1 through 6 (of 6 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!

    #20372

    superkaybee
    Participant

    Hi psycho0verload, we are looking for this same feature, to have a pre-tax subtotal shown, especially when we include a discount. Would you be able to share how you implemented this on your system? I’m looking at the same code but unsure of how to apply my changes with the frameworks in use. Thanks!

    #20394

    julianengel
    Participant

    Ah yes. This is the same thing I just opened up a new issue about before seeing this. Would you be able to share how you managed to achieve this @psycho0verload?

    #20396

    psycho0verload
    Participant

    You can see my Variante at https://github.com/Cretection/invoiceninja

    #20399

    julianengel
    Participant

    Thank you! I’ll check it out!

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

You must be logged in to reply to this topic.

Posted in: