factura_venta_profesional1.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="factura_venta_profesional"
  5. model="account.invoice"
  6. string="Factura Legal"
  7. report_type="qweb-html"
  8. name="factura_venta_profesional.report_factura_profesional"
  9. file="factura_venta_profesional.report_factura_profesional"
  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_profesional">
  24. <t t-call="report.html_container">
  25. <t t-call="report.external_layout">
  26. <t t-foreach="[1,2]" t-as="i">
  27. <div class="page">
  28. <style type="text/css">
  29. body{
  30. font-size: 2.8mm;
  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.8cm;
  41. width: 100%;
  42. top: 0px;
  43. }
  44. .linea1{
  45. position: relative;
  46. top: -0.12cm;
  47. min-height: 0.4cm;
  48. }
  49. .fecha_emision_data{
  50. <!-- width: 13cm; -->
  51. width: 15cm;
  52. font-size: 2.8mm;
  53. <!-- padding-left: 2.80cm; -->
  54. float: left;
  55. min-height: 0.5cm;
  56. }
  57. .contado_x{
  58. <!-- width: 0.3cm; -->
  59. width: 7.3cm;
  60. float: left;
  61. font-size: 2.8mm;
  62. <!-- padding-left: 0.3mm; -->
  63. min-height: 0.5cm;
  64. }
  65. .credito_x{
  66. width: 0.3cm;
  67. float: right;
  68. font-size: 2.8mm;
  69. <!-- padding-left: 0.6mm; -->
  70. min-height: 0.5cm;
  71. }
  72. .linea2{
  73. position: relative;
  74. top: -0.12cm;
  75. min-height: 0.4cm;
  76. }
  77. .razon_data{
  78. width: 10.7cm;
  79. float: left;
  80. font-size: 2.6mm;
  81. <!-- padding-left: 3.1cm; -->
  82. min-height: 0.5cm;
  83. }
  84. .ruc_data{
  85. width: 6.5cm;
  86. font-size: 2.7mm;
  87. font-family: Arial;
  88. float: left;
  89. <!-- padding-left: 0.5cm; -->
  90. min-height: 0.5cm;
  91. }
  92. .linea3{
  93. position: relative;
  94. top: -0.12cm;
  95. min-height: 0.4cm;
  96. }
  97. .direccion_data{
  98. width: 12.5cm;
  99. font-size: 2.7mm;
  100. font-family: Arial;
  101. float: left;
  102. <!-- padding-left: 3.1cm; -->
  103. min-height: 0.4cm;
  104. }
  105. .telefono_data{
  106. width: 6.0cm;
  107. font-size: 2.7mm;
  108. font-family: Arial;
  109. float: right;
  110. <!-- padding-left: 0.5cm; -->
  111. min-height: 0.4cm;
  112. }
  113. .linea4{
  114. position: relative;
  115. top: -0.12cm;
  116. min-height: 0.4cm;
  117. }
  118. .obra{
  119. width: 15.3cm;
  120. float: left;
  121. <!-- padding-left: 2.5cm; -->
  122. min-height: 0.4cm;
  123. }
  124. .linea5{
  125. position: relative;
  126. top: -0.12cm;
  127. min-height: 0.4cm;
  128. }
  129. .local{
  130. width: 8.3cm;
  131. float: left;
  132. <!-- padding-left: 2.5cm; -->
  133. min-height: 0.4cm;
  134. }
  135. .responsable{
  136. width: 7.3cm;
  137. font-size: 2.6mm;
  138. font-family: Arial;
  139. float: right;
  140. <!-- padding-left: 1.1cm; -->
  141. min-height: 0.4cm;
  142. }
  143. .cab-articulos{
  144. height: 1.2cm;
  145. clear: both;
  146. }
  147. .articulos{
  148. height: 6.0cm;
  149. }
  150. .art-col2{
  151. padding-left: 0.2mm;
  152. width:1cm;
  153. text-align: left;
  154. }
  155. .art-col3{
  156. padding-left: 1.0cm;
  157. width:10.3cm;
  158. }
  159. .art-col4{
  160. width:1.8cm;
  161. text-align: right;
  162. }
  163. .art-col5{
  164. width:2.0cm;
  165. text-align: right;
  166. }
  167. .art-col6{
  168. width:2.0cm;
  169. text-align: right;
  170. }
  171. .art-col7{
  172. width:2.0cm;
  173. text-align: right;
  174. }
  175. .logo1{
  176. height: 3.98cm;
  177. width: 100%;
  178. top: 0px;
  179. }
  180. .logo2{
  181. height: 3.78cm;
  182. width: 100%;
  183. top: 0px;
  184. }
  185. .logo3{
  186. height: 2.69cm;
  187. width: 100%;
  188. top: 0px;
  189. }
  190. .subtotal_data{
  191. width: 6cm;
  192. float: left;
  193. padding-top: 0.002cm;
  194. padding-left: 2.3cm;
  195. min-height: 0.2cm;
  196. }
  197. .subtotal_excentas{
  198. width: 1.8cm;
  199. float: left;
  200. text-align: right;
  201. padding-left: 10cm;
  202. padding-top: 0.7cm;
  203. min-height: 0.2cm;
  204. }
  205. .subtotal_5{
  206. width: 1cm;
  207. float: left;
  208. padding-left: 1cm;
  209. text-align: right;
  210. padding-top: 0.7cm;
  211. min-height: 0.2cm;
  212. }
  213. .subtotal_10{
  214. width: 2.3cm;
  215. float: left;
  216. padding-left: 0.8cm;
  217. text-align: left;
  218. padding-top: 0.7cm;
  219. min-height: 0.2cm;
  220. }
  221. .total_pagar_data{
  222. width: 16.4cm;
  223. float: left;
  224. padding-top: 0.01mm;
  225. padding-left: 4.8cm;
  226. min-height: 0.5cm;
  227. }
  228. .total_pagar{
  229. width: 2.3cm;
  230. float: right;
  231. padding-top: 0.01mm;
  232. padding-left: 0.8cm;
  233. min-height: 0.5cm;
  234. }
  235. .iva_5_data{
  236. width: 5cm;
  237. float: left;
  238. padding-top: 0.04mm;
  239. padding-left: 4.7cm;
  240. min-height: 0.25cm;
  241. }
  242. .iva_10_data{
  243. width: 5.2cm;
  244. float: left;
  245. padding-left: 3.4cm;
  246. padding-top: 0.04mm;
  247. min-height: 0.25cm;
  248. }
  249. .iva_total_data{
  250. width: 6.6cm;
  251. float: left;
  252. padding-left: 3.8cm;
  253. padding-top: 0.04mm;
  254. min-height: 0.25cm;
  255. }
  256. </style>
  257. <t t-foreach="docs" t-as="o">
  258. <div class="pagina">
  259. <div class="logo"> </div>
  260. <div class="linea1">
  261. <div class="fecha_emision_data">FECHA:<span t-field="o.date_invoice" t-field-options='{"format": "dd MMM yyyy"}'/></div>
  262. <div class="contado_x">FORMA DE PAGO:
  263. <t t-if="o.contado == True">x</t>
  264. </div>
  265. <div class="credito_x">
  266. <t t-if="o.credito == True">x</t>
  267. </div>
  268. </div>
  269. <div class="linea2">
  270. <div class="razon_data">RAZÓN SOCIAL:<span t-field="o.partner_id.name"/></div>
  271. <!-- <div class="ruc_data">80078484-1</div> -->
  272. <div class="ruc_data">R.U.C. Nº:<span t-field="o.partner_id.ruc"/></div>
  273. </div>
  274. <div class="linea3">
  275. <div class="direccion_data">
  276. <t t-f="o.partner_id.street">DIRECCIÓN:<span t-field="o.partner_id.street"/></t>
  277. <t t-f="not o.partner_id.street"> </t>
  278. </div>
  279. <div class="telefono_data">TELEFONO:<span t-field="o.partner_id.phone"/></div>
  280. </div>
  281. <div class="linea4">
  282. <div class="obra">OBRA:<span t-field="o.obra"/></div>
  283. </div>
  284. <div class="linea5">
  285. <div class="local">LOCAL:<span t-field="o.pedido_por"/></div>
  286. <!-- <div class="responsable">responsableresponsable</div> -->
  287. </div>
  288. <div class="cab-articulos"> </div>
  289. <div class="articulos">
  290. <table class="tab-articulos">
  291. <tr t-foreach="o.invoice_line" t-as="l">
  292. <td class="art-col2"><span t-esc="'%.0f'%l.quantity"/></td>
  293. <td class="art-col3"><span t-field="l.product_id.name"/></td>
  294. <td class="art-col4"><span t-esc="'{0:,.0f}'.format(l.price_unit)"/></td>
  295. <td class="art-col5"> </td>
  296. <td class="art-col6"> </td>
  297. <td class="art-col7"><span t-esc="'{0:,.0f}'.format((l.quantity * l.price_unit))"/></td>
  298. </tr>
  299. </table>
  300. </div>
  301. <div class="subtotal_data"> </div>
  302. <div class="subtotal_excentas"> </div>
  303. <div class="subtotal_5"> </div>
  304. <td style="font-size:7.0px;">
  305. <div class="subtotal_10"><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></div>
  306. </td>
  307. <div class="total_pagar_data">Gs.: <span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/></div>
  308. <div class="total_pagar"><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></div>
  309. <div class="iva_5_data"> </div>
  310. <div class="iva_10_data"><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></div>
  311. <div class="iva_total_data"><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></div>
  312. </div>
  313. <t t-if="i == 1">
  314. <div class="logo1"> </div>
  315. </t>
  316. <t t-if="i == 2">
  317. <div class="logo2"> </div>
  318. </t>
  319. </t>
  320. </div>
  321. </t>
  322. </t>
  323. </t>
  324. </template>
  325. </data>
  326. </openerp>