pos_receipt.xml 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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: "Helvetica Neue", Helvetica, Arial, sans-serif;font-size: 15px;'>
  6. <div class="pos-center-align"><t t-esc="new Date().toString(Date.CultureInfo.formatPatterns.shortDate + ' ' +
  7. Date.CultureInfo.formatPatterns.longTime)"/>
  8. <br/>
  9. <t t-esc="order.get('name')"/></div>
  10. <br/>
  11. <br />
  12. <t t-if="widget.pos.config.receipt_header">
  13. <div style='text-align:center;font-size: 30px;'>
  14. <t t-esc="widget.pos.config.receipt_header" />
  15. </div>
  16. <br />
  17. </t>
  18. <p>=======================================</p>
  19. Tel: <t t-esc="widget.pos.company.phone || ''"/> <br/>
  20. Vendedor: <t t-esc="widget.pos.cashier ? widget.pos.cashier.name : widget.pos.user.name"/>
  21. <t t-if="order.attributes.client">
  22. <br/>
  23. <p>=======================================</p>
  24. Cliente: <t t-esc="order.attributes.client.name ? order.attributes.client.name : ''"/><br/>
  25. Tel: <t t-esc="order.attributes.client.phone ? order.attributes.client.phone : ''"/><br/>
  26. <t t-esc="order.attributes.client.address ? order.attributes.client.address : ''"/><br/><br/>
  27. </t>
  28. <p>=======================================</p>
  29. <table class="table table-condensed">
  30. <tbody>
  31. <tr t-foreach="orderlines" t-as="orderline">
  32. <p>
  33. <t t-esc="orderline.get_product().display_name"/>
  34. <span>&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span>
  35. <t t-esc="orderline.get_quantity_str_with_unit()"/>
  36. <span>&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span>
  37. <t t-esc="widget.format_currency(orderline.get_display_price())"/>
  38. </p>
  39. </tr>
  40. </tbody>
  41. </table>
  42. <p>=======================================</p>
  43. <table>
  44. <tr>
  45. <p>
  46. Subtotal:&amp;nbsp;&amp;nbsp;
  47. <t t-esc="widget.format_currency(order.getTotalTaxExcluded())"/>
  48. </p>
  49. </tr>
  50. <t t-foreach="order.getTaxDetails()" t-as="taxdetail">
  51. <tr>
  52. <p>
  53. <t t-esc="taxdetail.name"/>: &amp;nbsp;&amp;nbsp;
  54. <t t-esc="widget.format_currency(taxdetail.amount)"/>
  55. </p>
  56. </tr>
  57. </t>
  58. <tr class="emph">
  59. <p>
  60. Total: &amp;nbsp;&amp;nbsp;
  61. <t t-esc="widget.format_currency(order.getTotalTaxIncluded())"/>
  62. </p>
  63. </tr>
  64. </table>
  65. <p>=======================================</p>
  66. <table>
  67. <tr t-foreach="paymentlines" t-as="line">
  68. <p>
  69. <t t-esc="line.name"/>: &amp;nbsp;
  70. <t t-esc="widget.format_currency(line.get_amount())"/>
  71. </p>
  72. </tr>
  73. <tr>
  74. <p>
  75. Cambio: &amp;nbsp;&amp;nbsp;
  76. <t t-esc="widget.format_currency(order.getChange())"/>
  77. </p>
  78. </tr>
  79. </table>
  80. <br/>
  81. <t t-if="widget.pos.config.receipt_footer">
  82. <br/>
  83. <div style='text-align:center'>
  84. <t t-esc="widget.pos.config.receipt_footer" />
  85. </div>
  86. </t>
  87. </div>
  88. </t>
  89. </t>
  90. </templates>