Home › Forums › Booster Plus Customer Forum › Discount amount WITH tax on the invoice?
- This topic has 5 replies, 2 voices, and was last updated 10 months, 3 weeks ago by M.W.
-
AuthorPosts
-
May 2, 2023 at 12:43 pm #45375M.WParticipant
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/pPQvTVDThe 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?
May 2, 2023 at 2:16 pm #45379David GParticipantThanks 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.
May 2, 2023 at 2:24 pm #45380M.WParticipant[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>May 8, 2023 at 7:18 am #45421M.WParticipantHello?
Can you help me please?
June 6, 2023 at 12:25 pm #45791M.WParticipantHello?
Why does nobody answer anymore?
June 8, 2023 at 8:16 am #45826M.WParticipantSolved it myself.
-
AuthorPosts
- You must be logged in to reply to this topic.