pos.xml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <templates>
  3. <t t-extend="PosTicket">
  4. <t t-jquery="div.pos-sale-ticket" t-operation="replace">
  5. <div class="pos-sale-ticket" style='font-family: "Courier New;font-size: 15px;'>
  6. <!-- <div id="company_logo">
  7. <img t-att-src="logo" style="width:100%;"/>
  8. </div> -->
  9. <center>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;POR SU POLLO</center><br/>
  10. <t t-esc="&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;widget.pos.company.phone || ''"/> <br/>
  11. <center>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;www.porsupollo.com.py</center><br/>
  12. <div class="pos-center-align"><t t-esc="new Date().toString(Date.CultureInfo.formatPatterns.shortDate + ' ' +
  13. Date.CultureInfo.formatPatterns.longTime)"/>
  14. <br/>
  15. <t t-esc="order.get('name')"/></div>
  16. <br/>
  17. <br />
  18. <t t-if="widget.pos.config.receipt_header">
  19. <div style='text-align:center;font-size: 20px;'>
  20. <t t-esc="widget.pos.config.receipt_header" />
  21. </div>
  22. <br />
  23. </t>
  24. Vendedor: <t t-esc="widget.pos.cashier ? widget.pos.cashier.name : widget.pos.user.name"/>
  25. <t t-if="order.attributes.client">
  26. Cliente: <t t-esc="order.attributes.client.name ? order.attributes.client.name : ''"/>
  27. </t>
  28. <br/>
  29. <br />
  30. <table class="table table-condensed" style="font-size: 12px;">
  31. <thead>
  32. <tr>
  33. <th class="text-right">Cant.</th>
  34. <th>&#160;&#160;Producto&#160;&#160;&#160;&#160;</th>
  35. <th class="text-right">&#160;&#160;Precio </th>
  36. <th class="text-right">&#160;&#160;Sub-total</th>
  37. </tr>
  38. </thead>
  39. <tbody>
  40. <colgroup>
  41. <col width='15%' style="font-size: 9px;"/>
  42. <col width='35%' style="font-size: 9px;"/>
  43. <col width='25%' style="font-size: 9px;"/>
  44. <col width='25%' style="font-size: 9px;"/>
  45. </colgroup>
  46. <t t-foreach="orderlines" t-as="orderline">
  47. <tr>
  48. <td>
  49. <t t-esc="&#160;&#160;orderline.quantity&#160;&#160;"/>
  50. </td>
  51. <td>
  52. <t t-esc="orderline.get_product().display_name&#160;&#160;"/>
  53. </td>
  54. <td>
  55. <t t-esc="widget.format_currency(orderline.price)"/>
  56. </td>
  57. <td class="pos-right-align">
  58. <t t-esc="widget.format_currency(orderline.get_display_price())"/>
  59. </td>
  60. </tr>
  61. <tr>
  62. <td></td>
  63. <td></td>
  64. </tr>
  65. </t>
  66. </tbody>
  67. </table>
  68. <table>
  69. <!-- <tr>
  70. <td>Subtotal:</td>
  71. <td class="pos-right-align">
  72. <t t-esc="widget.format_currency(order.getTotalTaxExcluded())"/>
  73. </td>
  74. </tr>
  75. <t t-foreach="order.getTaxDetails()" t-as="taxdetail">
  76. <tr>
  77. <td><t t-esc="taxdetail.name" /></td>
  78. <td class="pos-right-align">
  79. <t t-esc="widget.format_currency(taxdetail.amount)"/>
  80. </td>
  81. </tr>
  82. </t>
  83. <tr>
  84. <td>Descuento:</td>
  85. <td class="pos-right-align">
  86. <t t-esc="widget.format_currency(order.getDiscountTotal())"/>
  87. </td>
  88. </tr> -->
  89. <tr class="emph">
  90. <br />
  91. <td>Total:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</td>
  92. <td class="pos-right-align" style='font-family: "Courier New;font-size: 20px;'>
  93. <t t-esc="widget.format_currency(order.getTotalTaxIncluded())"/>
  94. </td>
  95. </tr>
  96. </table>
  97. <table>
  98. <tr t-foreach="paymentlines" t-as="line">
  99. <td>
  100. <t t-esc="line.name"/>
  101. </td>
  102. <td class="pos-right-align">
  103. <t t-esc="widget.format_currency(line.get_amount())"/>
  104. </td>
  105. </tr>
  106. </table>
  107. <br />
  108. <table>
  109. <tr><td>Vuelto:&#160;&#160;&#160;&#160;</td><td class="pos-right-align">
  110. <t t-esc="widget.format_currency(order.getChange())"/>
  111. </td></tr>
  112. <tr><td>&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Nota sin valor fiscal</td>
  113. </tr>
  114. </table>
  115. <br/>
  116. <t t-if="widget.pos.config.receipt_footer">
  117. <br />
  118. <div style='text-align:center'>
  119. <t t-esc="widget.pos.config.receipt_footer" />
  120. </div>
  121. </t>
  122. </div>
  123. </t>
  124. </t>
  125. </templates>