{# Ligne produit pour la vue table #} {% set stockStatus = product.getStockStatus() %} {% set stockColors = { 'ok': 'green', 'low': 'orange', 'critical': 'red', 'out': 'gray', 'service': 'purple' } %}
{{ product.name }} {% if product.isFeatured %}{% endif %} {% if product.barcode %}

{{ product.barcode }}

{% endif %}
{{ product.sku }} {% if product.category %} {{ product.category.name }} {% else %} {% endif %} {{ product.price|number_format(0, ',', ' ') }} {% if product.isService %}Service{% else %}{{ product.currentStock }}{% endif %} {% if product.isActive %} Actif {% else %} Inactif {% endif %} {% include 'components/pos/_confirm_modal.html.twig' with { modal_id: 'dup-prd-' ~ product.id, title: 'Dupliquer le produit', message: 'Une copie de « ' ~ product.name ~ ' » sera creee avec un nouveau SKU.', action_url: path('manager_pos_products_duplicate', {id: product.id}), csrf_token_name: 'duplicate_product_' ~ product.id, confirm_label: 'Dupliquer', confirm_color: 'purple', } %} {% include 'components/pos/_confirm_modal.html.twig' with { modal_id: 'del-prd-' ~ product.id, title: 'Supprimer le produit', message: 'Supprimer « ' ~ product.name ~ ' » ?', action_url: path('manager_pos_products_delete', {id: product.id}), csrf_token_name: 'delete_product_' ~ product.id, } %}