diff --git a/src/schedule-2.0/templates/Offer/getorders.html.twig b/src/schedule-2.0/templates/Offer/getorders.html.twig new file mode 100644 index 0000000..9a9529d --- /dev/null +++ b/src/schedule-2.0/templates/Offer/getorders.html.twig @@ -0,0 +1,74 @@ +{% extends "base.html.twig" %} + +{% block localstyle %} + td { + padding:5px !important; + } + {% if fgprint is defined and fgprint %} + table { font-size:10px;} + th,td { + border: 1px solid #37474F; + } + thead { + display: table-header-group; + } + tr { page-break-inside: avoid; } + {%endif%} +{% endblock %} + +{% block body %} +

+ Nouvelles Commandes Dolibarr +

+ +

+
+
+ + + + + + + + + + + + + + + {% for order in orders %} + + + + + {% if order.type =="commande" %}{% endif %} + {% if order.type =="propal" %}{% endif %} + + + + + + + + {% endfor %} + +
Actionclientrefref_clientstatuttotal_httotal_tvatotal_ttc
+ + {{order.customer_name}}{{order.ref}}{{order.ref}}{{order.ref_client}}{{order.statut}}{{order.total_ht|number_format(2, '.', ' ')}}{{order.total_tva|number_format(2, '.', ' ')}}{{order.total_ttc|number_format(2, '.', ' ')}}
+
+
+ +{% endblock %} +{% block localjavascript %} + $(document).ready(function() { + $('#dataTables').DataTable({ + columnDefs: [ { "targets": "no-sort", "orderable": false }, { "targets": "no-string", "type" : "num" } ], + responsive: true, + iDisplayLength: 100, + order: [[ 2, "asc" ]] + }); + }); + +{% endblock %}