pos.xml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <templates id="template" xml:space="preserve">
  3. <t t-name="KitchenTicketScreenWidget">
  4. <div class="receipt-screen screen touch-scrollable" >
  5. <div class="pos-step-container">
  6. <div class="pos-receipt-container">
  7. </div>
  8. </div>
  9. </div>
  10. </t>
  11. <t t-name="KitchenTicketButton">
  12. <span class="control-button order-printbill">
  13. <i class="fa fa-print"></i>
  14. Ticket
  15. </span>
  16. </t>
  17. <t t-name="KitchenTicket">
  18. <div class="pos-sale-ticket" style='font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;font-size: 15px;'>
  19. <div class="pos-center-align"><t t-esc="new Date().toString(Date.CultureInfo.formatPatterns.shortDate + ' ' +
  20. Date.CultureInfo.formatPatterns.longTime)"/>
  21. <br/>
  22. <t t-esc="order.get('name')"/>
  23. </div>
  24. <br/>
  25. <t t-if="widget.pos.company.name">
  26. <strong><center><t t-esc="widget.pos.company.name"/></center></strong> <br/>
  27. </t>
  28. <t t-if="widget.pos.company.name">
  29. <strong><center><t t-esc="widget.pos.company.phone"/></center></strong> <br/>
  30. </t>
  31. User: <t t-esc="widget.pos.cashier ? widget.pos.cashier.name : widget.pos.user.name"/>
  32. <t t-if="order.attributes.client">
  33. <br/>
  34. Cliente: <t t-esc="order.attributes.client.name ? order.attributes.client.name : ''"/><br />
  35. R.U.C. Nª: <t t-esc="order.attributes.client.ruc ? order.attributes.client.ruc : ''"/><br />
  36. Tel: <t t-esc="order.attributes.client.phone ? order.attributes.client.phone : ''"/><br/>
  37. <t t-if="order.attributes.client.address">
  38. Dir.: <t t-esc="order.attributes.client.address"/><br/>
  39. </t>
  40. <t t-if="order.attributes.table">
  41. <t t-if="order.attributes.table.type =='table'">
  42. Mesa: <t t-esc="order.attributes.table.name"/>
  43. </t>
  44. <t t-if="order.attributes.table.type =='delivery'">
  45. Delivery: <t t-esc="order.attributes.table.name"/>
  46. </t>
  47. </t>
  48. </t>
  49. <br />
  50. <div class="pos-center-align" style="font-size:25px;font-weight:bold">Ticket</div>
  51. <p>--------------------------------------------</p>
  52. <table style="font-size:16px;">
  53. <tbody>
  54. <colgroup>
  55. <col width='13%'/>
  56. <col width='38%'/>
  57. <col width='25%'/>
  58. <col width='25%'/>
  59. </colgroup>
  60. <t t-foreach="filterLines" t-as="item">
  61. <tr>
  62. <td>
  63. <t t-esc="item.quantity"/>
  64. </td>
  65. <td>
  66. <t t-esc="item.name"/>
  67. </td>
  68. <td>
  69. <t t-esc="item.price"/>
  70. </td>
  71. <td class="pos-right-align">
  72. <t t-esc="(item.price*item.quantity)"/>
  73. </td>
  74. </tr>
  75. </t>
  76. </tbody>
  77. </table>
  78. <p>--------------------------------------------</p>
  79. <table>
  80. <tr class="emph">
  81. <br />
  82. <td>Total:</td>
  83. <td class="pos-right-align" style='font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;font-size: 20px;'>
  84. <t t-esc="widget.format_currency(order.getTotalTaxIncluded())"/>
  85. </td>
  86. </tr>
  87. </table>
  88. <br/>
  89. <t t-if="kitchenlines.length > 0">
  90. <div class="pos-sale-ticket" style='font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;font-size: 15px;'>
  91. <!-- <p style="page-break-after: always;"></p> -->
  92. <!-- <div style='text-align:center'>
  93. <h3>Cocina</h3>
  94. </div> -->
  95. <table>
  96. <tbody>
  97. <colgroup>
  98. <col width='80%'/>
  99. <col width='20%'/>
  100. </colgroup>
  101. <t t-foreach="kitchenlines" t-as="kitchenline">
  102. <tr>
  103. <td>
  104. <t t-esc="kitchenline.product_name"/>
  105. <t t-foreach="kitchenline.product_pack_lines" t-as="item">
  106. <ul>
  107. <li><t t-esc="item.product_name"/></li>
  108. </ul>
  109. </t>
  110. </td>
  111. <!-- <td>
  112. <t t-esc="kitchenline.product_qty"/>
  113. </td> -->
  114. </tr>
  115. <tr>
  116. <td>-----------------------------------</td>
  117. <td></td>
  118. </tr>
  119. </t>
  120. </tbody>
  121. </table>
  122. </div>
  123. </t>
  124. <br/>
  125. <t t-if="widget.pos.config.receipt_footer">
  126. <br />
  127. <div style='text-align:center'>
  128. <t t-esc="widget.pos.config.receipt_footer" />
  129. </div>
  130. </t>
  131. </div>
  132. </t>
  133. </templates>