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.

86 lines
3.1 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <templates id="template" xml:space="preserve">
  3. <t t-name="TareScreenWidget">
  4. <div class='tare-screen screen'>
  5. <div class='screen-content'>
  6. <div class='top-content'>
  7. <span class='button back'>
  8. <i class='fa fa-angle-double-left'></i>
  9. Back
  10. </span>
  11. <h1>Print a tare label</h1>
  12. </div>
  13. <div class="centered-content">
  14. <div class="pos-tare-label-container"></div>
  15. <div class="pos-directions-for-user">
  16. Set the pot on the scale and check the weight above
  17. </div>
  18. <div class='print-label'>
  19. Print
  20. <i class='fa fa-angle-double-right'></i>
  21. </div>
  22. </div>
  23. </div>
  24. </div>
  25. </t>
  26. <t t-name="PosTareLabel">
  27. <div class="pos-center-align">
  28. <div class="pos-tare-paper">
  29. <div class="pos-tare-label">
  30. <img t-att-src="'/report/barcode/EAN13/' + widget.get_barcode_data()" />
  31. <span class="caption">tare = <t t-esc="widget.get_weight()" />kg</span>
  32. </div>
  33. </div>
  34. </div>
  35. </t>
  36. <t t-name="TareScreenButton">
  37. <t t-if="widget.pos.config.iface_tare_label">
  38. <span class="control-button">
  39. <i class="fa fa-print"></i>
  40. Print a tare label
  41. </span>
  42. </t>
  43. </t>
  44. <t t-name="Orderline">
  45. <li t-attf-class="orderline #{ line.selected ? 'selected' : '' }">
  46. <span class="product-name">
  47. <t t-esc="line.get_product().display_name"/>
  48. </span>
  49. <span class="price">
  50. <t t-esc="widget.format_currency(line.get_display_price())"/>
  51. </span>
  52. <ul class="info-list">
  53. <t t-if="line.get_quantity_str() !== '1' || line.selected ">
  54. <li class="info">
  55. <em>
  56. <t t-esc="line.get_quantity_str()" />
  57. </em>
  58. <t t-esc="line.get_unit().name" />
  59. at
  60. <t t-esc="widget.format_currency(line.get_unit_display_price(),'Product Price')" />
  61. /
  62. <t t-esc="line.get_unit().name" />
  63. </li>
  64. </t>
  65. <t t-if="line.get_discount_str() !== '0'">
  66. <li class="info">
  67. With a
  68. <em>
  69. <t t-esc="line.get_discount_str()" />%
  70. </em>
  71. discount
  72. </li>
  73. </t>
  74. <t t-if="line.get_tare_str() !== '0'">
  75. <li class="info">
  76. tare = <t t-esc="line.get_tare_str_with_unit()" />
  77. </li>
  78. </t>
  79. </ul>
  80. </li>
  81. </t>
  82. </templates>