pos.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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;&#160;&#160;&#160;(0973) 558806</center><br/>
  12. <center>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;www.porsupollo.com.py</center><br/>
  13. <center>----------------------------------------</center><br/>
  14. <div class="pos-center-align"><t t-esc="new Date().toString(Date.CultureInfo.formatPatterns.shortDate + ' ' +
  15. Date.CultureInfo.formatPatterns.longTime)"/>
  16. <br/>
  17. <t t-esc="order.get('name')"/></div>
  18. <br/>
  19. <br />
  20. <t t-if="widget.pos.config.receipt_header">
  21. <div style='text-align:center;font-size: 20px;'>
  22. <t t-esc="widget.pos.config.receipt_header" />
  23. </div>
  24. <br />
  25. </t>
  26. Vendedor: <t t-esc="widget.pos.cashier ? widget.pos.cashier.name : widget.pos.user.name"/>
  27. <t t-if="order.attributes.client">
  28. Cliente: <t t-esc="order.attributes.client.name ? order.attributes.client.name : ''"/>
  29. </t>
  30. <br/>
  31. <br />
  32. <center>----------------------------------------</center><br/>
  33. <table class="table table-condensed" style="font-size: 8px;">
  34. <thead>
  35. <tr>
  36. <th style="font-size:8px;font-family: Courier New;width:0.6cm;overflow: auto; text-align: center;">Cant&#160;</th>
  37. <th style="font-size:8px;font-family: Courier New;width:3.0cm;overflow: auto; text-align: left;"><b>Producto</b>&#160;&#160;&#160;&#160;</th>
  38. <th style="font-size:8px;font-family: Courier New;width:1.0cm;overflow: auto; text-align: center;"><b>Precio</b>&#160;&#160;</th>
  39. <th style="font-size:8px;font-family: Courier New;width:1.0cm;overflow: auto; text-align: center;"><b>SubTotal</b>&#160;</th>
  40. </tr>
  41. </thead>
  42. <tbody>
  43. <!-- <colgroup>
  44. <col width='15%' style="font-size: 9px;"/>
  45. <col width='35%' style="font-size: 9px;"/>
  46. <col width='25%' style="font-size: 9px;"/>
  47. <col width='25%' style="font-size: 9px;"/>
  48. </colgroup> -->
  49. <!-- <t t-foreach="orderlines" t-as="orderline">
  50. <tr>
  51. <td>
  52. <t t-esc="&#160;&#160;orderline.quantity&#160;&#160;"/>
  53. </td>
  54. <td>
  55. <t t-esc="orderline.get_product().display_name&#160;&#160;"/>
  56. </td>
  57. <td>
  58. <![CDATA[&nbsp;]]><t t-esc="orderline.price"/>
  59. </td>
  60. <td class="pos-right-align">
  61. <![CDATA[&nbsp;]]><t t-esc="(orderline.price*orderline.quantity)"/>
  62. </td>
  63. </tr>
  64. <tr>
  65. <td></td>
  66. <td></td>
  67. </tr>
  68. </t> -->
  69. <tr t-foreach="orderlines" t-as="l">
  70. <!-- CANTIDAD -->
  71. <th style="font-size:8px;font-family: Arial;width:0.6cm;overflow: auto; text-align: center;">
  72. <span t-esc="l.quantity"/>
  73. </th>
  74. <!-- NOMBRE DEL PRODUCTO -->
  75. <th style="font-size:8px;font-family: Arial;width:3.5cm;overflow: auto; text-align: left;">
  76. <![CDATA[&nbsp;]]><span t-esc="l.get_product().display_name"/>
  77. </th>
  78. <th style="font-size:8px;font-family: Arial;width:1.0cm;overflow: auto; text-align: right;">
  79. <![CDATA[&nbsp;]]><span t-esc="l.price"/>
  80. </th>
  81. <!-- PRECIO UNITARIO -->
  82. <th style="font-size:8px;font-family: Arial;width:1.0cm;overflow: auto; text-align: right;">
  83. <![CDATA[&nbsp;]]><span t-esc="(l.quantity * l.price)"/>
  84. </th>
  85. </tr>
  86. </tbody>
  87. </table>
  88. <table>
  89. <center>----------------------------------------</center><br/>
  90. <tr class="emph">
  91. <br />
  92. <td>Total:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</td>
  93. <td class="pos-right-align" style='font-family: "Courier New;font-size: 20px;'>
  94. <t t-esc="widget.format_currency(order.getTotalTaxIncluded())"/>
  95. </td>
  96. </tr>
  97. </table>
  98. <table>
  99. <tr t-foreach="paymentlines" t-as="line">
  100. <td>
  101. <t t-esc="line.name"/>
  102. </td>
  103. <td class="pos-right-align">
  104. <![CDATA[&nbsp;&nbsp;]]><t t-esc="widget.format_currency(line.get_amount())"/>
  105. </td>
  106. </tr>
  107. </table>
  108. <br />
  109. <table>
  110. <tr><td>Vuelto:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</td><td class="pos-right-align">
  111. <t t-esc="widget.format_currency(order.getChange())"/>
  112. </td></tr>
  113. <tr><td>&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Nota sin valor fiscal</td>
  114. </tr>
  115. </table>
  116. <br/>
  117. <t t-if="widget.pos.config.receipt_footer">
  118. <br />
  119. <div style='text-align:center'>
  120. <t t-esc="widget.pos.config.receipt_footer" />
  121. </div>
  122. </t>
  123. </div>
  124. </t>
  125. </t>
  126. </templates>