factura_comun_smile.xml 15 KB

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