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>