fbpx

Home Forums Booster Plus Customer Forum Discount amount WITH tax on the invoice?

Tagged: , ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #45375
    M.W
    Participant

    In the invoice template we use this shortcode: [wcj_order_total_fees] (Woocommerce-settings- Booster-PDF Invoices & Packing Slips – Templates – Invoice)
    In the Woocommerce order we set the price excl. tax and the tax in a different column.
    On the invoice itself shows the discount without tax, it should show it with tax.
    See: https://ibb.co/pPQvTVD

    The template is setup like so:

    <p><h1>Factuur</h1>
    <table class=”pdf_invoice_seller_buyer_table”>
    <tbody>
    <tr>
    <th>Aan:</th>
    <th>Van:</th>
    </tr>
    <tr>
    <td>[wcj_order_billing_address]</td>
    <td>****************</td>
    </tr>
    </tbody>
    </table>
    <table class=”pdf_invoice_heading_table”>
    <tbody>
    <tr>
    <th>
    Factuurnummer:</th>
    <td>[wcj_invoice_number]</td>
    </tr>
    <tr>
    <th>Factuurdatum:</th>
    <td>[wcj_invoice_date]</td>
    </tr>
    <tr>
    <th>Bestelnummer:</th>
    <td>[wcj_order_number]</td>
    </tr>
    <tr>
    <th>Besteldatum:</th>
    <td>[wcj_order_date]</td>
    </tr>
    <tr>
    <th>Betaalmethode:</th>
    <td>[wcj_order_payment_method]</td>
    </tr>
    <tr>
    <th>Verzendmethode:</th>
    <td>[wcj_order_shipping_method]</td>
    </tr>
    </tbody>
    </table>
    </p>
    [wcj_order_items_table table_class="pdf_invoice_items_table"
    variation_as_metadata=No
    add_variation_info_to_item_name=No
    columns="product_sku|item_name|item_quantity|item_total_tax_incl|line_total_tax_incl"
    columns_titles="Artikelnr.|Omschrijving|Aantal|Prijs p.st.|Totaal"
    columns_styles="width:18%;|width:47%;|width:9%;text-align:center;|width:13%;text-align:right;|width:13%;text-align:right;"]
    <table class=”pdf_invoice_totals_table”>
    <tbody>
    <tr><th>Korting/verrekening</th><td>[wcj_order_total_fees]</td></tr>
    <tr><th>Verzendkosten</th><td>[wcj_order_shipping_price]</td></tr>
    <tr>
    <th>Totaal incl. btw</th>
    <td>[wcj_order_total]</td>
    <tr><hr>
    <th>Totaal btw (21%)</th>
    <td>[wcj_order_total_tax hide_if_zero="no"]</td>
    <tr>
    <th>Totaal excl. btw</th>
    <td>[wcj_order_total_excl_tax]</td>
    </tr>
    </tbody>
    </table>
    </p>

    How do I get the discount amount WITH tax on the invoice?

    #45379
    David G
    Participant

    Hi @ilonafurnexx-nl

    Thanks for reaching out to us.

    Yes, you can achieve this by using [wcj_order_total_discount]. This shortcode is useful when you are giving big discounts to your buyers.

    For more details, you can check our documentation here.

    Category – Orders

    #45380
    M.W
    Participant

    [wcj_order_total_discount] results in 0,00… see: https://ibb.co/vVdzgGK

    <p><h1>Factuur</h1>
    <table class=”pdf_invoice_seller_buyer_table”>
    <tbody>
    <tr>
    <th>Aan:</th>
    <th>Van:</th>
    </tr>
    <tr>
    <td>[wcj_order_billing_address]</td>
    <td>*******************</td>
    </tr>
    </tbody>
    </table>
    <table class=”pdf_invoice_heading_table”>
    <tbody>
    <tr>
    <th>
    Factuurnummer:</th>
    <td>[wcj_invoice_number]</td>
    </tr>
    <tr>
    <th>Factuurdatum:</th>
    <td>[wcj_invoice_date]</td>
    </tr>
    <tr>
    <th>Bestelnummer:</th>
    <td>[wcj_order_number]</td>
    </tr>
    <tr>
    <th>Besteldatum:</th>
    <td>[wcj_order_date]</td>
    </tr>
    <tr>
    <th>Betaalmethode:</th>
    <td>[wcj_order_payment_method]</td>
    </tr>
    <tr>
    <th>Verzendmethode:</th>
    <td>[wcj_order_shipping_method]</td>
    </tr>
    </tbody>
    </table>
    </p>
    [wcj_order_items_table table_class="pdf_invoice_items_table"
    variation_as_metadata=No
    add_variation_info_to_item_name=No
    columns="product_sku|item_name|item_quantity|item_total_tax_incl|line_total_tax_incl"
    columns_titles="Artikelnr.|Omschrijving|Aantal|Prijs p.st.|Totaal"
    columns_styles="width:18%;|width:47%;|width:9%;text-align:center;|width:13%;text-align:right;|width:13%;text-align:right;"]
    <table class=”pdf_invoice_totals_table”>
    <tbody>
    <tr><th>Korting/verrekening</th><td>[wcj_order_total_discount]</td></tr>
    <tr><th>Verzendkosten</th><td>[wcj_order_shipping_price]</td></tr>
    <tr>
    <th>Totaal incl. btw</th>
    <td>[wcj_order_total]</td>
    <tr><hr>
    <th>Totaal btw (21%)</th>
    <td>[wcj_order_total_tax hide_if_zero="no"]</td>
    <tr>
    <th>Totaal excl. btw</th>
    <td>[wcj_order_total_excl_tax]</td>
    </tr>
    </tbody>
    </table>
    </p>

    #45421
    M.W
    Participant

    Hello?

    Can you help me please?

    #45791
    M.W
    Participant

    Hello?

    Why does nobody answer anymore?

    #45826
    M.W
    Participant

    Solved it myself.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.