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.

73 lines
1.5 KiB

  1. ::use 'mail/design.mtt'::
  2. <h3>Récapitulatif de votre commande "<b>::contract.name::</b>"</h3>
  3. <table class="table table-striped">
  4. <tr>
  5. <td>
  6. Date de livraison
  7. </td>
  8. <td>
  9. ::dDate(distribution.date):: de ::hHour(distribution.date):: à ::hHour(distribution.end)::
  10. </td>
  11. </tr>
  12. <tr>
  13. <td>Adresse</td>
  14. <td>
  15. ::distribution._place.getFullAddress()::
  16. </td>
  17. </tr>
  18. </table>
  19. <br/>
  20. <br/>
  21. <!-- produits -->
  22. <table class="table table-bordered table-hover" >
  23. <tr>
  24. <th>Qté</th>
  25. <th>Produit</th>
  26. <th>P.U</th>
  27. <th>Sous-total</th>
  28. <th>Frais</th>
  29. <th>Total</th>
  30. </tr>
  31. ::set total = 0::
  32. ::foreach m orders::
  33. <tr>
  34. <td>
  35. ::raw m.smartQt:
  36. </td>
  37. <td>
  38. ::m.productName::
  39. </td>
  40. <td>
  41. ::formatNum(m.productPrice)::&nbsp;::currency()::
  42. </td>
  43. <td>
  44. ::formatNum(m.subTotal)::&nbsp;::currency()::
  45. </td>
  46. <td>
  47. <!-- frais -->
  48. ::if m.percentageValue!=null::
  49. <a href="#" data-toggle="tooltip" data-placement="top" title="::m.percentageName:: : ::m.percentageValue:: %">
  50. ::formatNum(m.fees)::&nbsp;::currency()::
  51. </a>
  52. ::end::
  53. </td>
  54. <td>
  55. <!-- total -->
  56. ::formatNum(m.total)::&nbsp;::currency()::
  57. ::set total = total + m.total::
  58. </td>
  59. </tr>
  60. ::end::
  61. <tr style="background:#DDD;">
  62. <th colspan="4"></th>
  63. <th class="text-right">Total :</th>
  64. <th>::formatNum(total)::&nbsp;::currency()::</th>
  65. </tr>
  66. </table>
  67. ::end::