factura_venta_dentalg.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="factura_venta_dentalg"
  5. model="account.invoice"
  6. string="Factura Legal"
  7. report_type="qweb-html"
  8. name="factura_venta_dentalg.report_factura_dentalg"
  9. file="factura_venta_dentalg.report_factura_dentalg"
  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_dentalg">
  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: 2.6cm;
  41. width: 100%;
  42. top: 0px;
  43. }
  44. .cab-articulos8{
  45. height: 0.9cm;
  46. clear: both;
  47. }
  48. .art-col11{
  49. width:0.9cm;
  50. text-align: center;
  51. }
  52. .art-col12{
  53. padding-left: 0.8cm;
  54. width:0.2cm;
  55. text-align: center;
  56. }
  57. .art-col13{
  58. padding-left: 1.7cm;
  59. width:9.4cm;
  60. }
  61. .art-col15{
  62. width:6.5cm;
  63. text-align: center;
  64. }
  65. .art-col16{
  66. width:2.3cm;
  67. text-align: right;
  68. }
  69. .articulos2{
  70. height: 0.15cm;
  71. }
  72. .art-col21{
  73. width:3.9cm;
  74. text-align: center;
  75. }
  76. .art-col22{
  77. padding-left: 0.8cm;
  78. width:5.0cm;
  79. text-align: left;
  80. }
  81. .art-col23{
  82. padding-left: 1cm;
  83. width:9.4cm;
  84. }
  85. .art-col24{
  86. width:1.9cm;
  87. text-align: right;
  88. }
  89. .art-col31{
  90. width:0.9cm;
  91. text-align: center;
  92. }
  93. .art-col32{
  94. padding-left: 0.8cm;
  95. width:1cm;
  96. text-align: center;
  97. }
  98. .art-col33{
  99. padding-left: 1cm;
  100. width:9.4cm;
  101. text-align: left;
  102. }
  103. .art-col34{
  104. width:1.9cm;
  105. text-align: right;
  106. }
  107. .art-col35{
  108. width:2.2cm;
  109. text-align: right;
  110. }
  111. .art-col36{
  112. width:2.3cm;
  113. text-align: left;
  114. }
  115. .art-col37{
  116. width:1.9cm;
  117. text-align: right;
  118. }
  119. .fecha_emision_data{
  120. width: 13.1cm;
  121. padding-left: 2.9cm;
  122. float: left;
  123. min-height: 0.5cm;
  124. }
  125. .linea2{
  126. position: relative;
  127. top: -0.12cm;
  128. min-height: 0.4cm;
  129. }
  130. .razon_data{
  131. width: 12cm;
  132. float: left;
  133. padding-left: 3.95cm;
  134. min-height: 0.5cm;
  135. }
  136. .ruc_data{
  137. width: 6.0cm;
  138. float: right;
  139. padding-left: 0.14cm;
  140. min-height: 0.5cm;
  141. }
  142. .linea3{
  143. position: relative;
  144. top: -0.12cm;
  145. min-height: 0.4cm;
  146. }
  147. .direccion_data{
  148. width: 13.5cm;
  149. float: left;
  150. padding-left: 3.1cm;
  151. min-height: 0.5cm;
  152. }
  153. .telefono_data{
  154. width: 6.8cm;
  155. float: left;
  156. padding-left: 0.3cm;
  157. min-height: 0.5cm;
  158. }
  159. .linea4{
  160. position: relative;
  161. top: -0.12cm;
  162. min-height: 0.5cm;
  163. }
  164. .contado_x{
  165. width: 0.4cm;
  166. float: left;
  167. padding-left: 2.0cm;
  168. min-height: 0.5cm;
  169. }
  170. .credito_x{
  171. width: 0.2cm;
  172. float: left;
  173. padding-left: 0.5cm;
  174. min-height: 0.5cm;
  175. }
  176. .cab-articulos{
  177. height: 0.9cm;
  178. clear: both;
  179. }
  180. .articulos{
  181. height: 3.15cm;
  182. }
  183. .art-col1{
  184. width:0.9cm;
  185. text-align: center;
  186. }
  187. .art-col2{
  188. padding-left: 0.8cm;
  189. width:1cm;
  190. text-align: center;
  191. }
  192. .art-col3{
  193. padding-left: 1cm;
  194. width:9.4cm;
  195. }
  196. .art-col4{
  197. width:1.9cm;
  198. text-align: right;
  199. }
  200. .art-col5{
  201. width:2.2cm;
  202. text-align: right;
  203. }
  204. .art-col6{
  205. width:2.3cm;
  206. text-align: right;
  207. }
  208. .art-col7{
  209. width:1.9cm;
  210. text-align: right;
  211. }
  212. .logo1{
  213. height: 2.55cm;
  214. width: 100%;
  215. top: 0px;
  216. }
  217. .logo2{
  218. height: 2.56cm;
  219. width: 100%;
  220. top: 0px;
  221. }
  222. .subtotal_data{
  223. width: 6cm;
  224. float: left;
  225. padding-top: 0.002cm;
  226. padding-left: 2.3cm;
  227. min-height: 0.2cm;
  228. }
  229. .subtotal_excentas{
  230. width: 1.8cm;
  231. float: left;
  232. text-align: right;
  233. padding-left: 10cm;
  234. padding-top: 0.7cm;
  235. min-height: 0.2cm;
  236. }
  237. .subtotal_5{
  238. width: 1cm;
  239. float: left;
  240. padding-left: 1cm;
  241. text-align: right;
  242. padding-top: 0.7cm;
  243. min-height: 0.2cm;
  244. }
  245. .subtotal_10{
  246. width: 2.3cm;
  247. float: left;
  248. padding-left: 0.8cm;
  249. text-align: left;
  250. padding-top: 0.7cm;
  251. min-height: 0.2cm;
  252. }
  253. .total_pagar_data{
  254. width: 16.4cm;
  255. float: left;
  256. padding-top: 0.01mm;
  257. padding-left: 4.8cm;
  258. min-height: 0.3cm;
  259. }
  260. .total_pagar{
  261. width: 2.3cm;
  262. float: right;
  263. padding-top: 0.01mm;
  264. padding-left: 0.8cm;
  265. min-height: 0.3cm;
  266. }
  267. .iva_5_data{
  268. width: 5cm;
  269. float: left;
  270. padding-left: 4.7cm;
  271. min-height: 0.25cm;
  272. }
  273. .iva_10_data{
  274. width: 5.2cm;
  275. float: left;
  276. padding-left: 3.8cm;
  277. min-height: 0.25cm;
  278. }
  279. .iva_total_data{
  280. width: 7cm;
  281. float: left;
  282. padding-left: 3.3cm;
  283. min-height: 0.25cm;
  284. }
  285. </style>
  286. <t t-foreach="docs" t-as="o">
  287. <div class="pagina">
  288. <div class="logo"> </div>
  289. <div class="linea1">
  290. <div class="fecha_emision_data"><span t-field="o.date_invoice" t-field-options='{"format": "dd MMM yyyy"}'/></div>
  291. </div>
  292. <table class="tab-articulos">
  293. <div class="articulos2">
  294. <td class="art-col11">
  295. </td>
  296. <td class="art-col12">
  297. </td>
  298. <td class="art-col13">
  299. <div class="razon_data"><span t-field="o.partner_id.name"/></div>
  300. </td>
  301. <td class="art-col14"></td>
  302. <td class="art-col15">
  303. <div class="ruc_data"><span t-field="o.partner_id.ruc"/></div>
  304. </td>
  305. <td class="art-col16">
  306. </td>
  307. <td class="art-col17"></td>
  308. </div>
  309. </table>
  310. <table class="tab-articulos">
  311. <div class="articulos2">
  312. <td class="art-col31">
  313. </td>
  314. <td class="art-col32">
  315. </td>
  316. <td class="art-col33">
  317. <t t-f="o.partner_id.street"><span t-field="o.partner_id.street"/> <span t-field="o.partner_id.street2"/></t>
  318. <t t-f="not o.partner_id.street"> </t>
  319. </td>
  320. <td class="art-col34"></td>
  321. <td class="art-col35"> </td>
  322. <td class="art-col36">
  323. <div class="telefono_data"><span t-field="o.partner_id.phone"/></div>
  324. </td>
  325. <td class="art-col37"></td>
  326. </div>
  327. </table>
  328. <table class="tab-articulos">
  329. <div class="articulos2">
  330. <td class="art-col21">
  331. </td>
  332. <td class="art-col22">
  333. <div class="contado_x">
  334. <t t-if="o.contado == True">X</t>
  335. <t t-if="o.contado == False"></t>
  336. </div>
  337. <div class="credito_x">
  338. <t t-if="o.credito == True">X</t>
  339. <t t-if="o.credito == False"></t>
  340. </div>
  341. </td>
  342. <td class="art-col23">
  343. </td>
  344. <td class="art-col24">
  345. </td>
  346. </div>
  347. </table>
  348. <div class="cab-articulos"> </div>
  349. <div class="articulos">
  350. <table class="tab-articulos">
  351. <tr t-foreach="o.invoice_line" t-as="l">
  352. <td class="art-col1"><span t-field="l.product_id.default_code"/></td>
  353. <td class="art-col2"><span t-esc="'{0:,.0f}'.format(l.quantity )"/></td>
  354. <td class="art-col3"><span t-field="l.product_id.name"/></td>
  355. <td class="art-col4"></td>
  356. <td class="art-col5"> </td>
  357. <td class="art-col6"> </td>
  358. <td class="art-col7"><span t-esc="'{0:,.0f}'.format((l.quantity * l.price_unit))"/></td>
  359. </tr>
  360. </table>
  361. </div>
  362. <div class="subtotal_data"> </div>
  363. <div class="subtotal_excentas"> </div>
  364. <div class="subtotal_5"> </div>
  365. <td style="font-size:7.0px;">
  366. <div class="subtotal_10"><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></div>
  367. </td>
  368. <div class="total_pagar_data">Gs.: <span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/></div>
  369. <div class="total_pagar"><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></div>
  370. <div class="iva_5_data"> </div>
  371. <div class="iva_10_data"><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></div>
  372. <div class="iva_total_data"><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></div>
  373. </div>
  374. <t t-if="i == 1">
  375. <div class="logo1"> </div>
  376. </t>
  377. <t t-if="i == 2">
  378. <div class="logo2"> </div>
  379. </t>
  380. </t>
  381. </div>
  382. </t>
  383. </t>
  384. </t>
  385. </template>
  386. </data>
  387. </openerp>