pos.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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: 12px;">
  34. <thead>
  35. <tr>
  36. <th class="text-right">Cant.</th>
  37. <th>&#160;&#160;Producto&#160;&#160;&#160;&#160;</th>
  38. <th class="text-right">&#160;&#160;Precio </th>
  39. <th class="text-right">&#160;&#160;Sub-total</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. <!-- <t t-esc="widget.format_currency(orderline.get_display_price())"/> -->
  63. </td>
  64. </tr>
  65. <tr>
  66. <td></td>
  67. <td></td>
  68. </tr>
  69. </t>
  70. </tbody>
  71. </table>
  72. <table>
  73. <center>----------------------------------------</center><br/>
  74. <tr class="emph">
  75. <br />
  76. <td>Total:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</td>
  77. <td class="pos-right-align" style='font-family: "Courier New;font-size: 20px;'>
  78. <t t-esc="widget.format_currency(order.getTotalTaxIncluded())"/>
  79. </td>
  80. </tr>
  81. </table>
  82. <table>
  83. <tr t-foreach="paymentlines" t-as="line">
  84. <td>
  85. <t t-esc="line.name"/>
  86. </td>
  87. <td class="pos-right-align">
  88. <![CDATA[&nbsp;]]><t t-esc="widget.format_currency(line.get_amount())"/>
  89. </td>
  90. </tr>
  91. </table>
  92. <br />
  93. <table>
  94. <tr><td>Vuelto:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</td><td class="pos-right-align">
  95. <t t-esc="widget.format_currency(order.getChange())"/>
  96. </td></tr>
  97. <tr><td>&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Nota sin valor fiscal</td>
  98. </tr>
  99. </table>
  100. <br/>
  101. <t t-if="widget.pos.config.receipt_footer">
  102. <br />
  103. <div style='text-align:center'>
  104. <t t-esc="widget.pos.config.receipt_footer" />
  105. </div>
  106. </t>
  107. </div>
  108. </t>
  109. </t>
  110. </templates>