factura_comun_imperio.xml 16 KB

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