factura_venta_bioelectric.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="factura_venta_bioelectric"
  5. model="account.invoice"
  6. string="Factura Legal"
  7. report_type="qweb-html"
  8. name="factura_comun_bioelectric.report_facturaventa_bioelectric"
  9. file="factura_comun_bioelectric.report_facturaventa_bioelectric"
  10. />
  11. <template id="report_facturaventa_bioelectric">
  12. <t t-call="report.html_container">
  13. <!-- <t t-call="report.external_layout"> -->
  14. <t t-foreach="[1,2]" t-as="i">
  15. <div class="page">
  16. <style type="text/css">
  17. body{
  18. font-size: 3mm;
  19. font-family: Arial;
  20. }
  21. div{
  22. padding: 0px;
  23. }
  24. .pagina{
  25. width:19.3cm;
  26. }
  27. .descripcion1{
  28. width: 11.2cm;
  29. font-size: 13px;
  30. padding-top: 0.2cm;
  31. float: left;
  32. min-height: 0cm;
  33. }
  34. .descripcion2{
  35. width: 13cm;
  36. font-size: 10px;
  37. float: left;
  38. min-height: 0cm;
  39. }
  40. .descripcion3{
  41. width: 15cm;
  42. font-size: 10px;
  43. float: left;
  44. min-height: 0cm;
  45. }
  46. .descripcion4{
  47. width: 15cm;
  48. font-size: 10px;
  49. float: left;
  50. min-height: 0cm;
  51. }
  52. .email{
  53. width: 13cm;
  54. font-size: 10px;
  55. float: left;
  56. min-height: 0cm;
  57. }
  58. .ciudad{
  59. width: 13cm;
  60. float: left;
  61. font-size: 10px;
  62. min-height: 0cm;
  63. }
  64. .tel{
  65. width: 13cm;
  66. float: left;
  67. font-size: 10px;
  68. min-height: 0cm;
  69. }
  70. .table-condensed>tbody>tr>td {
  71. padding: 1px !important;
  72. }
  73. .divisoria{
  74. height: 0.5cm;
  75. clear: both;
  76. }
  77. .fecha_emision_data{
  78. width: 11.5cm;
  79. float: left;
  80. min-height: 0.5cm;
  81. }
  82. .contado_x{
  83. width: 1.8cm;
  84. float: left;
  85. padding-left: 9cm;
  86. min-height: 0.5cm;
  87. }
  88. .credito_x{
  89. width: 1.8cm;
  90. float: left;
  91. padding-left: 1.6cm;
  92. min-height: 0.5cm;
  93. }
  94. .linea2{
  95. position: relative;
  96. top: -0.12cm;
  97. min-height: 0.5cm;
  98. }
  99. .razon_data{
  100. width: 12cm;
  101. float: left;
  102. min-height: 0.4cm;
  103. }
  104. .ruc_data{
  105. width: 5cm;
  106. float: left;
  107. min-height: 0.5cm;
  108. }
  109. .linea3{
  110. position: relative;
  111. top: -0.12cm;
  112. min-height: 0.3cm;
  113. }
  114. .direccion_data{
  115. width: 14cm;
  116. float: left;
  117. min-height: 0.4cm;
  118. }
  119. .linea4{
  120. position: relative;
  121. top: -0.12cm;
  122. min-height: 0.3cm;
  123. }
  124. .telefono_data{
  125. width: 7cm;
  126. float: left;
  127. min-height: 0.4cm;
  128. }
  129. .origin{
  130. width: 6cm;
  131. float: left;
  132. min-height: 0.4cm;
  133. }
  134. .referencia{
  135. width: 7cm;
  136. float: left;
  137. min-height: 0.4cm;
  138. }
  139. .cab-articulos{
  140. height: 0.4cm;
  141. clear: both;
  142. }
  143. .articulos{
  144. height: 4.5cm;
  145. }
  146. .art-col1{
  147. width:0.4cm;
  148. text-align: center;
  149. }
  150. .art-col2{
  151. padding-left: 0.7cm;
  152. width:1cm;
  153. text-align: center;
  154. }
  155. .art-col3{
  156. padding-left: 0.3cm;
  157. width:9cm;
  158. }
  159. .art-col4{
  160. width:0.9cm;
  161. text-align: right;
  162. }
  163. .art-col5{
  164. width:2.8cm;
  165. text-align: right;
  166. }
  167. .art-col6{
  168. width:2.7cm;
  169. text-align: right;
  170. }
  171. .art-col7{
  172. width:1.5cm;
  173. text-align: right;
  174. }
  175. .logo1{
  176. height: 2cm;
  177. width: 100%;
  178. top: 0px;
  179. }
  180. </style>
  181. <t t-foreach="docs" t-as="o">
  182. <div class="pagina">
  183. <div class="divisoria"> </div>
  184. <div style="border:0.3px solid #000;"></div>
  185. <div class="divisoria"> </div>
  186. <div class="divisoria"> </div>
  187. <div class="row">
  188. <div class="col-xs-4">
  189. <tr>
  190. <div class="descripcion1"><b><i>BIO ELECTRIC</i></b></div>
  191. </tr>
  192. <tr>
  193. <div class="descripcion2"><b>SOLUCIONES ELECTROMECÁNICAS</b></div>
  194. </tr>
  195. <tr>
  196. <div class="descripcion3"><b>SERVICIOS ELÉCTRICOS 24 hs. - MONTAJES INDUSTRIALES</b></div>
  197. </tr>
  198. <tr>
  199. <div class="descripcion4"><b>AUTOMATIZACIONES - REFRIGERACIÓN, CCTV, SPLIT</b></div>
  200. </tr>
  201. <tr>
  202. <div class="email"><b>bioelectric.central@hotmail.com - R.U.C. N°: 5847352-1</b></div>
  203. </tr>
  204. <tr>
  205. <div class="ciudad"><b>SAN ANTONIO - PARAGUAY</b></div>
  206. </tr>
  207. <tr>
  208. <div class="tel"><b>(021) 951827 - (0981) 939132 - (0983) 541504</b></div>
  209. </tr>
  210. </div>
  211. <div class="col-xs-8">
  212. <center>
  213. <img t-if="o.company_id.logo" t-att-src="'data:image/png;base64,%s' % o.company_id.logo" style="max-height: 150px;max-width: 100px;"/>
  214. </center>
  215. </div>
  216. </div>
  217. <div class="cab-articulos"><b>____________________________________________________________________________________________________________________</b></div>
  218. <div class="divisoria"> </div>
  219. <div class="linea3">
  220. <div class="fecha_emision_data"><b>Fecha de Factura: </b><span t-field="o.date_invoice" t-field-options='{"format": "dd MMMM yyyy"}'/></div>
  221. </div>
  222. <div class="linea2">
  223. <div class="razon_data"><b>Cliente: </b><span t-field="o.partner_id.name"/></div>
  224. <div class="ruc_data"><b>R.U.C N°: </b><span t-field="o.partner_id.ruc"/></div>
  225. </div>
  226. <div class="linea3">
  227. <div class="direccion_data">
  228. <t t-f="o.partner_id.street"><b>Direccion: </b><span t-field="o.partner_id.street"/> <span t-field="o.partner_id.street2"/></t>
  229. <t t-f="not o.partner_id.street"> </t>
  230. </div>
  231. </div>
  232. <div class="linea4">
  233. <div class="telefono_data"><b>Telefono: </b><span t-field="o.partner_id.phone"/></div>
  234. <div class="origin"><b>Origen: </b><span t-field="o.origin"/></div>
  235. <div class="referencia"><b>Referencia: </b><span t-field="o.reference"/></div>
  236. </div>
  237. <table class="table table-condensed table-bordered">
  238. <thead>
  239. <tr>
  240. <th class="text-center">Cantidad</th>
  241. <th class="text-center">Descripción</th>
  242. <th class="text-center">Prec. Unitario</th>
  243. <th class="text-center">Sub Total</th>
  244. </tr>
  245. </thead>
  246. <tbody class="sale_tbody">
  247. <tr t-foreach="o.invoice_line" t-as="l">
  248. <td class="text-right">
  249. <span t-esc="'%.0f'%l.quantity"/>
  250. </td>
  251. <td>
  252. <span t-field="l.name"/>
  253. </td>
  254. <td class="text-right">
  255. <t t-if="o.currency_id.id == 166">
  256. <span t-esc="'{0:,.0f}'.format(l.price_unit)"/>
  257. </t>
  258. <t t-if="o.currency_id.id != 166">
  259. <span t-esc="'{0:,.2f}'.format(l.price_unit)"/>
  260. </t>
  261. </td>
  262. <td class="text-right">
  263. <t t-if="o.currency_id.id == 166">
  264. <span t-esc="'{0:,.0f}'.format(l.price_unit*l.quantity)"/>
  265. </t>
  266. <t t-if="o.currency_id.id != 166">
  267. <span t-esc="'{0:,.2f}'.format(l.price_unit*l.quantity)"/>
  268. </t>
  269. </td>
  270. </tr>
  271. </tbody>
  272. </table>
  273. <div class="row">
  274. <div class="col-xs-4 pull-right">
  275. <table class="table table-condensed">
  276. <tr class="border-black">
  277. <td><strong>Monto Gravado</strong></td>
  278. <td class="text-right">
  279. <t t-if="o.currency_id.id == 166">
  280. <span t-esc="'{0:,.0f}'.format(o.amount_untaxed)"/>
  281. </t>
  282. <t t-if="o.currency_id.id != 166">
  283. <span t-esc="'{0:,.2f}'.format(o.amount_untaxed)"/>
  284. </t>
  285. </td>
  286. </tr>
  287. <tr>
  288. <td>IVA 10%</td>
  289. <td class="text-right">
  290. <t t-if="o.currency_id.id == 166">
  291. <span t-esc="'{0:,.0f}'.format(o.amount_tax)"/>
  292. </t>
  293. <t t-if="o.currency_id.id != 166">
  294. <span t-esc="'{0:,.2f}'.format(o.amount_tax)"/>
  295. </t>
  296. </td>
  297. </tr>
  298. <tr class="border-black">
  299. <td><strong>Total</strong></td>
  300. <td class="text-right">
  301. <t t-if="o.currency_id.id == 166">
  302. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  303. </t>
  304. <t t-if="o.currency_id.id != 166">
  305. <span t-esc="'{0:,.2f}'.format(o.amount_total)"/>
  306. </t>
  307. </td>
  308. </tr>
  309. </table>
  310. </div>
  311. </div>
  312. </div>
  313. <div class="logo1"> </div>
  314. </t>
  315. </div>
  316. </t>
  317. <!-- </t> -->
  318. </t>
  319. </template>
  320. </data>
  321. </openerp>