IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#57468 - 04/07/20 07:06 AM Hide line from dynamic table, based on price value
Grzegorz Offline
OL Newbie

Registered: 01/24/20
Posts: 4
Loc: Skåne
Hi, can some one help me with a code to remove a lines in dynamic table, where price is 0 (class="LineAmount")
Due to law regulations I cannot display such items in the table. I get quite many such free gifts, that shall be just hidden.
I did research, but so far I was not able to add this functionality
Here is my code:

<table id="invoiceLinesPL" class="table-grid" data-column-resize="" data-detail="invoiceLines" data-hide-when-empty=""
anchor="page_media_0" style="width: 100%; position: absolute; top: 0px; left: 0px;" title="invoiceLines" offset-x="45.349998474121094" offset-y="302.3666687011719">
<thead>
<tr>
<td id="LineNum" style="text-align: center; width: 5.35%;"><span style="font-size: 9pt;">Lp.</span></td>
<td class="Name" style="text-align: center; width: 43.52%;">Nazwa</td>
<td class="Qty" style="text-align: center; width: 6.48%;">
Ilość<br>
</td>
<td class=".headerInfo" style="text-align: center; width: 9.01%;">
<span style="font-size: 9pt;">Cena jedn. netto</span><br>
</td>
<td class="LineAmount" style="text-align: center; width: 9.01%;">
Wartość netto<br>
</td>
<td class="LineAmountTax" style="text-align: center; width: 8.03%;">
Stawka VAT<br>
</td>
<td class="LineDisc" style="text-align: center; width: 9.72%;">
Kwota VAT<br>
</td>
<td class="SalesPrice" style="text-align: center; width: 8.73%;">
Wartość brutto<br>
</td>
</tr>
</thead>
<tbody>
<tr data-repeat="">
<td class="data LineNum" style="text-align: center;"><span style="font-size: 9.5pt;">@L6@.</span></td>
<td class="data Name" style="text-align: left;"><span style="font-size: 9.5pt;">@N7@</span></td>
<td class="data Qty" style="text-align: center;"><span style="font-size: 9.5pt;">@Q9@</span></td>
<td class="DueDatePL" style="text-align: center;"><span style="font-size: 9.5pt;">@N8@</span></td>
<td class="data LineAmount" style="text-align: center;"><span style="font-size: 9.5pt;">@L3@</span></td>
<td class="data LineAmountTax" style="text-align: center;"><span style="font-size: 9.5pt;">@L4@</span></td>
<td class="data LineDisc" style="text-align: center;"><span style="font-size: 9.5pt;">@L5@</span></td>
<td id="Logo" class="Logo" style="text-align: center;"><span style="font-size: 9.5pt;">@S10@</span></td>
</tr>
<tr>
<td class="data LineNum">
<br>
</td>
<td class="data Name"><span style="font-size: 9.5pt;">RABAT</span></td>
<td class="data Qty" style="text-align: center;"><span style="font-size: 9.5pt;">1 szt.</span></td>
<td class="DueDatePL" style="text-align: center;"><span style="font-size: 9.5pt;">@cal_VAT_Rabat@ </span></td>
<td class="data LineAmount" style="text-align: center;"><span style="font-size: 9.5pt;">@cal_VAT_Rabat@ </span></td>
<td class="data LineAmountTax" style="text-align: center;"><span style="font-size: 9.5pt;">23%</span></td>
<td class="data LineDisc" style="text-align: center;"><span style="font-size: 9.5pt;">@cal_VAT_Rabat2@</span></td>
<td class="Logo" style="text-align: center;"><span style="font-size: 9.5pt;">@cal_Total_Brutto@</span></td>
</tr>
<tr>
<td class="data LineNum" style="border-style: none; border-bottom-width: 0px; border-right-width: 0px;">
<br>
</td>
<td class="data Name" style="border-style: none; border-bottom-width: 0px; border-right-width: 0px;">
<br>
</td>
<td class="data Qty" style="text-align: center; border-style: none; border-bottom-width: 0px; border-right-width: 0px;">
<br>
</td>
<td class="DueDatePL" style="text-align: center; border-style: none; border-bottom-width: 0px; border-right-width: 0px;">
<span style="font-size: 9.5pt;">tt<br>
</span>
</td>
<td class="data LineAmount" style="text-align: center; border-style: none; border-bottom-width: 0px; border-right-width: 0px;">
<br>
</td>
<td class="data LineAmountTax" style="text-align: center; border-style: none; border-bottom-width: 0px; border-right-width: 0px;">
<br>
</td>
<td class="data LineDisc" style="text-align: center; border-style: none; border-bottom-width: 0px; border-right-width: 0px;">
<br>
</td>
<td class="Logo" style="text-align: center; border-style: none; border-bottom-width: 0px; border-right-width: 0px;">
<br>
</td>
</tr>
<tr>
<td class="data LineNum" style="border-style: none; border-bottom-width: 0px; border-right-width: 0px;">
<br>
</td>
<td class="data Name" style="border-style: none; border-bottom-width: 0px; border-right-width: 0px;">
<br>
</td>
<td class="data Qty" style="text-align: center; border-style: none; border-bottom-width: 0px; border-right-width: 0px;">
<br>
</td>
<td class="DueDatePL" style="text-align: center;"><span style="font-size: 9.5pt;">Razem</span></td>
<td class="data LineAmount" style="text-align: center;"><span style="font-size: 9.5pt;">@cal_Netto_Total@</span></td>
<td class="data LineAmountTax" style="text-align: center;"><span style="font-size: 9.5pt;">23%</span></td>
<td class="data LineDisc" style="text-align: center;"><span style="font-size: 9.5pt;">@calc_VAT_Total@</span></td>
<td class="Logo" style="text-align: center;"><span style="font-size: 9.5pt;">@InvoiceAmount@</span></td>
</tr>
</tbody>
</table>
<br>
<br>

Top
#57469 - 04/07/20 07:55 AM Re: Hide line from dynamic table, based on price value [Re: Grzegorz]
Jean-Cédric Offline
OL Expert

Registered: 10/03/16
Posts: 681
Loc: Québec, Canada
Dear Grzegorz,

You are in the wrong forum for Connect question. This is a forum for PlanetPress Suite and PrintShop mail Classic questions.
Please post your question here.
_________________________
♪♫♪♫
99 frigging bugs in my code
99 frigging bugs
Take one down
Code around
127 frigging bugs in my code
♪♫♪♫

Top
#57470 - 04/07/20 11:09 AM Re: Hide line from dynamic table, based on price value [Re: Grzegorz]
Grzegorz Offline
OL Newbie

Registered: 01/24/20
Posts: 4
Loc: Skåne
ok, I did that. Thanks!

Top