templates/tpv/ticketLineTable.html.twig line 1

Open in your IDE?
  1. <tr id="linia_{{prod.id}}">
  2.     <td style="width:100px">{% if prod.image!="" and prod.image != null %}<img src="{{ asset('assets/images/products/'~prod.image) }}" class="product-img-2"/>{% else %}<img src="{{ asset('assets/images/logos/logo-nubes-horitzontal.png') }}" class="product-img-2"/>{% endif %}</td>
  3.     <td>{{ prod.sku }}</td>
  4.     <td>{{ prod.name }}</td>
  5.     <td><input type="number" name="qty" id="qty_{{prod.id}}" class="input_table" value="1"/></td>
  6.     <td><span id="showed_price_{{prod.id}}">{{ (prod.price / ((100 + prod.iva)/100)) | number_format(2) }}</span><input type="hidden" name="price" id="price_{{prod.id}}" class="input_table" value="{{ (prod.price / ((100 + prod.iva)/100)) | number_format(2) }}"/>
  7.     <input type="hidden" value="{{ prod.price }}" id="real_price_{{prod.id}}"/>
  8.     </td>
  9.     <td>{{ prod.iva }}<input type="hidden" id="iva_{{prod.id}}" value="{{ prod.iva }}"/></td>
  10.     <td><input type="number" name="discount" id="desc_{{prod.id}}" class="input_table" value="0"/></td>
  11.     <td id="subtotal_{{prod.id}}"></td>
  12.     <td id="total_{{prod.id}}"></td>
  13.     <td><a href="javascript:void(0)" data-id="{{ prod.id }}" class="removeProd" onclick="removeProd({{prod.id}})"><i class="bx bx-trash"></i></a></td>
  14.     <input type="hidden" class="subtotals" id="subtotal_linia_{{prod.id}}" value=""/>
  15.     <input type="hidden" class="totals" id="total_linia_{{prod.id}}" value=""/>
  16. </tr>