Milcho Dimkov
08/27/2024, 9:05 AMCeligo AI
08/27/2024, 9:05 AMAI generated answer (using internal Slack threads):To create an advanced PDF template for a sales invoice that also has a VAT analysis box at the bottom, you can follow these steps: 1. Navigate to
Customization > Forms > Advanced PDF/HTML Templates.
2. Click on New Template.
3. Select Transaction as the record type.
4. In the Template Editor, you can design your template. You can use the Source Code tab to directly edit the HTML and FreeMarker code.
To add a VAT analysis box, you can use a table at the bottom of your template. Here's a simple example:
html
<table>
<thead>
<tr>
<th>VAT Rate</th>
<th>Net Amount</th>
<th>VAT Amount</th>
<th>Gross Amount</th>
</tr>
</thead>
<tbody>
<#list record.item as item>
<#if item.taxrate?has_content>
<tr>
<td>${item.taxrate}</td>
<td>${item.amount}</td>
<td>${item.taxamount}</td>
<td>${item.grossamt}</td>
</tr>
</#if>
</#list>
</tbody>
</table>
This will create a table that lists the VAT rate, net amount, VAT amount, and gross amount for each item in the invoice.
5. Once you're done designing your template, click Save.
Remember, you can use the Preview button to see how your template will look with actual data.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
08/27/2024, 9:05 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.83597517
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.830180228
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.829107523
Celigo AI
08/27/2024, 9:05 AM