ticket_venta_ruta5.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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">80</field>
  17. <field name="orientation">Portrait</field>
  18. <field name="margin_top">2</field>
  19. <field name="margin_bottom">2</field>
  20. <field name="margin_left">1</field>
  21. <field name="margin_right">1</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:10px;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:13px;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:11px;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. <div class="col-xs-6">
  111. <thead>
  112. <tr>
  113. <th style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: center;"><b>Cant.</b></th>
  114. <th style="font-size:10px;font-family: Arial;width:11cm;overflow: auto; text-align: left;"><b>Producto</b></th>
  115. <th style="font-size:10px;font-family: Arial;width:1.9cm;overflow: auto; text-align: center;"><b>Precio</b></th>
  116. </tr>
  117. </thead>
  118. <tbody>
  119. <tr t-foreach="o.invoice_line" t-as="l">
  120. <!-- CANTIDAD -->
  121. <td style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: center;">
  122. <span t-esc="'%.0f'%l.quantity"/>
  123. </td>
  124. <!-- NOMBRE DEL PRODUCTO -->
  125. <td style="font-size:10px;font-family: Arial;width:11cm;overflow: auto;">
  126. <span t-field="l.name"/>
  127. </td>
  128. <!-- PRECIO UNITARIO -->
  129. <td style="font-size:10px;font-family: Arial;width:1.7cm;overflow: auto; text-align: right;">
  130. <t t-if="o.currency_id.id == 166">
  131. <span t-esc="'{0:,.0f}'.format(l.quantity * l.price_unit)"/>
  132. </t>
  133. <t t-if="o.currency_id.id != 166">
  134. <span t-esc="'{0:,.2f}'.format(l.quantity * l.price_unit)"/>
  135. </t>
  136. </td>
  137. </tr>
  138. </tbody>
  139. </div>
  140. </table>
  141. </div>
  142. </div>
  143. <table class="table table-condensed">
  144. <div class="col-xs-6">
  145. <tbody>
  146. <tr>
  147. <td style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: left;">
  148. <b>Sub Total: </b>
  149. </td>
  150. <!-- NOMBRE DEL PRODUCTO -->
  151. <td style="font-size:10px;font-family: Arial;width:9.5cm;overflow: auto;">
  152. </td>
  153. <!-- PRECIO UNITARIO -->
  154. <td style="font-size:10px;font-family: Arial;width:1.7cm;overflow: auto; text-align: right;">
  155. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  156. </td>
  157. </tr>
  158. <tr>
  159. <td style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: left;">
  160. <b>Descuento: </b>
  161. </td>
  162. <!-- NOMBRE DEL PRODUCTO -->
  163. <td style="font-size:10px;font-family: Arial;width:9.5cm;overflow: auto;">
  164. </td>
  165. <!-- PRECIO UNITARIO -->
  166. <td style="font-size:10px;font-family: Arial;width:1.7cm;overflow: auto; text-align: right;">
  167. </td>
  168. </tr>
  169. <tr>
  170. <td style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: left;">
  171. <b>Total: </b>
  172. </td>
  173. <!-- NOMBRE DEL PRODUCTO -->
  174. <td style="font-size:10px;font-family: Arial;width:9.5cm;overflow: auto;">
  175. </td>
  176. <!-- PRECIO UNITARIO -->
  177. <td style="font-size:10px;font-family: Arial;width:1.7cm;overflow: auto; text-align: right;">
  178. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  179. </td>
  180. </tr>
  181. </tbody>
  182. </div>
  183. </table>
  184. <div style="width:12cm;font-size:10px;font-family: Arial;">
  185. <b>Firma: _ _ _ _ _ _ _ _ _ _ _</b>
  186. </div>
  187. <div class="logo3"> </div>
  188. <div style="text-align: center;font-size:9.5px;font-family: Arial;">
  189. <b>Dirección: Av Bicentenario, Ciudad del Este</b>
  190. </div>
  191. <div style="text-align: center;font-size:9.5px;font-family: Arial;">
  192. <b>Contacto: (0973) 656 695</b>
  193. </div>
  194. </div>
  195. </div>
  196. </div>
  197. </t>
  198. </div>
  199. <!-- </t> -->
  200. </t>
  201. </template>
  202. </data>
  203. </openerp>