factura_comun_bioelectric.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="factura_comun_bioelectric"
  5. model="account.invoice"
  6. string="Factura Comun"
  7. report_type="qweb-html"
  8. name="factura_comun_bioelectric.report_factura_bioelectric"
  9. file="factura_comun_bioelectric.report_factura_bioelectric"
  10. />
  11. <template id="report_factura_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: 10cm;
  126. float: left;
  127. min-height: 0.4cm;
  128. }
  129. .nota_remision_data{
  130. width: 4cm;
  131. float: left;
  132. min-height: 0.4cm;
  133. }
  134. .cab-articulos{
  135. height: 0.4cm;
  136. clear: both;
  137. }
  138. .articulos{
  139. height: 4.5cm;
  140. }
  141. .art-col1{
  142. width:0.4cm;
  143. text-align: center;
  144. }
  145. .art-col2{
  146. padding-left: 0.7cm;
  147. width:1cm;
  148. text-align: center;
  149. }
  150. .art-col3{
  151. padding-left: 0.3cm;
  152. width:9cm;
  153. }
  154. .art-col4{
  155. width:0.9cm;
  156. text-align: right;
  157. }
  158. .art-col5{
  159. width:2.8cm;
  160. text-align: right;
  161. }
  162. .art-col6{
  163. width:2.7cm;
  164. text-align: right;
  165. }
  166. .art-col7{
  167. width:1.5cm;
  168. text-align: right;
  169. }
  170. .logo1{
  171. height: 2cm;
  172. width: 100%;
  173. top: 0px;
  174. }
  175. </style>
  176. <t t-foreach="docs" t-as="o">
  177. <div class="pagina">
  178. <div class="divisoria"> </div>
  179. <div style="border:0.3px solid #000;"></div>
  180. <div class="divisoria"> </div>
  181. <div class="divisoria"> </div>
  182. <table class="table table-condensed table-bordered">
  183. <thead>
  184. <tr>
  185. <div class="descripcion1"><b>BIO ELECTRIC</b></div>
  186. </tr>
  187. <tr>
  188. <div class="descripcion2"><b>SOLUCIONES ELECTROMECÁNICAS</b></div>
  189. </tr>
  190. <tr>
  191. <div class="descripcion3"><b>SERVICIOS ELÉCTRICOS 24 hs. - MONTAJES INDUSTRIALES</b></div>
  192. </tr>
  193. <tr>
  194. <div class="descripcion4"><b>AUTOMATIZACIONES - REFRIGERACIÓN, CCTV, SPLIT</b></div>
  195. </tr>
  196. <tr>
  197. <div class="email"><b>bioelectricpy@gmail.com - R.U.C. N°: 4474131-6</b></div>
  198. </tr>
  199. <tr>
  200. <div class="ciudad"><b>SAN ANTONIO - PARAGUAY</b></div>
  201. </tr>
  202. <tr>
  203. <div class="tel"><b>(021) 951827 - (0981) 939132 - (0984) 120678</b></div>
  204. </tr>
  205. </thead>
  206. </table>
  207. <div class="cab-articulos"><b>____________________________________________________________________________________________________________________</b></div>
  208. <div class="divisoria"> </div>
  209. <div class="linea3">
  210. <div class="fecha_emision_data"><b>Fecha de Factura: </b><span t-field="o.date_invoice" t-field-options='{"format": "dd MMMM yyyy"}'/></div>
  211. </div>
  212. <div class="linea2">
  213. <div class="razon_data"><b>Cliente: </b><span t-field="o.partner_id.name"/></div>
  214. <div class="ruc_data"><b>R.U.C N°: </b><span t-field="o.partner_id.ruc"/></div>
  215. </div>
  216. <div class="linea3">
  217. <div class="direccion_data">
  218. <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>
  219. <t t-f="not o.partner_id.street"> </t>
  220. </div>
  221. </div>
  222. <div class="linea4">
  223. <div class="telefono_data"><b>Telefono: </b><span t-field="o.partner_id.phone"/></div>
  224. </div>
  225. <table class="table table-condensed table-bordered">
  226. <thead>
  227. <tr>
  228. <th class="text-center">Cantidad</th>
  229. <th class="text-center">Descripción</th>
  230. <th class="text-center">Prec. Unitario</th>
  231. <th class="text-center">Sub Total</th>
  232. </tr>
  233. </thead>
  234. <tbody class="sale_tbody">
  235. <tr t-foreach="o.invoice_line" t-as="l">
  236. <td class="text-right">
  237. <span t-esc="'%.0f'%l.quantity"/>
  238. </td>
  239. <td>
  240. <span t-field="l.name"/>
  241. </td>
  242. <td class="text-right">
  243. <t t-if="o.currency_id.id == 166">
  244. <span t-esc="'{0:,.0f}'.format(l.price_unit)"/>
  245. </t>
  246. <t t-if="o.currency_id.id != 166">
  247. <span t-esc="'{0:,.2f}'.format(l.price_unit)"/>
  248. </t>
  249. </td>
  250. <td class="text-right">
  251. <t t-if="o.currency_id.id == 166">
  252. <span t-esc="'{0:,.0f}'.format(l.price_unit*l.quantity)"/>
  253. </t>
  254. <t t-if="o.currency_id.id != 166">
  255. <span t-esc="'{0:,.2f}'.format(l.price_unit*l.quantity)"/>
  256. </t>
  257. </td>
  258. </tr>
  259. </tbody>
  260. </table>
  261. <div class="row">
  262. <div class="col-xs-4 pull-right">
  263. <table class="table table-condensed">
  264. <tr class="border-black">
  265. <td><strong>Total s/ IVA</strong></td>
  266. <td class="text-right">
  267. <t t-if="o.currency_id.id == 166">
  268. <span t-esc="'{0:,.0f}'.format(o.amount_untaxed)"/>
  269. </t>
  270. <t t-if="o.currency_id.id != 166">
  271. <span t-esc="'{0:,.2f}'.format(o.amount_untaxed)"/>
  272. </t>
  273. </td>
  274. </tr>
  275. <tr>
  276. <td>IVA</td>
  277. <td class="text-right">
  278. <t t-if="o.currency_id.id == 166">
  279. <span t-esc="'{0:,.0f}'.format(o.amount_tax)"/>
  280. </t>
  281. <t t-if="o.currency_id.id != 166">
  282. <span t-esc="'{0:,.2f}'.format(o.amount_tax)"/>
  283. </t>
  284. </td>
  285. </tr>
  286. <tr class="border-black">
  287. <td><strong>Total</strong></td>
  288. <td class="text-right">
  289. <t t-if="o.currency_id.id == 166">
  290. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  291. </t>
  292. <t t-if="o.currency_id.id != 166">
  293. <span t-esc="'{0:,.2f}'.format(o.amount_total)"/>
  294. </t>
  295. </td>
  296. </tr>
  297. </table>
  298. </div>
  299. </div>
  300. </div>
  301. <div class="logo1"> </div>
  302. </t>
  303. </div>
  304. </t>
  305. <!-- </t> -->
  306. </t>
  307. </template>
  308. </data>
  309. </openerp>