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.

91 lines
2.4 KiB

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>::_("Attendance sheet")::</title>
  6. <link href="/css/print.css" rel="stylesheet"/>
  7. </head>
  8. <body>
  9. <h2>
  10. ::contract._amap.name:: -
  11. ::__("Distribution of the ::date::, from ::from:: to ::to::",{date:dDate(distrib.date),from:hHour(distrib.date),to:hHour(distrib.end)})::
  12. </h2>
  13. <h2>
  14. ::distrib._contract.name:: - ::distrib._contract._vendor.name::
  15. </h2>
  16. <p>
  17. <span class="glyphicon glyphicon-map-marker"></span><b>::_("Place"):: : </b>
  18. ::distrib._place.toString()::, ::distrib._place.getAddress()::
  19. </p>
  20. <p>
  21. ::set c = contract._contact::
  22. ::set v = contract._vendor::
  23. <b>::_("Contact in charge of the contract") :</b> ::c.firstName:: ::c.lastName::, ::c.email::, ::c.phone::
  24. </p>
  25. <p>
  26. <b>::_("Farmer"):: : </b>
  27. ::v.name:: ,
  28. ::if v.email!=null :: ::v.email:: ::end::,
  29. ::if v.phone!=null :: ::v.phone:: ::end::
  30. </p>
  31. <p>
  32. <b>::_("Members on duty"):: : </b>
  33. ::if distrib._distributor1!=null:: ::distrib._distributor1.getName()::, ::end::
  34. ::if distrib._distributor2!=null:: ::distrib._distributor2.getName()::, ::end::
  35. ::if distrib._distributor3!=null:: ::distrib._distributor3.getName()::, ::end::
  36. ::if distrib._distributor4!=null:: ::distrib._distributor4.getName():: ::end::
  37. </p>
  38. <table class="table table-bordered table-hover" style="width:100%;">
  39. <tr>
  40. <th></th>
  41. ::foreach p products::
  42. <th>
  43. ::p.name::<br/>
  44. ::p.ref::
  45. </th>
  46. ::end::
  47. <th>TOTAL</th>
  48. </tr>
  49. ::foreach user users::
  50. <tr>
  51. <th>
  52. ::set basket = getBasket(user.id,distrib._place.id,distrib.date)::
  53. <span ::cond basket!=null::>N°::basket.num:: - </span>
  54. ::user.getCoupleName()::
  55. </th>
  56. ::foreach p products::
  57. <td>
  58. ::set o = orders.get(user.id).get(p.id)::
  59. ::if(o!=null)::
  60. ::raw o.smartQt::
  61. ::end::
  62. </td>
  63. ::end::
  64. <th>::formatNum(totalByUser(user.id)):: ::currency()::</th>
  65. </tr>
  66. ::end::
  67. <tr>
  68. <th>TOTAL</th>
  69. ::foreach p products::
  70. <th>
  71. ::set q = totalByProduct(p.id)::
  72. ::if(p.qt!=null && (p.hasFloatQt || p.variablePrice) )::
  73. ::q * p.qt:: ::unit(p._unitType,false)::
  74. ::else::
  75. ::q::
  76. ::end::
  77. </th>
  78. ::end::
  79. </tr>
  80. </table>
  81. <p>::raw nl2br(distrib._contract._amap.txtDistrib)::</p>
  82. <p class="hidden"><i>::_("Push on \"Control + P\" to print this page.")::</i></p>
  83. </body>
  84. </html>