factura_comun_ferresur.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="factura_comun_ferresur"
  5. model="account.invoice"
  6. string="Factura Comun"
  7. report_type="qweb-html"
  8. name="factura_comun_ferresur.report_factura_ferresur"
  9. file="factura_comun_ferresur.report_factura_ferresur"
  10. />
  11. <template id="report_factura_ferresur">
  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. margin-top: 5mm;
  27. }
  28. .descripcion1{
  29. width: 11.2cm;
  30. font-size: 13px;
  31. padding-top: 0.2cm;
  32. float: left;
  33. min-height: 0cm;
  34. }
  35. .descripcion4{
  36. width: 15cm;
  37. font-size: 10px;
  38. float: left;
  39. min-height: 0cm;
  40. }
  41. .email{
  42. width: 13cm;
  43. font-size: 10px;
  44. float: left;
  45. min-height: 0cm;
  46. }
  47. .ciudad{
  48. width: 13cm;
  49. float: left;
  50. font-size: 10px;
  51. min-height: 0cm;
  52. }
  53. .tel{
  54. width: 13cm;
  55. float: left;
  56. font-size: 10px;
  57. min-height: 0cm;
  58. }
  59. .table-condensed>tbody>tr>td {
  60. padding: 1px !important;
  61. }
  62. .divisoria{
  63. height: 0.5cm;
  64. clear: both;
  65. }
  66. .fecha_emision_data{
  67. width: 11.5cm;
  68. float: left;
  69. min-height: 0.5cm;
  70. }
  71. .contado_x{
  72. width: 1.8cm;
  73. float: left;
  74. padding-left: 9cm;
  75. min-height: 0.5cm;
  76. }
  77. .credito_x{
  78. width: 1.8cm;
  79. float: left;
  80. padding-left: 1.6cm;
  81. min-height: 0.5cm;
  82. }
  83. .linea2{
  84. position: relative;
  85. top: -0.12cm;
  86. min-height: 0.5cm;
  87. }
  88. .razon_data{
  89. width: 12cm;
  90. float: left;
  91. min-height: 0.4cm;
  92. }
  93. .ruc_data{
  94. width: 5cm;
  95. float: left;
  96. min-height: 0.5cm;
  97. }
  98. .linea3{
  99. position: relative;
  100. top: -0.12cm;
  101. min-height: 0.3cm;
  102. }
  103. .direccion_data{
  104. width: 14cm;
  105. float: left;
  106. min-height: 0.4cm;
  107. }
  108. .linea4{
  109. position: relative;
  110. top: -0.12cm;
  111. min-height: 0.3cm;
  112. }
  113. .telefono_data{
  114. width: 10cm;
  115. float: left;
  116. min-height: 0.4cm;
  117. }
  118. .nota_remision_data{
  119. width: 4cm;
  120. float: left;
  121. min-height: 0.4cm;
  122. }
  123. .cab-articulos{
  124. height: 0.4cm;
  125. clear: both;
  126. }
  127. .articulos{
  128. height: 4.5cm;
  129. }
  130. .art-col1{
  131. width:0.4cm;
  132. text-align: center;
  133. }
  134. .art-col2{
  135. padding-left: 0.7cm;
  136. width:1cm;
  137. text-align: center;
  138. }
  139. .art-col3{
  140. padding-left: 0.3cm;
  141. width:9cm;
  142. }
  143. .art-col4{
  144. width:0.9cm;
  145. text-align: right;
  146. }
  147. .art-col5{
  148. width:2.8cm;
  149. text-align: right;
  150. }
  151. .art-col6{
  152. width:2.7cm;
  153. text-align: right;
  154. }
  155. .art-col7{
  156. width:1.5cm;
  157. text-align: right;
  158. }
  159. .logo1{
  160. height: 1cm;
  161. width: 100%;
  162. top: 0px;
  163. }
  164. </style>
  165. <t t-foreach="docs" t-as="o">
  166. <div class="pagina">
  167. <div class="divisoria"> </div>
  168. <div style="border:0.3px solid #000;"></div>
  169. <div class="row">
  170. <div class="col-xs-4">
  171. <tr>
  172. <div class="descripcion1"><b><i>FERRESUR FERRETERIA</i></b></div>
  173. </tr>
  174. <tr>
  175. <div class="descripcion4"><b>Autopista Ruta N° 6 - Juan L. Mallorquin</b></div>
  176. </tr>
  177. <tr>
  178. <div class="email"><b>FerresurEnc@gmail.com - R.U.C. N°: 8003668-6</b></div>
  179. </tr>
  180. <tr>
  181. <div class="ciudad"><b>ENCARNACION - PARAGUAY</b></div>
  182. </tr>
  183. <tr>
  184. <div class="tel"><b>(0985) 639 615 - (0994) 614 772</b></div>
  185. </tr>
  186. </div>
  187. <div class="col-xs-8">
  188. <center>
  189. <img t-if="o.company_id.logo" t-att-src="'data:image/png;base64,%s' % o.company_id.logo" style="max-height: 80px;max-width: 45px;"/>
  190. </center>
  191. </div>
  192. </div>
  193. <div class="cab-articulos"><b>____________________________________________________________________________________________________________</b></div>
  194. <div class="divisoria"> </div>
  195. <div class="linea3">
  196. <div class="fecha_emision_data"><b>Fecha de Factura: </b><span t-field="o.date_invoice" t-field-options='{"format": "dd MMMM yyyy"}'/></div>
  197. </div>
  198. <div class="linea2">
  199. <div class="razon_data"><b>Cliente: </b><span t-field="o.partner_id.name"/></div>
  200. <div class="ruc_data"><b>R.U.C N°: </b><span t-field="o.partner_id.ruc"/></div>
  201. </div>
  202. <div class="linea3">
  203. <div class="direccion_data">
  204. <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>
  205. <t t-f="not o.partner_id.street"> </t>
  206. </div>
  207. </div>
  208. <div class="linea4">
  209. <div class="telefono_data"><b>Telefono: </b><span t-field="o.partner_id.phone"/></div>
  210. </div>
  211. <table class="table table-condensed table-bordered">
  212. <thead>
  213. <tr>
  214. <th class="text-center">Cantidad</th>
  215. <th class="text-center">Descripción</th>
  216. <th class="text-center">Prec. Unitario</th>
  217. <th class="text-center">Sub Total</th>
  218. </tr>
  219. </thead>
  220. <tbody class="sale_tbody">
  221. <tr t-foreach="o.invoice_line" t-as="l">
  222. <td class="text-center">
  223. <span t-esc="'%.0f'%l.quantity"/>
  224. </td>
  225. <td>
  226. <span t-field="l.name"/>
  227. </td>
  228. <td class="text-right">
  229. <t t-if="o.currency_id.id == 166">
  230. <span t-esc="'{0:,.0f}'.format(l.price_unit)"/>
  231. </t>
  232. <t t-if="o.currency_id.id != 166">
  233. <span t-esc="'{0:,.2f}'.format(l.price_unit)"/>
  234. </t>
  235. </td>
  236. <td class="text-right">
  237. <t t-if="o.currency_id.id == 166">
  238. <span t-esc="'{0:,.0f}'.format(l.price_unit*l.quantity)"/>
  239. </t>
  240. <t t-if="o.currency_id.id != 166">
  241. <span t-esc="'{0:,.2f}'.format(l.price_unit*l.quantity)"/>
  242. </t>
  243. </td>
  244. </tr>
  245. </tbody>
  246. </table>
  247. <div class="row">
  248. <div class="col-xs-4 pull-right">
  249. <table class="table table-condensed">
  250. <tr class="border-black">
  251. <td><strong>Total s/ IVA</strong></td>
  252. <td class="text-right">
  253. <t t-if="o.currency_id.id == 166">
  254. <span t-esc="'{0:,.0f}'.format(o.amount_untaxed)"/>
  255. </t>
  256. <t t-if="o.currency_id.id != 166">
  257. <span t-esc="'{0:,.2f}'.format(o.amount_untaxed)"/>
  258. </t>
  259. </td>
  260. </tr>
  261. <tr>
  262. <td>IVA</td>
  263. <td class="text-right">
  264. <t t-if="o.currency_id.id == 166">
  265. <span t-esc="'{0:,.0f}'.format(o.amount_tax)"/>
  266. </t>
  267. <t t-if="o.currency_id.id != 166">
  268. <span t-esc="'{0:,.2f}'.format(o.amount_tax)"/>
  269. </t>
  270. </td>
  271. </tr>
  272. <tr class="border-black">
  273. <td><strong>Total</strong></td>
  274. <td class="text-right">
  275. <t t-if="o.currency_id.id == 166">
  276. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  277. </t>
  278. <t t-if="o.currency_id.id != 166">
  279. <span t-esc="'{0:,.2f}'.format(o.amount_total)"/>
  280. </t>
  281. </td>
  282. </tr>
  283. </table>
  284. </div>
  285. </div>
  286. </div>
  287. <div class="logo1"> </div>
  288. </t>
  289. </div>
  290. </t>
  291. <!-- </t> -->
  292. </t>
  293. </template>
  294. </data>
  295. </openerp>