presupuesto_venta_imperio.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="presupuesto_venta_imperio"
  5. model="sale.order"
  6. string="Factura Legal"
  7. report_type="qweb-html"
  8. name="presupuesto_venta_imperio.report_presupuesto_imperio"
  9. file="presupuesto_venta_imperio.report_presupuesto_imperio"
  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_presupuesto_imperio">
  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.04cm;
  41. width: 100%;
  42. top: 0px;
  43. }
  44. .fecha_emision_data{
  45. width: 8.4cm;
  46. font-size: 2.4mm;
  47. padding-left: 5.50cm;
  48. float: left;
  49. min-height: 0.6cm;
  50. }
  51. .contado_x{
  52. width: 4.5cm;
  53. float: left;
  54. font-size: 2.2mm;
  55. padding-left: 0.1mm;
  56. min-height: 0.6cm;
  57. }
  58. .linea2{
  59. position: relative;
  60. top: -0.12cm;
  61. min-height: 0.4cm;
  62. }
  63. .razon_data{
  64. width: 14.5cm;
  65. float: left;
  66. font-size: 2.25mm;
  67. padding-left: 6.0cm;
  68. min-height: 0.6cm;
  69. }
  70. .linea3{
  71. position: relative;
  72. top: -0.12cm;
  73. min-height: 0.4cm;
  74. }
  75. .direccion_data{
  76. width: 11.0cm;
  77. font-size: 2.2mm;
  78. font-family: Arial, Helvetica, sans-serif;
  79. float: left;
  80. padding-left: 6.8cm;
  81. min-height: 0.6cm;
  82. }
  83. .telefono_data{
  84. width: 7.8cm;
  85. font-size: 2.2mm;
  86. font-family: Arial, Helvetica, sans-serif;
  87. float: right;
  88. padding-left: 0.8cm;
  89. min-height: 0.6cm;
  90. }
  91. .linea4{
  92. position: relative;
  93. top: -0.12cm;
  94. min-height: 0.4cm;
  95. }
  96. .ruc_data{
  97. width: 7.8cm;
  98. font-size: 2.3mm;
  99. font-family: Arial, Helvetica, sans-serif;
  100. float: left;
  101. padding-left: 5.5cm;
  102. min-height: 0.6cm;
  103. }
  104. .nota_remision_data{
  105. width: 7.3cm;
  106. float: left;
  107. padding-left: 2.5cm;
  108. min-height: 0.6cm;
  109. }
  110. .cab-articulos{
  111. height: 0.41cm;
  112. clear: both;
  113. }
  114. .articulos{
  115. height: 3.63cm;
  116. }
  117. .art-col1{
  118. width:1.0cm;
  119. font-size: 2.0mm;
  120. text-align: left;
  121. }
  122. .art-col2{
  123. padding-left: 0.6cm;
  124. width:1cm;
  125. text-align: center;
  126. }
  127. .art-col3{
  128. padding-left: 1.0cm;
  129. width:8.5cm;
  130. }
  131. .art-col4{
  132. width:1.8cm;
  133. text-align: right;
  134. }
  135. .art-col5{
  136. width:2.4cm;
  137. text-align: right;
  138. }
  139. .art-col6{
  140. width:2.5cm;
  141. text-align: right;
  142. }
  143. .art-col7{
  144. width:1.9cm;
  145. text-align: right;
  146. }
  147. .logo1{
  148. height: 4.29cm;
  149. width: 100%;
  150. top: 0px;
  151. }
  152. .logo2{
  153. height: 4.28cm;
  154. width: 100%;
  155. top: 0px;
  156. }
  157. .subtotal_data{
  158. width: 6cm;
  159. float: left;
  160. padding-top: 0.002cm;
  161. padding-left: 2.3cm;
  162. min-height: 0.2cm;
  163. }
  164. .subtotal_excentas{
  165. width: 1.8cm;
  166. float: left;
  167. text-align: right;
  168. padding-left: 10cm;
  169. padding-top: 0.7cm;
  170. min-height: 0.2cm;
  171. }
  172. .subtotal_5{
  173. width: 1cm;
  174. float: left;
  175. padding-left: 1cm;
  176. text-align: right;
  177. padding-top: 0.7cm;
  178. min-height: 0.2cm;
  179. }
  180. .subtotal_10{
  181. width: 2.3cm;
  182. float: left;
  183. padding-left: 0.8cm;
  184. text-align: left;
  185. padding-top: 0.7cm;
  186. min-height: 0.2cm;
  187. }
  188. .total_pagar_data{
  189. width: 16.4cm;
  190. float: left;
  191. padding-top: 0.01mm;
  192. padding-left: 4.8cm;
  193. min-height: 0.5cm;
  194. }
  195. .total_pagar{
  196. width: 2.3cm;
  197. float: right;
  198. padding-top: 0.01mm;
  199. padding-left: 0.8cm;
  200. min-height: 0.5cm;
  201. }
  202. .iva_5_data{
  203. width: 5cm;
  204. float: left;
  205. padding-top: 0.04mm;
  206. padding-left: 4.7cm;
  207. min-height: 0.25cm;
  208. }
  209. .iva_10_data{
  210. width: 5.2cm;
  211. float: left;
  212. padding-left: 3.4cm;
  213. padding-top: 0.04mm;
  214. min-height: 0.25cm;
  215. }
  216. .iva_total_data{
  217. width: 6.6cm;
  218. float: left;
  219. padding-left: 3.8cm;
  220. padding-top: 0.04mm;
  221. min-height: 0.25cm;
  222. }
  223. </style>
  224. <t t-foreach="docs" t-as="o">
  225. <div class="pagina">
  226. <div class="logo"> </div>
  227. <div class="linea1">
  228. <div class="fecha_emision_data"><span t-field="o.date_order" t-field-options='{"format": "dd MMM yyyy"}'/></div>
  229. <div class="contado_x">
  230. <t t-if="o.contado == True">Contado</t>
  231. </div>
  232. <div class="contado_x">
  233. <t t-if="o.credito == True">Crédito</t>
  234. </div>
  235. </div>
  236. <div class="linea2">
  237. <div class="razon_data"><span t-field="o.partner_id.name"/></div>
  238. </div>
  239. <div class="linea3">
  240. <div class="direccion_data">
  241. <t t-f="o.partner_id.street"><span t-field="o.partner_id.street"/></t>
  242. <t t-f="not o.partner_id.street"> </t>
  243. </div>
  244. <div class="telefono_data"><span t-field="o.partner_id.phone"/></div>
  245. </div>
  246. <div class="linea4">
  247. <div class="ruc_data"><span t-field="o.partner_id.ruc"/></div>
  248. <div class="nota_remision_data"> </div>
  249. </div>
  250. <div class="linea5">
  251. </div>
  252. <div class="cab-articulos"> </div>
  253. <div class="articulos">
  254. <table class="tab-articulos">
  255. <tr t-foreach="o.order_line" t-as="l">
  256. <td class="art-col1"><span t-field="l.product_id.default_code"/></td>
  257. <td class="art-col2"><span t-esc="'%.0f'%l.product_uom_qty"/></td>
  258. <td class="art-col3"><span t-field="l.product_id.name"/></td>
  259. <td class="art-col4"><span t-esc="'{0:,.0f}'.format(l.price_unit)"/></td>
  260. <td class="art-col5"> </td>
  261. <td class="art-col6"> </td>
  262. <td class="art-col7"><span t-esc="'{0:,.0f}'.format((l.product_uom_qty * l.price_unit))"/></td>
  263. </tr>
  264. </table>
  265. </div>
  266. <div class="subtotal_data"> </div>
  267. <div class="subtotal_excentas"> </div>
  268. <div class="subtotal_5"> </div>
  269. <td style="font-size:7.0px;">
  270. <div class="subtotal_10"><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></div>
  271. </td>
  272. <div class="total_pagar_data">Gs.: <span t-esc="convertir(o.amount_total,o.currency_id.en_letras1)"/></div>
  273. <div class="total_pagar"><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></div>
  274. <div class="iva_5_data"> </div>
  275. <div class="iva_10_data"><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></div>
  276. <div class="iva_total_data"><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></div>
  277. </div>
  278. <t t-if="i == 1">
  279. <div class="logo1"> </div>
  280. </t>
  281. <t t-if="i == 2">
  282. <div class="logo2"> </div>
  283. </t>
  284. </t>
  285. </div>
  286. </t>
  287. </t>
  288. </t>
  289. </template>
  290. </data>
  291. </openerp>