Ajout export commandes
This commit is contained in:
8
src/schedule-2.0/templates/Export/export_offers.csv.twig
Normal file
8
src/schedule-2.0/templates/Export/export_offers.csv.twig
Normal file
@@ -0,0 +1,8 @@
|
||||
{% block body %}
|
||||
Client;Projet;Proposition;Ref;Qt;PU;Total;
|
||||
{% for project in projects %}
|
||||
{% for offer in project.offers %}
|
||||
{{ project.customer }};{{project.name}};{{offer.name}};{{offer.ref}};{{offer.quantity}};{{offer.pu}};{{offer.total}}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endblock %}
|
@@ -33,4 +33,14 @@ EXPORTS DE DONNEES
|
||||
</div>
|
||||
</div>
|
||||
<p></p>
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<a class="btn btn-success" href={{ path('export_offers') }}>Export des commandes</a>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<p>Exporter la liste des commandes</p>
|
||||
<p>Filtres utiles : Nombres de mois, Projet, Service</p>
|
||||
</div>
|
||||
</div>
|
||||
<p></p>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user