Hi experts, have anyone worked with invoice group ...
# advancedpdf
s
Hi experts, have anyone worked with invoice group (detail) PDF template before? I am trying to customize it to not break the tax group down to different tax code lines, would like to know if there is way to do it. Any tips or sample FreeMarker logic would be appreciated. Thanks!
j
Can we assume only tax line have a "%"?
Copy code
<#assign tax_total = 0 />

<#list your list >
   <#if grouped_detail.item?contains("%") >
       <#assign tax_total += grouped_detail.amount />
       <#continue />
    </#if>
The
<#continue />
skips the rest of the code in the loop and starts with a new record. You can print tax_total in your summary. Use https://freemarker.apache.org/docs/index.html for freemarker references.
m
The last time I was updating Invoice Group PDFs it was very limited in what you could pull in - resulted in needing a full Suitelet just to pull in the Rev Start and End Dates from the Invoice lines
j
@Marissa Nolan Me too.