factura_venta_paradata.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="factura_venta_paradata"
  5. model="account.invoice"
  6. string="Factura Legal"
  7. report_type="qweb-html"
  8. name="factura_venta_paradata.report_factura_paradata"
  9. file="factura_venta_paradata.report_factura_paradata"
  10. />
  11. <template id="report_header_custom" inherit_id="report.external_layout_header">
  12. <xpath expr="//div[@class='header']" position="replace">
  13. <div class ="header">
  14. </div>
  15. </xpath>
  16. </template>
  17. <template id="external_layout_footer" inherit_id="report.external_layout_footer">
  18. <xpath expr="//div[@class='footer']" position="replace">
  19. <div class ="footer">
  20. </div>
  21. </xpath>
  22. </template>
  23. <template id="report_factura_paradata">
  24. <t t-call="report.html_container">
  25. <t t-call="report.external_layout">
  26. <t t-foreach="[1,2,3]" t-as="i">
  27. <div class="page">
  28. <style type="text/css">
  29. body{
  30. font-size: 2.67mm;
  31. font-family: Arial, Helvetica, sans-serif;
  32. }
  33. div{
  34. padding: 0px;
  35. }
  36. .pagina{
  37. width:19.3cm;
  38. }
  39. .logo{
  40. height: 0.00cm;
  41. width: 100%;
  42. top: 0px;
  43. }
  44. .fecha_emision_data{
  45. width: 9cm;
  46. font-size: 2.4mm;
  47. padding-left: 6.3cm;
  48. float: left;
  49. min-height: 0.6cm;
  50. }
  51. .ruc_data{
  52. width: 8cm;
  53. font-size: 2.4mm;
  54. font-family: Arial, Helvetica, sans-serif;
  55. float: left;
  56. padding-left: 3.5cm;
  57. min-height: 0.6cm;
  58. }
  59. .linea2{
  60. position: relative;
  61. top: -0.12cm;
  62. min-height: 0.4cm;
  63. }
  64. .razon_data{
  65. width: 14.5cm;
  66. float: left;
  67. font-size: 2.3mm;
  68. padding-left: 6.3cm;
  69. min-height: 0.5cm;
  70. }
  71. .linea3{
  72. position: relative;
  73. top: -0.12cm;
  74. min-height: 0.4cm;
  75. }
  76. .direccion_data{
  77. width: 11.0cm;
  78. font-size: 2.2mm;
  79. font-family: Arial, Helvetica, sans-serif;
  80. float: left;
  81. padding-left: 6.3cm;
  82. min-height: 0.5cm;
  83. }
  84. .linea4{
  85. position: relative;
  86. top: -0.12cm;
  87. min-height: 0.4cm;
  88. }
  89. .telefono_data{
  90. width: 8.3cm;
  91. float: left;
  92. padding-left: 2.0cm;
  93. min-height: 0.3cm;
  94. }
  95. .linea5{
  96. position: relative;
  97. top: -0.12cm;
  98. min-height: 0.4cm;
  99. }
  100. .contado_x{
  101. width: 1cm;
  102. float: left;
  103. padding-left: 8.52cm;
  104. min-height: 0.5cm;
  105. }
  106. .credito_x{
  107. width: 1.8cm;
  108. float: left;
  109. padding-left: 1.7cm;
  110. min-height: 0.5cm;
  111. }
  112. .nota_remision_data{
  113. width: 8.3cm;
  114. float: left;
  115. padding-left: 2.5cm;
  116. min-height: 0.5cm;
  117. }
  118. .cab-articulos{
  119. height: 0.37cm;
  120. clear: both;
  121. }
  122. .articulos{
  123. height: 4.56cm;
  124. }
  125. .art-col1{
  126. padding-left: 0.0cm;
  127. width:0.5cm;
  128. text-align: center;
  129. }
  130. .art-col2{
  131. padding-left: 0.5cm;
  132. width:9.5cm;
  133. }
  134. .art-col3{
  135. width:1.8cm;
  136. text-align: right;
  137. }
  138. .art-col4{
  139. width:2.4cm;
  140. text-align: right;
  141. }
  142. .art-col5{
  143. width:2.5cm;
  144. text-align: right;
  145. }
  146. .art-col6{
  147. width:1.9cm;
  148. text-align: right;
  149. }
  150. .logo1{
  151. height: 3.60cm;
  152. width: 100%;
  153. top: 0px;
  154. }
  155. .logo2{
  156. height: 3.58cm;
  157. width: 100%;
  158. top: 0px;
  159. }
  160. .subtotal_data{
  161. width: 6cm;
  162. float: left;
  163. padding-top: 0.002cm;
  164. padding-left: 2.3cm;
  165. min-height: 0.2cm;
  166. }
  167. .subtotal_excentas{
  168. width: 1.8cm;
  169. float: left;
  170. text-align: right;
  171. padding-left: 10cm;
  172. padding-top: 0.7cm;
  173. min-height: 0.2cm;
  174. }
  175. .subtotal_5{
  176. width: 1cm;
  177. float: left;
  178. padding-left: 1cm;
  179. text-align: right;
  180. padding-top: 0.7cm;
  181. min-height: 0.2cm;
  182. }
  183. .subtotal_10{
  184. width: 2.3cm;
  185. float: left;
  186. padding-left: 0.8cm;
  187. text-align: left;
  188. padding-top: 0.7cm;
  189. min-height: 0.2cm;
  190. }
  191. .total_pagar_data{
  192. width: 16.4cm;
  193. float: left;
  194. padding-top: 0.01mm;
  195. padding-left: 4.8cm;
  196. min-height: 0.7cm;
  197. }
  198. .total_pagar{
  199. width: 2.3cm;
  200. float: right;
  201. padding-top: 0.01mm;
  202. padding-left: 0.8cm;
  203. min-height: 0.7cm;
  204. }
  205. .iva_5_data{
  206. width: 5cm;
  207. float: left;
  208. padding-top: 0.04mm;
  209. padding-left: 4.7cm;
  210. min-height: 0.25cm;
  211. }
  212. .iva_10_data{
  213. width: 5.2cm;
  214. float: left;
  215. padding-left: 3.1cm;
  216. padding-top: 0.04mm;
  217. min-height: 0.25cm;
  218. }
  219. .iva_total_data{
  220. width: 7cm;
  221. float: left;
  222. padding-left: 4.25cm;
  223. padding-top: 0.04mm;
  224. min-height: 0.25cm;
  225. }
  226. </style>
  227. <t t-foreach="docs" t-as="o">
  228. <div class="pagina">
  229. <div class="logo"> </div>
  230. <div class="linea1">
  231. <div class="fecha_emision_data"><span t-field="o.date_invoice" t-field-options='{"format": "dd MMM yyyy"}'/></div>
  232. <div class="ruc_data"><span t-field="o.partner_id.ruc"/></div>
  233. </div>
  234. <div class="linea2">
  235. <div class="razon_data"><span t-field="o.partner_id.name"/></div>
  236. </div>
  237. <div class="linea3">
  238. <div class="direccion_data">
  239. <t t-f="o.partner_id.street"><span t-field="o.partner_id.street"/></t>
  240. <t t-f="not o.partner_id.street"> </t>
  241. </div>
  242. </div>
  243. <div class="linea4">
  244. <div class="telefono_data"><span t-field="o.partner_id.phone"/></div>
  245. <div class="nota_remision_data"> </div>
  246. </div>
  247. <div class="linea5">
  248. <div class="contado_x">
  249. <t t-if="o.contado == True">X</t>
  250. <t t-if="o.contado == False"></t>
  251. </div>
  252. <div class="credito_x">
  253. <t t-if="o.credito == True">X</t>
  254. <t t-if="o.credito == False"></t>
  255. </div>
  256. </div>
  257. <div class="cab-articulos"> </div>
  258. <div class="articulos">
  259. <table class="tab-articulos">
  260. <tr t-foreach="o.invoice_line" t-as="l">
  261. <td class="art-col1"><span t-esc="'%.0f'%l.quantity"/></td>
  262. <td class="art-col2"><span t-field="l.product_id.name"/></td>
  263. <td class="art-col3"><span t-esc="'{0:,.0f}'.format(l.price_unit)"/></td>
  264. <td class="art-col4"> </td>
  265. <td class="art-col5"> </td>
  266. <td class="art-col6"><span t-esc="'{0:,.0f}'.format((l.quantity * l.price_unit))"/></td>
  267. </tr>
  268. </table>
  269. </div>
  270. <div class="subtotal_data"> </div>
  271. <div class="subtotal_excentas"> </div>
  272. <div class="subtotal_5"> </div>
  273. <td style="font-size:7.0px;">
  274. <div class="subtotal_10"><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></div>
  275. </td>
  276. <div class="total_pagar_data">Gs.: <span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/></div>
  277. <div class="total_pagar"><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></div>
  278. <div class="iva_5_data"> </div>
  279. <div class="iva_10_data"><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></div>
  280. <div class="iva_total_data"><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></div>
  281. </div>
  282. <t t-if="i == 1">
  283. <div class="logo1"> </div>
  284. </t>
  285. <t t-if="i == 2">
  286. <div class="logo2"> </div>
  287. </t>
  288. </t>
  289. </div>
  290. </t>
  291. </t>
  292. </t>
  293. </template>
  294. </data>
  295. </openerp>