{% extends 'gestion/_base.html.twig' %} {% set active = 'bons-cadeaux' %} {% block title %}Bons cadeaux{% endblock %} {% block stylesheets %} {# gcc-toggle de la modale crédit (classes gcc- scopées, sans effet sur le chrome admin). #} {% endblock %} {% block content %}
Un client présente son code ? Recherchez-le, vérifiez la validité, débitez le crédit.
Aucun bon {{ q ? 'pour cette recherche' : 'dans cet onglet' }}.
| Code | Nature | Montant | Acheteur | Bénéficiaire | Validité | Statut | |
|---|---|---|---|---|---|---|---|
| {# Code masqué : clic = révéler, re-clic = copier, re-clic = masquer. #} |
{{ bon.type.value == 'activite' ? 'Atelier' ~ (bon.atelier ? ' — ' ~ bon.atelier.titre) : 'Montant' }}{{ bon.envoiPapier ? ' · papier' }}
{% if bon.tag %}
{{ bon.tag }} {% endif %}
|
{% if bon.solde != bon.montant %}
{{ bon.solde|number_format(2, ',', ' ') }} €
{{ bon.montant|number_format(2, ',', ' ') }} €
{% else %}
{{ bon.montant|number_format(2, ',', ' ') }} €
{% endif %}
|
{% if bon.client %}
{{ bon.client.prenom }} {{ bon.client.nom }}
{{ bon.client.email }}
{% elseif bon.modeReglement %}
Vente boutique
{{ bon.modeReglement.label }}
{% else %}—{% endif %}
|
{{ bon.pourNom ?: '—' }}
{% if bon.pourEmail %}
{{ bon.pourEmail }} {% endif %}
{% if bon.offertPar %}Offert par {{ bon.offertPar }} {% endif %}
{% if bon.envoiPapier and bon.adresseLivraison %}
✉ {{ bon.adresseLivraison.libAdr }}, {{ bon.adresseLivraison.cp }} {{ bon.adresseLivraison.ville }}
{% endif %}
|
{{ bon.expiresAt ? bon.expiresAt|date('d/m/Y') : '—' }} | {% set smap = {'actif': 'green', 'attente': 'ember', 'utilise': 'neutral', 'annule': 'dark'} %} {{ expire ? 'Expiré' : bon.statut.label }} |
{% if bon.noteInterne %}
{{ bon.noteInterne }}
{% endif %}
|