factura_venta_union.xml 27 KB

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