factura_venta_medicalart.xml 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="factura_venta_medicalart"
  5. model="account.invoice"
  6. string="Factura Legal"
  7. report_type="qweb-html"
  8. name="factura_venta_medicalart.report_factura_medicalart"
  9. file="factura_venta_medicalart.report_factura_medicalart"
  10. />
  11. <template id="report_factura_medicalart">
  12. <t t-call="report.html_container">
  13. <t t-foreach="[1]" t-as="i">
  14. <div class="page">
  15. <style type="text/css">
  16. body{
  17. font-size: 3.4mm;
  18. font-family: Calibri;
  19. }
  20. div{
  21. padding: 0px;
  22. }
  23. .pagina{
  24. width:19.3cm;
  25. }
  26. .logo{
  27. height: 3.90cm;
  28. width: 100%;
  29. top: 0px;
  30. }
  31. .logo1{
  32. height: 4.4cm;
  33. width: 100%;
  34. top: 0px;
  35. }
  36. .articulos{
  37. height: 3.385cm;
  38. }
  39. .art-col11{
  40. padding-left: 0.2mm;
  41. width:3.8cm;
  42. font-size: 2.9mm;
  43. text-align: center;
  44. vertical-align: top;
  45. min-height: 0.6cm;
  46. }
  47. .art-col13{
  48. padding-left: 0.5cm;
  49. font-size: 3.4mm;
  50. width:1.4cm;
  51. text-align: left;
  52. vertical-align: top;
  53. min-height: 0.6cm;
  54. }
  55. .art-col14{
  56. width:3.5cm;
  57. font-size: 3.4mm;
  58. padding-left: 0.8mm;
  59. text-align: center;
  60. vertical-align: top;
  61. min-height: 0.6cm;
  62. }
  63. .art-col12{
  64. padding-left: 0.2mm;
  65. width:2.40cm;
  66. font-size: 3.4mm;
  67. text-align: right;
  68. vertical-align: top;
  69. min-height: 0.6cm;
  70. }
  71. .art-col15{
  72. width:3.72cm;
  73. font-size: 2.9mm;
  74. text-align: right;
  75. vertical-align: top;
  76. min-height: 0.6cm;
  77. }
  78. .art-col16{
  79. width:2.4cm;
  80. font-size: 3mm;
  81. vertical-align: top;
  82. text-align: right;
  83. min-height: 0.6cm;
  84. }
  85. .art-col17{
  86. width:3.2cm;
  87. font-size: 3.5mm;
  88. text-align: right;
  89. vertical-align: top;
  90. min-height: 0.6cm;
  91. }
  92. .fecha_emision_data{
  93. width: 11.1cm;
  94. padding-left:2.8cm;
  95. float: left;
  96. min-height: 0.9cm;
  97. }
  98. .contado_x{
  99. width: 2cm;
  100. float: right;
  101. padding-left: 2.45cm;
  102. min-height: 0.9cm;
  103. }
  104. .credito_x{
  105. width:2.5cm;
  106. float: left;
  107. padding-left: 1.0cm;
  108. min-height: 0.9cm;
  109. }
  110. .razon_data{
  111. width: 11.7cm;
  112. float: left;
  113. padding-left: 3.8cm;
  114. min-height: 0.7cm;
  115. }
  116. .ruc_data{
  117. width: 5cm;
  118. float: right;
  119. padding-left: 2.35cm;
  120. min-height: 0.7cm;
  121. }
  122. .direccion_data{
  123. width: 13.5cm;
  124. float: left;
  125. padding-left:2.7cm;
  126. min-height: 0.8m;
  127. }
  128. .telefono_data{
  129. width: 3.5cm;
  130. float: right;
  131. padding-left: 0.1mm;
  132. min-height: 0.8;
  133. }
  134. .nota_remision_data{
  135. width: 13cm;
  136. float: left;
  137. padding-left: 2.8cm;
  138. min-height: 0cm;
  139. }
  140. .dias_credito{
  141. width: 5cm;
  142. float: left;
  143. padding-left: 0.8cm;
  144. min-height: 0cm;
  145. }
  146. .cab-articulos{
  147. height: 1.85cm;
  148. clear: both;
  149. }
  150. .divisoria1{
  151. height: 6.6cm;
  152. width: 100%;
  153. top: 0px;
  154. }
  155. .cab-articulos2{
  156. height: 0.2cm;
  157. clear: both;
  158. }
  159. .borderless td, .borderless th {
  160. border: none !important;
  161. }
  162. .table-condensed>tbody>tr>td {
  163. padding: 1px !important;
  164. }
  165. .table-super-condensed>tbody>tr>td {
  166. padding: 5px !important;
  167. }
  168. .table-condensed2>tbody>tr>td {
  169. padding: 2.5px !important;
  170. }
  171. .table-condensed3>tbody>tr>td {
  172. padding: 0.5px !important;
  173. }
  174. </style>
  175. <t t-foreach="docs" t-as="o">
  176. <div class="pagina">
  177. <div class="logo"> </div>
  178. <table class="tab-articulos2">
  179. <td class="art-col11"> </td>
  180. <td class="art-col13">
  181. <span t-field="o.date_invoice" t-field-options='{"format": "dd"}'/>
  182. </td>
  183. <td class="art-col14">
  184. <span t-field="o.date_invoice" t-field-options='{"format": "MMMM"}'/>
  185. </td>
  186. <td class="art-col12">
  187. <span t-field="o.date_invoice" t-field-options='{"format": "yy"}'/>
  188. </td>
  189. <td class="art-col15">
  190. </td>
  191. <td class="art-col16">
  192. <div class="contado_x">
  193. <t t-if="o.contado == True">x</t>
  194. </div>
  195. </td>
  196. <td class="art-col17">
  197. <div class="credito_x">
  198. <t t-if="o.credito == True">x</t>
  199. </div>
  200. </td>
  201. </table>
  202. <tr>
  203. <div class="razon_data"><span t-field="o.partner_id.name"/></div>
  204. <div class="ruc_data"><span t-field="o.partner_id.ruc"/></div>
  205. </tr>
  206. <tr>
  207. <div class="direccion_data">
  208. <t t-f="o.partner_id.street"><span t-field="o.partner_id.street"/> </t>
  209. <t t-f="not o.partner_id.street"> </t>
  210. </div>
  211. </tr>
  212. <tr>
  213. <div class="nota_remision_data"></div>
  214. <div class="dias_credito"></div>
  215. </tr>
  216. <div class="cab-articulos"> </div>
  217. <div style="height:8.1cm; padding-right:0.9cm;">
  218. <div style="font-family: Calibri;">
  219. <table class="table borderless table-condensed">
  220. <t t-set="valor_exentas" t-value="0"/>
  221. <t t-set="valor_5" t-value="0"/>
  222. <t t-set="valor_10" t-value="0"/>
  223. <tbody>
  224. <tr t-foreach="o.invoice_line" t-as="l">
  225. <!-- CANTIDAD -->
  226. <td style="font-size: 3.2mm;font-family: Calibri;width:0.5cm;overflow: auto; text-align: left;">
  227. <span t-esc="'%.0f'%l.quantity"/>
  228. </td>
  229. <!-- CODIGO DE PRODUCTO -->
  230. <td style="font-size: 3.2mm;font-family: Calibri;width:1.02cm;text-align: left;">
  231. <span t-field="l.product_id.default_code"/>
  232. </td>
  233. <!-- NOMBRE DEL PRODUCTO -->
  234. <td style="font-size: 3.4mm;font-family: Calibri;width:2.97cm;text-align: left;padding-left: 0.3cm;">
  235. <span t-field="l.product_id.name"/>
  236. </td>
  237. <!-- PRECIO UNITARIO -->
  238. <td style="font-size: 3.2mm;font-family: Calibri;width:0.15cm;overflow: auto; text-align: right;">
  239. <t t-if="o.currency_id.id == 166">
  240. <span t-esc="'{0:,.0f}'.format(l.price_unit)"/>
  241. </t>
  242. <t t-if="o.currency_id.id != 166">
  243. <span t-esc="'{0:,.2f}'.format(l.price_unit)"/>
  244. </t>
  245. </td>
  246. <!-- EXENTAS -->
  247. <td style="font-size:9.2px;font-family: Calibri;width:1.0cm;overflow: auto; text-align: right;">
  248. <span t-if="'IVA 5% Venta' not in [ilt.name for ilt in l.invoice_line_tax_id] and 'IVA 10% Venta' not in [ilt.name for ilt in l.invoice_line_tax_id]">
  249. <t t-if="o.currency_id.id == 166">
  250. <span t-esc="'{0:,.0f}'.format(l.quantity * l.price_unit)"/>
  251. </t>
  252. <t t-if="o.currency_id.id != 166">
  253. <span t-esc="'{0:,.2f}'.format(l.quantity * l.price_unit)"/>
  254. </t>
  255. <t t-set="valor_exentas" t-value="valor_exentas+(l.quantity * l.price_unit)"/>
  256. </span>
  257. </td>
  258. <!-- IVA 5% -->
  259. <td style="font-size: 3.2mm;font-family: Calibri;width:1.0cm;overflow: auto; text-align: right;">
  260. <span t-if="'IVA 5% Venta' in [ilt.name for ilt in l.invoice_line_tax_id] and 'IVA 10% Venta' not in [ilt.name for ilt in l.invoice_line_tax_id]">
  261. <t t-if="o.currency_id.id == 166">
  262. <span t-esc="'{0:,.0f}'.format(l.quantity * l.price_unit)"/>
  263. </t>
  264. <t t-if="o.currency_id.id != 166">
  265. <span t-esc="'{0:,.2f}'.format(l.quantity * l.price_unit)"/>
  266. </t>
  267. <t t-set="valor_5" t-value="valor_5+(l.quantity * l.price_unit)"/>
  268. </span>
  269. </td>
  270. <!-- IVA 10% -->
  271. <td style="font-size: 3.2mm;font-family: Calibri;width:0.8cm;overflow: auto; text-align: right;padding-right: 0.2cm;">
  272. <span t-if="'IVA 10% Venta' in [ilt.name for ilt in l.invoice_line_tax_id]">
  273. <t t-if="o.currency_id.id == 166">
  274. <span t-esc="'{0:,.0f}'.format(l.quantity * l.price_unit)"/>
  275. </t>
  276. <t t-if="o.currency_id.id != 166">
  277. <span t-esc="'{0:,.2f}'.format(l.quantity * l.price_unit)"/>
  278. </t>
  279. <t t-set="valor_10" t-value="valor_10+(l.quantity * l.price_unit)"/>
  280. </span>
  281. </td>
  282. </tr>
  283. </tbody>
  284. </table>
  285. </div>
  286. </div>
  287. <div style="height:0.5cm;padding-left:1.7cm;padding-right:0.9cm;">
  288. <t t-set="total_exentas" t-value="0"/>
  289. <t t-set="total_5" t-value="0"/>
  290. <t t-set="total_10" t-value="0"/>
  291. <t t-set="iva_5" t-value="0"/>
  292. <t t-set="iva_10" t-value="0"/>
  293. <t t-set="iva_exentas" t-value="0"/>
  294. <table class="table borderless table-condensed3">
  295. <tbody>
  296. <tr>
  297. <td style="font-size:10px;font-family: Calibri;width:0.3cm;overflow: auto; text-align: center;min-height: 0.9;"></td>
  298. <td style="font-size:10px;font-family: Calibri;width:0.3cm;overflow: auto; text-align: left;min-height: 0.9;"></td>
  299. <td style="font-size:10px;font-family: Calibri;width:2.80cm;overflow: auto; text-align: center;min-height: 0.9;"></td>
  300. <td style="font-size:10px;font-family: Calibri;width:1.7cm;overflow: auto; text-align: center;min-height: 0.9;"></td>
  301. <td style="font-size: 3.2mm;font-family: Calibri;width:0.5cm;overflow: auto; text-align: center;min-height: 0.9;">
  302. <t t-if="o.currency_id.id == 166">
  303. <span t-esc="'{0:,.0f}'.format(valor_exentas)"/>
  304. </t>
  305. <t t-if="o.currency_id.id != 166">
  306. <span t-esc="'{0:,.2f}'.format(valor_exentas)"/>
  307. </t>
  308. <t t-set="iva_exentas" t-value="valor_exentas"/>
  309. </td>
  310. <td style="font-size: 3.2mm;font-family: Calibri;width:0.5cm;overflow: auto; text-align: right;min-height: 0.9;">
  311. <t t-if="o.currency_id.id == 166">
  312. <span t-esc="'{0:,.0f}'.format(valor_5)"/>
  313. </t>
  314. <t t-if="o.currency_id.id != 166">
  315. <span t-esc="'{0:,.2f}'.format(valor_5)"/>
  316. </t>
  317. <t t-set="iva_5" t-value="valor_5/21" />
  318. </td>
  319. <td style="font-size: 3.2mm;font-family: Calibri;width:1.4cm;overflow: auto; text-align: right;min-height: 0.9;">
  320. <t t-if="o.currency_id.id == 166">
  321. <span t-esc="'{0:,.0f}'.format(valor_10)"/>
  322. </t>
  323. <t t-if="o.currency_id.id != 166">
  324. <span t-esc="'{0:,.2f}'.format(valor_10)"/>
  325. </t>
  326. <t t-set="iva_10" t-value="(valor_10)/11" />
  327. </td>
  328. </tr>
  329. </tbody>
  330. </table>
  331. </div>
  332. <div style="height:0.9cm;padding-top:-0.4cm; padding-right:0.9cm;">
  333. <table class="table borderless table-condensed3">
  334. <tbody>
  335. <!-- LINEA TOTAL EN LETRAS Y TOTAL GENERAL -->
  336. <td style="font-size:10px;font-family: Calibri;width:2.0cm;overflow: auto; text-align: center;"></td>
  337. <!-- <td style="padding-top:1.2cm;font-size:10px;font-family: Calibri;width:0.3cm;overflow: auto; text-align: center;"></td> -->
  338. <td style="font-size: 2.8mm;padding-left: 2.8cm;font-family: Calibri;width:13.0cm;overflow: auto; text-align: left;">
  339. <t t-if="o.currency_id.id == 166">
  340. <div>Gs <span t-esc="convertir('%.0f'%o.amount_total,o.currency_id.en_letras)"/></div>
  341. </t>
  342. <t t-if="o.currency_id.id != 166">
  343. <div>Dólares <span t-esc="convertir('%.2f'%o.amount_total,o.currency_id.en_letras)"/></div>
  344. </t>
  345. </td>
  346. <!-- <td style="padding-top:1.2cm;font-size:10px;font-family: Calibri;width:0.5cm;overflow: auto; text-align: center;"></td>
  347. <td style="padding-top:1.2cm;font-size:10px;font-family: Calibri;width:0.5cm;overflow: auto; text-align: right;"></td>
  348. <td style="padding-top:1.2cm;font-size:10px;font-family: Calibri;width:0.7cm;overflow: auto; text-align: right;">
  349. </td> -->
  350. <td style="font-size: 3.2mm;font-family: Calibri;width:1.8cm;overflow: auto; text-align: right;">
  351. <t t-if="o.currency_id.id == 166">
  352. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  353. </t>
  354. <t t-if="o.currency_id.id != 166">
  355. <span t-esc="'{0:,.2f}'.format(o.amount_total)"/>
  356. </t>
  357. </td>
  358. </tbody>
  359. </table>
  360. </div>
  361. <div style="height:0.9cm;padding-top:-0.3cm;">
  362. <table class="table borderless table-condensed3">
  363. <tbody>
  364. <td style="font-size:2.9mm;font-family: Calibri;width:2.2cm;overflow: auto; text-align: center;"></td>
  365. <td style="font-size:3.1mm;font-family: Calibri;width:2.5cm;overflow: auto; text-align: center;">
  366. <t t-if="o.currency_id.id == 166">
  367. <div>
  368. <t t-if="iva_5 != 0">
  369. <span t-esc="'{0:,.0f}'.format(iva_5)"/>
  370. </t>
  371. </div>
  372. </t>
  373. <t t-if="o.currency_id.id != 166">
  374. <div>
  375. <t t-if="iva_5 != 0">
  376. <span t-esc="'{0:,.0f}'.format(iva_5)"/>
  377. </t>
  378. </div>
  379. </t>
  380. </td>
  381. <td style="font-size:3mm;font-family: Calibri;width:6cm;overflow: auto; text-align: right;">
  382. </td>
  383. <td style="font-size:3.1mm;font-family: Calibri;width:2cm;overflow: auto; text-align: left;">
  384. <t t-if="o.currency_id.id == 166">
  385. <div>
  386. <t t-if="iva_10 != 0">
  387. <span t-esc="'{0:,.0f}'.format(iva_10)"/>
  388. </t>
  389. </div>
  390. </t>
  391. <t t-if="o.currency_id.id != 166">
  392. <div>
  393. <t t-if="iva_10 != 0">
  394. <!-- &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  395. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  396. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  397. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  398. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  399. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  400. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  401. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  402. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  403. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  404. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -->
  405. <span t-esc="'{0:,.0f}'.format(iva_10)"/>
  406. </t>
  407. </div>
  408. </t>
  409. </td>
  410. <td style="font-size:10px;font-family: Calibri;width:2.0cm;overflow: auto; text-align: right;">
  411. </td>
  412. <td style="font-size:3.1mm;font-family: Calibri;width:2.5cm;overflow: auto; text-align: center;">
  413. <t t-if="o.currency_id.id == 166">
  414. <span t-esc="'{0:,.0f}'.format(iva_5+iva_10)"/>
  415. </t>
  416. <t t-if="o.currency_id.id != 166">
  417. <span t-esc="'{0:,.0f}'.format(iva_5+iva_10)"/>
  418. </t>
  419. </td>
  420. <td style="font-size:10px;font-family: Calibri;width:2.3cm;overflow: auto; text-align: right;">
  421. </td>
  422. </tbody>
  423. </table>
  424. </div>
  425. <div class="logo1"> </div>
  426. </div>
  427. </t>
  428. </div>
  429. </t>
  430. </t>
  431. </template>
  432. </data>
  433. </openerp>