I’m trying to make it so the markup item will not ...
# advancedpdf
s
I’m trying to make it so the markup item will not show in the item table. I made the item class tariff, is this the right approach?
@scottvonduhn this is what I’m currently working on
s
Ah, that first if statement, for item_index==0, is basically the way that the table headers are added, so it runs once, for the first line only, and should be above place where the actual lines themselves are printed. You'll probably want to put your
if item.class!="tariff"
below that if statement, around the next set of
<tr>  ... </tr>
tags
something like this: <#if item_index == 0> <thead> <tr> <th align="center" colspan="3" style="padding: 10px 6px;">${item.quantity@label}</th> <th colspan="16" style="padding: 10px 6px;">${item.item@label}</th> <th align="right" colspan="4" style="padding: 10px 6px;">${item.custcol_line@label}</th> </tr> </thead> </#if> <#if item.class != "tariff"> <tr> <td align="center" colspan="3">${item.quantity}</td> <td colspan="16">${item.item}</td> <td align="right" colspan="4">${item.custcol_line}</td> </tr> </#if>
s
Thanks @scottvonduhn I got it to work with ?contains tariff
s
great
s
Class was acting funny for some reason
s
it may have some extra whitespace, and not match exactly. We have a few Item names with a trailing space or tab character that have caused similar problems for me.