factura_comun_profesional.xml 15 KB

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