ticket_venta_smileguide.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="ticket_venta_smileguide"
  5. model="account.invoice"
  6. string="Ticket"
  7. report_type="qweb-html"
  8. name="ticket_venta_smileguide.report_ticket_smileguide"
  9. file="ticket_venta_smileguide.report_ticket_smileguide"
  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_smileguide.ticket_venta_smileguide" model="ir.actions.report.xml">
  27. <field name="paperformat_id" ref="ticket_venta_smileguide.paperformat_lowmargin" />
  28. </record>
  29. <template id="report_ticket_smileguide">
  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. </style>
  56. <t t-foreach="docs" t-as="o">
  57. <div class="pagina">
  58. <div class="row">
  59. <div class="col-xs-4">
  60. <!--
  61. ======================================================================
  62. CABECERA
  63. ======================================================================
  64. -->
  65. <div style="height:1.5cm;">
  66. <div style="width:12cm;padding-top:0.4cm;padding-right:5.0cm;font-size:9.5px;font-family: Arial;text-align: center;">
  67. <div>
  68. <span t-field="o.create_date" t-options='{"format": "dd/mm/aaaa hh.mm.ss"}'/>
  69. </div>
  70. <!-- <div>
  71. <span t-esc="time.strftime('%m/%d/%Y',time.strptime(object.datetimefield,'%Y-%m-%d %H:%M:%S'))"/>
  72. </div> -->
  73. <div>
  74. <span t-field="o.name"/>-<span t-field="o.user_id"/>
  75. </div>
  76. </div>
  77. </div>
  78. <div style="height:0.5cm;">
  79. <div style="font-size:11px;font-family: Arial;">
  80. <div style="text-align: center;">
  81. <b>SMILE GUIDE</b>
  82. </div>
  83. </div>
  84. </div>
  85. <div style="height:1.5cm;">
  86. <div style="width:12cm;padding-right:5.0cm;font-size:9.5px;font-family: Arial;">
  87. <div>
  88. <b>Cliente: </b><span t-field="o.partner_id.name"/>
  89. &amp;nbsp;&amp;nbsp;
  90. <span t-field="o.partner_id.ruc"/>
  91. </div>
  92. <div>
  93. <b>Teléfono: </b><span t-field="o.partner_id.mobile"/>
  94. </div>
  95. </div>
  96. </div>
  97. <!--
  98. ======================================================================
  99. TABLA
  100. ======================================================================
  101. -->
  102. <div style="height:3.1cm;">
  103. <div style="font-family: Arial;">
  104. <table class="table table-condensed table-bordered">
  105. <thead>
  106. <tr>
  107. <th style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: center;"><b>Cant.</b></th>
  108. <th style="font-size:10px;font-family: Arial;width:9.5cm;overflow: auto; text-align: left;"><b>Producto</b></th>
  109. <th style="font-size:10px;font-family: Arial;width:1.9cm;overflow: auto; text-align: center;"><b>Precio</b></th>
  110. </tr>
  111. </thead>
  112. <tbody>
  113. <tr t-foreach="o.invoice_line" t-as="l">
  114. <!-- CANTIDAD -->
  115. <td style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: center;">
  116. <span t-esc="'%.0f'%l.quantity"/>
  117. </td>
  118. <!-- NOMBRE DEL PRODUCTO -->
  119. <td style="font-size:10px;font-family: Arial;width:9.5cm;overflow: auto;">
  120. <span t-field="l.name"/>
  121. </td>
  122. <!-- PRECIO UNITARIO -->
  123. <td style="font-size:10px;font-family: Arial;width:1.7cm;overflow: auto; text-align: right;">
  124. <t t-if="o.currency_id.id == 166">
  125. <span t-esc="'{0:,.0f}'.format(l.quantity * l.price_unit)"/>
  126. </t>
  127. <t t-if="o.currency_id.id != 166">
  128. <span t-esc="'{0:,.2f}'.format(l.quantity * l.price_unit)"/>
  129. </t>
  130. </td>
  131. </tr>
  132. </tbody>
  133. </table>
  134. </div>
  135. </div>
  136. <table class="table table-condensed">
  137. <tbody>
  138. <tr>
  139. <td style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: left;">
  140. <b>Sub Total: </b>
  141. </td>
  142. <!-- NOMBRE DEL PRODUCTO -->
  143. <td style="font-size:10px;font-family: Arial;width:9.5cm;overflow: auto;">
  144. </td>
  145. <!-- PRECIO UNITARIO -->
  146. <td style="font-size:10px;font-family: Arial;width:1.7cm;overflow: auto; text-align: right;">
  147. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  148. </td>
  149. </tr>
  150. <tr>
  151. <td style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: left;">
  152. <b>Descuento: </b><span t-esc="'{0:,.0f}'.format(o.amount_discount)"/>
  153. </td>
  154. <!-- NOMBRE DEL PRODUCTO -->
  155. <td style="font-size:10px;font-family: Arial;width:9.5cm;overflow: auto;">
  156. </td>
  157. <!-- PRECIO UNITARIO -->
  158. <td style="font-size:10px;font-family: Arial;width:1.7cm;overflow: auto; text-align: right;">
  159. </td>
  160. </tr>
  161. <tr>
  162. <td style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: left;">
  163. <b>Total: </b>
  164. </td>
  165. <!-- NOMBRE DEL PRODUCTO -->
  166. <td style="font-size:10px;font-family: Arial;width:9.5cm;overflow: auto;">
  167. </td>
  168. <!-- PRECIO UNITARIO -->
  169. <td style="font-size:10px;font-family: Arial;width:1.7cm;overflow: auto; text-align: right;">
  170. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  171. </td>
  172. </tr>
  173. </tbody>
  174. </table>
  175. <div style="width:12cm;font-size:9.5px;font-family: Arial;">
  176. <span t-field="o.journal_id.name"/> - <span t-field="o.currency_id.name"/>
  177. </div>
  178. <div style="text-align: center;">
  179. <b>www.eiru.com.py</b>
  180. </div>
  181. </div>
  182. </div>
  183. </div>
  184. </t>
  185. </div>
  186. <!-- </t> -->
  187. </t>
  188. </template>
  189. </data>
  190. </openerp>