factura_comun_kava.xml 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="factura_comun_kava"
  5. model="account.invoice"
  6. string="Factura Comun"
  7. report_type="qweb-html"
  8. name="factura_comun_kava.report_factura_comun"
  9. file="factura_comun_kava.report_factura_comun"
  10. />
  11. <template id="report_factura_comun">
  12. <t t-call="report.html_container">
  13. <t t-call="report.external_layout">
  14. <t t-foreach="[1,2]" t-as="i">
  15. <div class="page">
  16. <style type="text/css">
  17. body{
  18. font-size: 3mm;
  19. font-family: Arial;
  20. }
  21. div{
  22. padding: 0px;
  23. }
  24. .pagina{
  25. width:19.3cm;
  26. }
  27. .logo{
  28. height: 2cm;
  29. width: 100%;
  30. top: 0px;
  31. }
  32. .fecha_emision_data{
  33. width: 11.5cm;
  34. float: left;
  35. min-height: 0.5cm;
  36. }
  37. .contado_x{
  38. width: 1.8cm;
  39. float: left;
  40. padding-left: 9cm;
  41. min-height: 0.5cm;
  42. }
  43. .credito_x{
  44. width: 1.8cm;
  45. float: left;
  46. padding-left: 1.6cm;
  47. min-height: 0.5cm;
  48. }
  49. .linea2{
  50. position: relative;
  51. top: -0.12cm;
  52. min-height: 0.5cm;
  53. }
  54. .razon_data{
  55. width: 12cm;
  56. float: left;
  57. min-height: 0.4cm;
  58. }
  59. .ruc_data{
  60. width: 5cm;
  61. float: left;
  62. min-height: 0.5cm;
  63. }
  64. .linea3{
  65. position: relative;
  66. top: -0.12cm;
  67. min-height: 0.3cm;
  68. }
  69. .direccion_data{
  70. width: 14cm;
  71. float: left;
  72. min-height: 0.4cm;
  73. }
  74. .linea4{
  75. position: relative;
  76. top: -0.12cm;
  77. min-height: 0.3cm;
  78. }
  79. .telefono_data{
  80. width: 10cm;
  81. float: left;
  82. min-height: 0.4cm;
  83. }
  84. .linea5{
  85. position: relative;
  86. top: -0.12cm;
  87. min-height: 0.4cm;
  88. }
  89. .nota_remision_data{
  90. width: 4cm;
  91. float: left;
  92. min-height: 0.4cm;
  93. }
  94. .cab-articulos{
  95. height: 0.8cm;
  96. clear: both;
  97. }
  98. .articulos{
  99. height: 4.5cm;
  100. }
  101. .art-col1{
  102. width:0.4cm;
  103. text-align: center;
  104. }
  105. .art-col2{
  106. padding-left: 0.7cm;
  107. width:1cm;
  108. text-align: center;
  109. }
  110. .art-col3{
  111. padding-left: 0.3cm;
  112. width:9cm;
  113. }
  114. .art-col4{
  115. width:0.9cm;
  116. text-align: right;
  117. }
  118. .art-col5{
  119. width:2.8cm;
  120. text-align: right;
  121. }
  122. .art-col6{
  123. width:2.7cm;
  124. text-align: right;
  125. }
  126. .art-col7{
  127. width:1.5cm;
  128. text-align: right;
  129. }
  130. .logo1{
  131. height: 2cm;
  132. width: 100%;
  133. top: 0px;
  134. }
  135. </style>
  136. <t t-foreach="docs" t-as="o">
  137. <div class="pagina">
  138. <div class="logo"> </div>
  139. <div class="text-left">
  140. <!--<img t-if="o.company_id.logo" t-att-src="'data:image/png;base64,%s' % o.company_id.logo" style="max-height: 45px;"/>-->
  141. <img src="/factura_comun_kava/static/img/kava.png"/>
  142. </div>
  143. <div class="cab-articulos"> </div>
  144. <div class="linea3">
  145. <div class="fecha_emision_data">Ciudad del Este,<span t-field="o.date_invoice" t-field-options='{"format": "dd MMMM yyyy"}'/></div>
  146. </div>
  147. <div class="linea2">
  148. <div class="razon_data"><b>Cliente: </b><span t-field="o.partner_id.name"/></div>
  149. <div class="ruc_data"><b>R.U.C N°: </b><span t-field="o.partner_id.ruc"/></div>
  150. </div>
  151. <div class="linea3">
  152. <div class="direccion_data">
  153. <t t-f="o.partner_id.street"><b>Direccion: </b><span t-field="o.partner_id.street"/> <span t-field="o.partner_id.street2"/></t>
  154. <t t-f="not o.partner_id.street"> </t>
  155. </div>
  156. </div>
  157. <div class="linea4">
  158. <div class="telefono_data"><b>Telefono: </b><span t-field="o.partner_id.phone"/></div>
  159. </div>
  160. <table class="table table-condensed">
  161. <thead>
  162. <tr>
  163. <th class="text-left">Description</th>
  164. <th class="text-right">Quantity</th>
  165. <th class="text-right">Unit Price</th>
  166. <th class="text-right">Price</th>
  167. </tr>
  168. </thead>
  169. <tbody class="sale_tbody">
  170. <tr t-foreach="o.invoice_line" t-as="l">
  171. <td>
  172. <span t-field="l.name"/>
  173. </td>
  174. <td class="text-right">
  175. <span t-field="l.quantity"/>
  176. </td>
  177. <td class="text-right">
  178. <span t-field="l.price_unit"/>
  179. </td>
  180. <td class="text-right">
  181. <span t-esc="l.price_unit*l.quantity"/>
  182. </td>
  183. </tr>
  184. </tbody>
  185. </table>
  186. <div class="row">
  187. <div class="col-xs-4 pull-right">
  188. <table class="table table-condensed">
  189. <tr class="border-black">
  190. <td><strong>Total s/ IVA</strong></td>
  191. <td class="text-right">
  192. <span t-field="o.amount_untaxed"/>
  193. </td>
  194. </tr>
  195. <tr>
  196. <td>IVA</td>
  197. <td class="text-right">
  198. <span t-field="o.amount_tax"/>
  199. </td>
  200. </tr>
  201. <tr class="border-black">
  202. <td><strong>Total</strong></td>
  203. <td class="text-right">
  204. <span t-field="o.amount_total"/>
  205. </td>
  206. </tr>
  207. </table>
  208. </div>
  209. </div>
  210. </div>
  211. <div class="logo1"> </div>
  212. </t>
  213. </div>
  214. </t>
  215. </t>
  216. </t>
  217. </template>
  218. </data>
  219. </openerp>