Support » Plugin: WooCommerce PDF Invoices » Taxes

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Bas Elbers


    Thank you I didn’t noticed that. I was at the moment of generating that invoice some playing around with the calculations. 😉 I will change the screenshot to a good one. The plugins calculations are as they should.

    I will close this topic. Regards, Bas

    If the calculations are right please tell how to include them right on the pdf invoice. I set 23% VAT in WooCommerce and 10% VAT in WooCommerce PDF Invoices. Net price of the product is 100.

    And here’s what is generated in the pdf:
    Unit price 77
    VAT 10% 11,18
    Grand Total 123

    Plugin Author Bas Elbers


    Please try to replace the line (265) in includes/class-invoice.php that’s like:
    <td class="totals"><?php echo woocommerce_price(($order->get_total() / (100+$rate)) * $rate); ?></td>

    to this:
    <td class="totals"><?php echo woocommerce_price(($order_subtotal_excl_tax / 100) * $rate); ?></td>

    I think it will work like this.

    Thanks, this corrected the calculations a bit but I think there is a mistake in the $order_subtotal_excl_tax. Now invoice looks like this:

    Unit price 77
    VAT 10% 7,70
    Grand Total 123

    Unit price should be 100 as this is my net price set in woocommerce, it is displayed correctly in the invoice only after I change line (230) from
    $item_unit_price_excl_tax = $item_unit_price_incl_tax - $item_tax;
    to this
    $item_unit_price_excl_tax = $item_unit_price_incl_tax;

    Plugin Author Bas Elbers


    I will develop a update that looks if the shop uses product prices included tax or without tax. If the shop shows prices included tax on there shop, I will show the unit prices on the invoice included tax and vice versa. This way you won’t have this problem anymore. 🙂

    Nice to see that you have found a quick fix.



    Hello – I also have trouble with the amounts shown – has this been updated yet or do we need to edit the plugin files as suggested by eria86?
    Do we need to do your edit above also ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Taxes’ is closed to new replies.