pos_report_template.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report
  5. id="pos_sales_report"
  6. string="Daily Sales Report"
  7. model="pos.order"
  8. report_type="qweb-pdf"
  9. file="pos_sale_reports.report_daily_pos_sales"
  10. name="pos_sale_reports.report_daily_pos_sales"
  11. menu="False"
  12. />
  13. <template id="report_daily_pos_sales">
  14. <div class="page">
  15. <h3><center><strong>Reporte de ventas POS</strong></center></h3>
  16. <table width="100%" style="padding:40px;height:25px;margin-left:50px;margin-top:35px;border: None solid black;">
  17. <th width="30%"></th>
  18. <th width="30%"></th>
  19. <th width="30%"></th>
  20. <th width="30%"></th>
  21. <tr>
  22. <td style="width:50px;height:25px;margin-left:50px;" >
  23. <span>Compañia: </span><span t-att-style="style" t-esc="res_company.name"/>
  24. </td>
  25. <td style="width:50px;height:25px;margin-left:50px;" t-if="data['form']['point_of_sale']">
  26. <span t-if="data['form']['point_of_sale']">Punto de venta: </span>
  27. <span t-att-style="style" t-esc="data['form']['point_of_sale'][1]"/>
  28. </td>
  29. </tr>
  30. <tr>
  31. <td style="width:50px;height:25px;margin-left:50px;" align="left">
  32. <span>Fecha del Reporte: </span>
  33. <span t-att-style="style" t-esc="get_date()"/>
  34. </td>
  35. <td style="width:50px;height:25px;margin-left:50px;" align="left" t-if="data['form']['sales_person']">
  36. <span t-if="data['form']['sales_person']">Vendedor: </span>
  37. <span t-att-style="style" t-esc="data['form']['sales_person'][1]"/>
  38. </td>
  39. </tr>
  40. </table>
  41. <table class="table table-condensed">
  42. <thead>
  43. <tr >
  44. <th style="text-align:center; background-color:#9b9da0 !important;">SL.NO</th>
  45. <th style="text-align:center; background-color:#9b9da0 !important;">ORDER</th>
  46. <th style="text-align:center; background-color:#9b9da0 !important;">Cliente</th>
  47. <th style="text-align:center; background-color:#9b9da0 !important;">Total</th>
  48. <th style="text-align:center; background-color:#9b9da0 !important;" colspan="3">Pagos</th>
  49. </tr>
  50. <tr style="background-color: #d3d3d3;border-style: solid;">
  51. <th style="background-color:#9b9da0 !important;"></th>
  52. <th style="background-color:#9b9da0 !important;"></th>
  53. <th style="background-color:#9b9da0 !important;"></th>
  54. <th style="background-color:#9b9da0 !important;"></th>
  55. <th style="text-align:center; background-color:#9b9da0 !important;">CASH</th>
  56. <th style="text-align:center; background-color:#9b9da0 !important;" >BANK</th>
  57. </tr>
  58. </thead>
  59. <tbody>
  60. <t t-set="total_daily_sales" t-value='0'></t>
  61. <t t-set="total_cash" t-value='0'></t>
  62. <t t-set="total_bank" t-value='0'></t>
  63. <t t-set="sl_no" t-value='0'></t>
  64. <t t-foreach="get_sale_details(data)" t-as="b">
  65. <tr>
  66. <t t-set="sl_no" t-value="sl_no+1"/>
  67. <td>
  68. <span t-att-style="style" t-esc="sl_no"/>
  69. </td>
  70. <td>
  71. <span t-att-style="style" t-esc="b['order']"/>
  72. </td>
  73. <td>
  74. <span t-att-style="style" t-esc="b['partner']"/>
  75. </td>
  76. <td>
  77. <span t-att-style="style" t-esc="b['price']"/>
  78. </td>
  79. <td>
  80. <span t-att-style="style" t-esc="b['cash']"/>
  81. </td>
  82. <td>
  83. <span t-att-style="style" t-esc="b['bank']"/>
  84. </td>
  85. <t t-set="total_daily_sales" t-value = "total_daily_sales + b['price'] "></t>
  86. <t t-set="total_cash" t-value = "total_cash + b['cash'] "></t>
  87. <t t-set="total_bank" t-value = "total_bank + b['bank'] "></t>
  88. </tr>
  89. </t>
  90. <tr>
  91. <td></td>
  92. <td></td>
  93. <td><strong>Total Gral</strong></td>
  94. <td><strong><t t-esc="total_daily_sales"></t></strong></td>
  95. <td><strong><t t-esc="total_cash"></t></strong></td>
  96. <td><strong><t t-esc="total_bank"></t></strong></td>
  97. </tr>
  98. </tbody>
  99. </table>
  100. </div>
  101. </template>
  102. </data>
  103. </openerp>