is there a way to show amount paid in a row and ap...
# ask-stanley-ai
n
is there a way to show amount paid in a row and applied credit in another row in the invoice pdf ?
c
AI 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:
Copy code
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:
Copy code
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:
Copy code
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">&nbsp;</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. ******
Slack 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
Please provide your feedback on this answer.