Nada Ahmed
01/08/2025, 8:26 PMCeligo AI
01/08/2025, 8:26 PMAI generated answer (using internal Slack threads):Based on the information from the Slack threads, it seems that you can show the amount paid and applied credit in separate rows in the invoice PDF by modifying the Advanced PDF/HTML template. For showing the amount paid, you can use the
line.payment
field in your template. Here is an example of how you can use it:
html
<td align="right" colspan="3">${line.payment}</td>
For showing the applied credits, you can use the credit.amount
field in your template. Here is an example of how you can use it:
html
<td align="right">(${credit.amount})</td>
Please note that you need to loop through the check.credit
list to get all the applied credits. Here is an example of how you can do it:
html
<#list check.credit as credit>
<tr>
<td align="center">${credit.creditdate}</td>
<td align="left">${credit.appliedto}</td>
<td align="left">${credit.refnum}</td>
<td align="right">(${credit.amount})</td>
<td align="right"> </td>
<td align="right">(${credit.amount})</td>
</tr>
</#list>
Please replace check
with the appropriate object that contains the credit information in your context.
******
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
01/08/2025, 8:27 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.850553632
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.846626043
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.839584172
Celigo AI
01/08/2025, 8:27 PM