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.

89 lines
2.3 KiB

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>Bon de commande</title>
  6. <link href="/css/print.css" rel="stylesheet"/>
  7. </head>
  8. <body>
  9. <table class="table table-bordered table-hover" style="width:100%;">
  10. <tr>
  11. <td>
  12. ::if group._image!=null::
  13. <img src="::file(group._image)::" style="margin:auto;height:150px;" class="thumbnail" />
  14. ::end::
  15. </td>
  16. <td>
  17. <h1>::group.name::</h1>
  18. ::if distribution!=null::
  19. <h2>Livraison du <b>::hDate(distribution.date)::</b></h2>
  20. ::end::
  21. <h2>::c.name:: - ::c._vendor.name::</h2>
  22. </td>
  23. <td>
  24. ::set cv = c._vendor::
  25. ::if cv._image!=null::
  26. <img src="::file(cv._image)::" class="thumbnail" style="margin:auto;height:150px;" />
  27. ::end::
  28. </td>
  29. </tr>
  30. </table>
  31. <p>
  32. ::set cc = c._contact::
  33. ::set cv = c._vendor::
  34. <b>Responsable contrat : </b> ::cc.firstName:: ::cc.lastName::, ::cc.email::,
  35. ::if cc.phone!=null :: ::cc.phone:: ::end::
  36. </p>
  37. <p>
  38. <b>Producteur : </b>::cv.name:: ,
  39. ::if cv.email!=null :: ::cv.email:: ::end::,
  40. ::if cv.phone!=null :: ::cv.phone:: ::end::
  41. </p>
  42. <p>
  43. <h3>::_("Summary table per product")::</h3>
  44. ::_("Be careful, if the price of the product was modified during the sale, every order of a member is taken into account with the price as it was at the time of the creation of the order")::
  45. </p>
  46. ::set total = 0::
  47. <table class="table table-bordered table-hover" style="width:100%;">
  48. <tr style="border-top: 2px solid #AAA;">
  49. <th>::_("Weight/Vol.")::</th>
  50. <th>::_("Quantities")::</th>
  51. <th>::_("Product")::</th>
  52. <th>::_("Reference")::</th>
  53. <th>::_("Unit price incl. VAT")::</th>
  54. <th>::_("Total")::</th>
  55. </tr>
  56. ::foreach m orders::
  57. <tr style="border-top: 2px solid #AAA;">
  58. <td>
  59. ::raw m.weightOrVolume::
  60. </td>
  61. <td>
  62. ::formatNum(m.quantity)::
  63. </td>
  64. <td>
  65. ::m.pname::
  66. </td>
  67. <td>
  68. $$nullSafe(::m.ref::)
  69. </td>
  70. <td>
  71. ::formatNum(m.priceTTC)::&nbsp;::currency()::
  72. </td>
  73. <td>
  74. ::formatNum(m.totalTTC)::&nbsp;::currency()::
  75. ::set total = total + m.totalTTC::
  76. </td>
  77. </tr>
  78. ::end::
  79. <tr style="background:#DDD;">
  80. <th colspan="5">::_("Total")::</th>
  81. <th>::formatNum(total)::&nbsp;::currency()::</th>
  82. </tr>
  83. </table>
  84. <p class="hidden"><i>::_("Push \"Control + P\" to print this page.")::</i></p>
  85. </body>
  86. </html>