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.

60 lines
1.4 KiB

  1. ::use 'design.mtt'::
  2. <div class="col-md-12">
  3. <div class="article">
  4. <h2>::_("Global view of orders - delivery of"):: ::hDate(date)::</h2>
  5. <hr/>
  6. ::foreach o orders::
  7. ::set total = 0::
  8. <table class="table table-bordered table-hover table-striped" style="width:100%;">
  9. <tr>
  10. <th colspan="5">
  11. <!--<div class="pull-right">$$export(::"/contractAdmin/ordersByProduct/"+o.contract.id+"?csv=1&d="+o.distrib.id::)</div>-->
  12. <h4>::o.contract.name:: - ::o.contract._vendor.name::</h4>
  13. </th>
  14. </tr>
  15. <tr>
  16. <th>::_("Quantities")::</th>
  17. <th>::_("Product")::</th>
  18. <th>::_("Reference")::</th>
  19. <th>::_("Unit price incl. VAT")::</th>
  20. <th>::_("Total")::</th>
  21. </tr>
  22. ::foreach m o.orders::
  23. <tr>
  24. <td class="col-md-1">
  25. ::m.quantity::
  26. </td>
  27. <td class="col-md-5">
  28. ::m.pname::
  29. </td>
  30. <td class="col-md-3">
  31. $$nullSafe(::m.ref::)
  32. </td>
  33. <td class="col-md-2">
  34. ::formatNum(m.priceTTC)::&nbsp;::currency()::
  35. </td>
  36. <td class="col-md-2">
  37. ::formatNum(m.totalTTC)::&nbsp;::currency()::
  38. ::set total = total + m.totalTTC::
  39. </td>
  40. </tr>
  41. ::end::
  42. <tr style="background:#DDD;">
  43. <th colspan="4">Total</th>
  44. <th>::formatNum(total)::&nbsp;::currency()::</th>
  45. </tr>
  46. </table>
  47. ::end::
  48. </div>
  49. </div>
  50. ::end::