ticket_venta_ruta5.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="ticket_venta_ruta5"
  5. model="account.invoice"
  6. string="Ticket"
  7. report_type="qweb-html"
  8. name="ticket_venta_ruta5.report_ticket_ruta5"
  9. file="ticket_venta_ruta5.report_ticket_ruta5"
  10. />
  11. <record id="paperformat_lowmargin" model="report.paperformat">
  12. <field name="name">Ticket Odonto</field>
  13. <field name="default" eval="True" />
  14. <field name="format">custom</field>
  15. <field name="page_height">150</field>
  16. <field name="page_width">60</field>
  17. <field name="orientation">Portrait</field>
  18. <field name="margin_top">3</field>
  19. <field name="margin_bottom">3</field>
  20. <field name="margin_left">3</field>
  21. <field name="margin_right">3</field>
  22. <field name="header_line" eval="False" />
  23. <field name="header_spacing">3</field>
  24. <field name="dpi">90</field>
  25. </record>
  26. <record id="ticket_venta_ruta5.ticket_venta_ruta5" model="ir.actions.report.xml">
  27. <field name="paperformat_id" ref="ticket_venta_ruta5.paperformat_lowmargin" />
  28. </record>
  29. <template id="report_ticket_ruta5">
  30. <t t-call="report.html_container">
  31. <!-- <t t-foreach="[1,2,3]" t-as="i"> -->
  32. <div class="page">
  33. <style>
  34. .logo{
  35. height: 1.71cm;
  36. width: 100%;
  37. top: 0px;
  38. }
  39. .table-condensed>tbody>tr>td {
  40. padding: 1px !important;
  41. }
  42. .borderless td, .borderless th {
  43. border: none !important;
  44. }
  45. .logo1{
  46. height: 2.61cm;
  47. width: 100%;
  48. top: 0px;
  49. }
  50. .logo2{
  51. height: 3.30cm;
  52. width: 100%;
  53. top: 0px;
  54. }
  55. .logo3{
  56. height: 0.6cm;
  57. width: 100%;
  58. top: 0px;
  59. }
  60. </style>
  61. <t t-foreach="docs" t-as="o">
  62. <div class="pagina">
  63. <div class="row">
  64. <div class="col-xs-4">
  65. <!--
  66. ======================================================================
  67. CABECERA
  68. ======================================================================
  69. -->
  70. <div style="height:1.5cm;">
  71. <div style="width:12cm;padding-top:0.4cm;padding-right:5.0cm;font-size:9.5px;font-family: Arial;text-align: center;">
  72. <div>
  73. <span t-field="o.create_date" t-options='{"format": "dd/mm/aaaa hh.mm.ss"}'/>
  74. </div>
  75. <!-- <div>
  76. <span t-esc="time.strftime('%m/%d/%Y',time.strptime(object.datetimefield,'%Y-%m-%d %H:%M:%S'))"/>
  77. </div> -->
  78. <div>
  79. <span t-field="o.name"/>-<span t-field="o.user_id"/>
  80. </div>
  81. </div>
  82. </div>
  83. <div style="height:0.5cm;">
  84. <div style="font-size:11px;font-family: Arial;">
  85. <div style="text-align: center;">
  86. <b>RUTA 5</b>
  87. </div>
  88. </div>
  89. </div>
  90. <div style="height:1.5cm;">
  91. <div style="width:12cm;padding-right:5.0cm;font-size:9.5px;font-family: Arial;">
  92. <div>
  93. <b>Cliente: </b><span t-field="o.partner_id.name"/>
  94. &amp;nbsp;&amp;nbsp;
  95. <span t-field="o.partner_id.ruc"/>
  96. </div>
  97. <div>
  98. <b>Teléfono: </b><span t-field="o.partner_id.mobile"/>
  99. </div>
  100. </div>
  101. </div>
  102. <!--
  103. ======================================================================
  104. TABLA
  105. ======================================================================
  106. -->
  107. <div style="height:3.1cm;">
  108. <div style="font-family: Arial;">
  109. <table class="table table-condensed table-bordered">
  110. <thead>
  111. <tr>
  112. <th style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: center;"><b>Cant.</b></th>
  113. <th style="font-size:10px;font-family: Arial;width:9.5cm;overflow: auto; text-align: left;"><b>Producto</b></th>
  114. <th style="font-size:10px;font-family: Arial;width:1.9cm;overflow: auto; text-align: center;"><b>Precio</b></th>
  115. </tr>
  116. </thead>
  117. <tbody>
  118. <tr t-foreach="o.invoice_line" t-as="l">
  119. <!-- CANTIDAD -->
  120. <td style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: center;">
  121. <span t-esc="'%.0f'%l.quantity"/>
  122. </td>
  123. <!-- NOMBRE DEL PRODUCTO -->
  124. <td style="font-size:10px;font-family: Arial;width:9.5cm;overflow: auto;">
  125. <span t-field="l.name"/>
  126. </td>
  127. <!-- PRECIO UNITARIO -->
  128. <td style="font-size:10px;font-family: Arial;width:1.7cm;overflow: auto; text-align: right;">
  129. <t t-if="o.currency_id.id == 166">
  130. <span t-esc="'{0:,.0f}'.format(l.quantity * l.price_unit)"/>
  131. </t>
  132. <t t-if="o.currency_id.id != 166">
  133. <span t-esc="'{0:,.2f}'.format(l.quantity * l.price_unit)"/>
  134. </t>
  135. </td>
  136. </tr>
  137. </tbody>
  138. </table>
  139. </div>
  140. </div>
  141. <table class="table table-condensed">
  142. <tbody>
  143. <tr>
  144. <td style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: left;">
  145. <b>Sub Total: </b>
  146. </td>
  147. <!-- NOMBRE DEL PRODUCTO -->
  148. <td style="font-size:10px;font-family: Arial;width:9.5cm;overflow: auto;">
  149. </td>
  150. <!-- PRECIO UNITARIO -->
  151. <td style="font-size:10px;font-family: Arial;width:1.7cm;overflow: auto; text-align: right;">
  152. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  153. </td>
  154. </tr>
  155. <tr>
  156. <td style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: left;">
  157. <b>Descuento: </b>
  158. </td>
  159. <!-- NOMBRE DEL PRODUCTO -->
  160. <td style="font-size:10px;font-family: Arial;width:9.5cm;overflow: auto;">
  161. </td>
  162. <!-- PRECIO UNITARIO -->
  163. <td style="font-size:10px;font-family: Arial;width:1.7cm;overflow: auto; text-align: right;">
  164. </td>
  165. </tr>
  166. <tr>
  167. <td style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: left;">
  168. <b>Total: </b>
  169. </td>
  170. <!-- NOMBRE DEL PRODUCTO -->
  171. <td style="font-size:10px;font-family: Arial;width:9.5cm;overflow: auto;">
  172. </td>
  173. <!-- PRECIO UNITARIO -->
  174. <td style="font-size:10px;font-family: Arial;width:1.7cm;overflow: auto; text-align: right;">
  175. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  176. </td>
  177. </tr>
  178. </tbody>
  179. </table>
  180. <div style="width:12cm;font-size:9.5px;font-family: Arial;">
  181. <span t-field="o.journal_id.name"/> - <span t-field="o.currency_id.name"/>
  182. </div>
  183. <div class="logo3"> </div>
  184. <div style="text-align: center;font-size:9.5px;font-family: Arial;">
  185. <b>Dirección: Av Bicentenario, Ciudad del Este</b>
  186. </div>
  187. <div style="text-align: center;font-size:9.5px;font-family: Arial;">
  188. <b>Contacto: (0973) 656 695</b>
  189. </div>
  190. </div>
  191. </div>
  192. </div>
  193. </t>
  194. </div>
  195. <!-- </t> -->
  196. </t>
  197. </template>
  198. </data>
  199. </openerp>