pos_receipt.xml 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. <p>=======================================</p>
  12. Tel: <t t-esc="widget.pos.company.phone || ''"/> <br/>
  13. Vendedor: <t t-esc="widget.pos.cashier ? widget.pos.cashier.name : widget.pos.user.name"/>
  14. <t t-if="order.attributes.client">
  15. <br/>
  16. <p>=======================================</p>
  17. Cliente: <t t-esc="order.attributes.client.name ? order.attributes.client.name : ''"/><br/>
  18. Tel: <t t-esc="order.attributes.client.phone ? order.attributes.client.phone : ''"/><br/><br/>
  19. </t>
  20. <p>=======================================</p>
  21. <table class="table table-condensed">
  22. <tbody>
  23. <tr t-foreach="orderlines" t-as="orderline">
  24. <p>
  25. <t t-esc="orderline.get_product().display_name"/>
  26. <span>&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span>
  27. <t t-esc="orderline.get_quantity_str_with_unit()"/>
  28. <span>&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span>
  29. <t t-esc="widget.format_currency(orderline.get_display_price())"/>
  30. </p>
  31. </tr>
  32. </tbody>
  33. </table>
  34. <p>=======================================</p>
  35. <table>
  36. <tr>
  37. <p>
  38. Subtotal:&amp;nbsp;&amp;nbsp;
  39. <t t-esc="widget.format_currency(order.getTotalTaxExcluded())"/>
  40. </p>
  41. </tr>
  42. <t t-foreach="order.getTaxDetails()" t-as="taxdetail">
  43. <tr>
  44. <p>
  45. <t t-esc="taxdetail.name"/>: &amp;nbsp;&amp;nbsp;
  46. <t t-esc="widget.format_currency(taxdetail.amount)"/>
  47. </p>
  48. </tr>
  49. </t>
  50. <tr class="emph">
  51. <p>
  52. Total: &amp;nbsp;&amp;nbsp;
  53. <t t-esc="widget.format_currency(order.getTotalTaxIncluded())"/>
  54. </p>
  55. </tr>
  56. </table>
  57. <p>=======================================</p>
  58. <table>
  59. <tr t-foreach="paymentlines" t-as="line">
  60. <p>
  61. <t t-esc="line.name"/>: &amp;nbsp;&amp;nbsp;
  62. <t t-esc="widget.format_currency(line.get_amount())"/>
  63. </p>
  64. </tr>
  65. <tr>
  66. <p>
  67. Cambio: &amp;nbsp;&amp;nbsp;
  68. <t t-esc="widget.format_currency(order.getChange())"/>
  69. </p>
  70. </tr>
  71. </table>
  72. <br/>
  73. </div>
  74. </t>
  75. </t>
  76. </templates>