Dear Community,
In Sales Invoice discount added based on Apply Additional Discount On =“Grand Total” or “Net Total”
I create custom table the total price , and vat should calculate on discount also,
it should work based on Apply Additional Discount On =“Grand Total” or “Net Total”
how to add here
<tr>
<td class="left" colspan="4">Discount:</td>
<td></td>
<td></td>
<td></td>
<td class="center">{{ "{:,.2f}".format(doc.discount_amount) }}</td>
</tr>
for eg:
i need yellow highlighted one. i tried
it works on “Grand Total” not in “Net Total”
<tr>
<td class="left" colspan="4">Discount:</td>
<td></td>
<td class="right">{{ "{:,.2f}".format(doc.total - doc.net_total) }}</td>
<td class="right">{{ "{:,.2f}".format((doc.total - doc.net_total) * 0.15) }}
<td class="center">{{ "{:,.2f}".format(doc.discount_amount) }}</td>
</tr>
kindly check my code and solve my query.
Thanks in Advance