factura_venta_golden.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="factura_venta_golden"
  5. model="account.invoice"
  6. string="Factura Legal"
  7. report_type="qweb-html"
  8. name="factura_venta_golden.report_factura_golden"
  9. file="factura_venta_golden.report_factura_golden"
  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_golden">
  24. <t t-call="report.html_container">
  25. <t t-call="report.external_layout">
  26. <div class="page">
  27. <style type="text/css">
  28. body{
  29. font-size: 2.3mm;
  30. font-family: Arial, Helvetica, sans-serif;
  31. }
  32. div{
  33. padding: 0px;
  34. }
  35. .pagina{
  36. width:19.3cm;
  37. }
  38. .logo{
  39. height: 2.18cm;
  40. width: 100%;
  41. top: 0px;
  42. }
  43. .fecha_emision_data{
  44. width: 11.5cm;
  45. padding-left: 2.5cm;
  46. float: left;
  47. min-height: 0.3cm;
  48. }
  49. .contado_x{
  50. width: 4cm;
  51. float: left;
  52. padding-left: 4cm;
  53. min-height: 0.3cm;
  54. }
  55. .credito_x{
  56. width: 1.8cm;
  57. float: left;
  58. padding-left: 1.7cm;
  59. min-height: 0.3cm;
  60. }
  61. .linea2{
  62. position: relative;
  63. top: -0.12cm;
  64. min-height: 0.3cm;
  65. }
  66. .razon_data{
  67. width: 11.5cm;
  68. float: left;
  69. padding-left: 3.3cm;
  70. min-height: 0.3cm;
  71. }
  72. .ruc_data{
  73. width: 6.8cm;
  74. float: left;
  75. padding-left: 0.8cm;
  76. min-height: 0.3cm;
  77. }
  78. .linea3{
  79. position: relative;
  80. top: -0.24cm;
  81. min-height: 0.3cm;
  82. }
  83. .direccion_data{
  84. width: 11.5cm;
  85. float: left;
  86. padding-left: 1.5cm;
  87. min-height: 0.3cm;
  88. }
  89. .ciudad_data{
  90. width: 7cm;
  91. float: left;
  92. padding-left: 1.3cm;
  93. min-height: 0.3cm;
  94. }
  95. .linea4{
  96. position: relative;
  97. top: -0.36cm;
  98. min-height: 0.3cm;
  99. }
  100. .telefono_data{
  101. width: 6.7cm;
  102. float: left;
  103. padding-left: 1.5cm;
  104. min-height: 0.3cm;
  105. }
  106. .fecha_data{
  107. width: 4.8cm;
  108. float: left;
  109. padding-left: 1.3cm;
  110. min-height: 0.3cm;
  111. }
  112. .nota_remision_data{
  113. width: 6.8cm;
  114. float: left;
  115. padding-left: 2.8cm;
  116. min-height: 0.3cm;
  117. }
  118. .cab-articulos{
  119. height: 0.2cm;
  120. clear: both;
  121. }
  122. .articulos{
  123. height: 5.8cm;
  124. }
  125. .art-col1{
  126. width:1.4cm;
  127. text-align: center;
  128. }
  129. .art-col2{
  130. width:1.4cm;
  131. text-align: center;
  132. }
  133. .art-col3{
  134. width:8cm;
  135. }
  136. .art-col4{
  137. width:1.6cm;
  138. text-align: right;
  139. }
  140. .art-col5{
  141. width:1.6cm;
  142. text-align: right;
  143. }
  144. .art-col6{
  145. width:1.6cm;
  146. text-align: right;
  147. }
  148. .art-col7{
  149. width:1.6cm;
  150. text-align: right;
  151. }
  152. .subtotal_data{
  153. width: 11.2cm;
  154. float: left;
  155. padding-top: 3px;
  156. padding-bottom: 3px;
  157. padding-left: 2.3cm;
  158. min-height: 0.3cm;
  159. }
  160. .subtotal_excentas{
  161. width: 2cm;
  162. float: left;
  163. text-align: right;
  164. padding-top: 3px;
  165. padding-bottom: 3px;
  166. min-height: 0.3cm;
  167. }
  168. .subtotal_5{
  169. width: 2cm;
  170. float: left;
  171. text-align: right;
  172. padding-top: 3px;
  173. padding-bottom: 3px;
  174. min-height: 0.3cm;
  175. }
  176. .subtotal_10{
  177. width: 2cm;
  178. float: left;
  179. text-align: right;
  180. padding-top: 3px;
  181. padding-bottom: 3px;
  182. min-height: 0.3cm;
  183. }
  184. .total_pagar_data{
  185. width: 15cm;
  186. float: left;
  187. padding-top: 3px;
  188. padding-bottom: 3px;
  189. padding-left: 6.2cm;
  190. min-height: 0.3cm;
  191. }
  192. .total_pagar{
  193. width: 2.2cm;
  194. float: left;
  195. padding-left: 0cm;
  196. text-align: right;
  197. padding-top: 0.01mm;
  198. min-height: 0.2cm;
  199. }
  200. .lineaaux{
  201. height: 0.4cm;
  202. clear: both;
  203. }
  204. .iva_5_data{
  205. width: 4.9cm;
  206. float: left;
  207. padding-top: 3px;
  208. padding-left: 32.2cm;
  209. padding-bottom: 3px;
  210. padding-left: 3.2cm;
  211. min-height: 0.3cm;
  212. }
  213. .iva_10_data{
  214. width: 6.2cm;
  215. float: left;
  216. padding-top: 3px;
  217. padding-bottom: 3px;
  218. padding-left: 1cm;
  219. min-height: 0.3cm;
  220. }
  221. .iva_total_data{
  222. width: 6.9cm;
  223. float: left;
  224. padding-top: 3px;
  225. padding-bottom: 3px;
  226. padding-left: 1.8cm;
  227. min-height: 0.3cm;
  228. }
  229. </style>
  230. <t t-foreach="docs" t-as="o">
  231. <div class="pagina">
  232. <div class="logo"> </div>
  233. <div class="linea1">
  234. <div class="fecha_emision_data">Ciudad del Este,<span t-field="o.date_invoice" t-field-options='{"format": "dd MMMM yyyy"}'/></div>
  235. <div class="contado_x">
  236. <t t-if="o.contado == True">X</t>
  237. <t t-if="o.contado == False"></t>
  238. </div>
  239. <div class="credito_x">
  240. <t t-if="o.credito == True">X</t>
  241. <t t-if="o.credito == False"></t>
  242. </div>
  243. </div>
  244. <div class="linea2">
  245. <div class="razon_data"><span t-field="o.partner_id.name"/></div>
  246. <div class="ruc_data"><span t-field="o.partner_id.ruc"/></div>
  247. </div>
  248. <div class="linea3">
  249. <div class="direccion_data">
  250. <t t-f="o.partner_id.street"><span t-field="o.partner_id.street"/> <span t-field="o.partner_id.street2"/></t>
  251. <t t-f="not o.partner_id.street"> </t>
  252. </div>
  253. <div class="ciudad_data">
  254. <t t-if="o.partner_id.city"><span t-field="o.partner_id.city"/></t>
  255. <t t-if="not o.partner_id.city"> </t>
  256. </div>
  257. </div>
  258. <div class="linea4">
  259. <div class="telefono_data"><span t-field="o.partner_id.phone"/></div>
  260. <div class="fecha_data"> </div>
  261. <div class="nota_remision_data"> </div>
  262. </div>
  263. <div class="cab-articulos"> </div>
  264. <div class="articulos">
  265. <table class="tab-articulos">
  266. <t t-set="valor_exentas" t-value="0"/>
  267. <t t-set="valor_5" t-value="0"/>
  268. <t t-set="valor_10" t-value="0"/>
  269. <tr t-foreach="o.invoice_line" t-as="l">
  270. <td class="art-col1"><span t-field="l.product_id.id"/></td>
  271. <td class="art-col2"><span t-field="l.quantity"/></td>
  272. <td class="art-col3"><span t-field="l.name"/></td>
  273. <td class="art-col4"><span t-field="l.price_unit"/></td>
  274. <td class="art-col5">
  275. <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]">
  276. <span t-esc="l.quantity * l.price_unit">
  277. <span t-value="valor_exentas+(l.quantity * l.price_unit)"/></span>
  278. <t t-set="valor_exentas" t-value="valor_exentas+(l.quantity * l.price_unit)"/>
  279. </span>
  280. </td>
  281. <td class="art-col6">
  282. <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]">
  283. <span t-esc="l.quantity * l.price_unit">
  284. <span t-value="valor_5+(l.quantity * l.price_unit)"/></span>
  285. <t t-set="valor_5" t-value="valor_5+(l.quantity * l.price_unit)"/>
  286. </span>
  287. </td>
  288. <td class="art-col7">
  289. <span t-if="'IVA 10% Venta' in [ilt.name for ilt in l.invoice_line_tax_id]">
  290. <span t-esc="l.quantity * l.price_unit" >
  291. <span t-value="valor_10+(l.quantity * l.price_unit)"/></span>
  292. <t t-set="valor_10" t-value="valor_10+(l.quantity * l.price_unit)"/>
  293. </span>
  294. </td>
  295. </tr>
  296. </table>
  297. </div>
  298. <t t-set="iva_5" t-value="0"/>
  299. <t t-set="iva_10" t-value="0"/>
  300. <t t-set="iva_exentas" t-value="0"/>
  301. <div class="subtotal_data"> </div>
  302. <div class="subtotal_excentas">
  303. <span t-esc="valor_exentas"></span>
  304. <t t-set="iva_exentas" t-value="valor_exentas"/>
  305. </div>
  306. <div class="subtotal_5">
  307. <span t-esc="valor_5"></span>
  308. <t t-set="iva_5" t-value="valor_5/21" />
  309. </div>
  310. <div class="subtotal_10">
  311. <span t-esc="valor_10"></span>
  312. <t t-set="iva_10" t-value="valor_10/11" />
  313. </div>
  314. <p t-if="o.currency_id.id == 166 ">
  315. <div class="total_pagar_data">Guaraníes: <span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/></div>
  316. <!-- <div class="total_pagar_data">Guaraníes: <span t-esc="o.amount_total"/></div> -->
  317. </p>
  318. <p t-if="o.currency_id.id == 3 ">
  319. <div class="total_pagar_data">Dolares Americanos: <span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/></div>
  320. <!-- <div class="total_pagar_data">Dolares Americanos: <span t-esc="o.amount_total"/></div> -->
  321. </p>
  322. <div class="total_pagar"><span t-esc="o.amount_total"/></div>
  323. <div class="lineaaux"> </div>
  324. <div class="iva_5_data"><span t-esc="'%.2f'%iva_5"></span></div>
  325. <div class="iva_10_data"><span t-esc="'%.2f'%iva_10"></span></div>
  326. <div class="iva_total_data"><span t-esc="'%.2f'%o.amount_tax"/></div>
  327. </div>
  328. </t>
  329. </div>
  330. </t>
  331. </t>
  332. </template>
  333. </data>
  334. </openerp>