You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.4 KiB

  1. ::use 'mail/design.mtt'::
  2. <h3>Récapitulatif de commande par produits</h3>
  3. <p>
  4. Les commandes du contrat <b>::contract.name::</b> dont vous êtes coordinateur ont fermé le <b>::hDate(distribution.orderEndDate)::</b>.
  5. </p>
  6. <table class="table table-striped">
  7. <tr>
  8. <td>
  9. Date de livraison
  10. </td>
  11. <td>
  12. ::dDate(distribution.date):: de ::hHour(distribution.date):: à ::hHour(distribution.end)::
  13. </td>
  14. </tr>
  15. <tr>
  16. <td>Adresse</td>
  17. <td>
  18. ::distribution._place.getFullAddress()::
  19. </td>
  20. </tr>
  21. </table>
  22. <br/>
  23. <br/>
  24. <!-- produits -->
  25. <table class="table table-bordered table-hover" >
  26. <tr>
  27. <th>Poids/Vol.</th>
  28. <th>Quantités</th>
  29. <th>Produit</th>
  30. <th>Référence</th>
  31. <th>Prix unitaire TTC</th>
  32. <th>Total</th>
  33. </tr>
  34. ::set total = 0::
  35. ::foreach m orders::
  36. <tr>
  37. <td>::raw m.weightOrVolume::</td>
  38. <td>
  39. ::raw m.quantity::
  40. </td>
  41. <td>
  42. ::m.pname::
  43. </td>
  44. <td class="ref">
  45. $$nullSafe(::m.ref::)
  46. </td>
  47. <td>
  48. ::formatNum(m.priceTTC)::&nbsp;::currency()::
  49. </td>
  50. <td>
  51. ::formatNum(m.totalTTC)::&nbsp;::currency()::
  52. ::set total = total + m.totalTTC::
  53. </td>
  54. </tr>
  55. ::end::
  56. <tr style="background:#DDD;">
  57. <th colspan="4"></th>
  58. <th class="text-right">Total :</th>
  59. <th>::formatNum(total)::&nbsp;::currency()::</th>
  60. </tr>
  61. </table>
  62. ::end::