report_accountinvoice_document1.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="report_accountinvoice_document1"
  5. model="account.invoice"
  6. string="Nota de Venta"
  7. report_type="qweb-html"
  8. name="factura_venta_gavilan.report_factura_gavilan"
  9. file="factura_venta_gavilan.report_factura_gavilan"
  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_gavilan">
  24. <t t-call="report.html_container">
  25. <t t-call="report.external_layout">
  26. <div class="page">
  27. <style type="text/css">
  28. body{
  29. font-size: 3.2mm;
  30. font-family: Arial;
  31. }
  32. div{
  33. padding: 0px;
  34. }
  35. .pagina{
  36. width:19.3cm;
  37. }
  38. .descripcion{
  39. width: 11.2cm;
  40. font-size: 13px;
  41. padding-top: 0.5cm;
  42. padding-left: 0.2cm;
  43. float: left;
  44. min-height: 0cm;
  45. }
  46. .descripcion1{
  47. width: 11.2cm;
  48. font-size: 17px;
  49. padding-top: 0.2cm;
  50. padding-left: 0.2cm;
  51. float: left;
  52. min-height: 0cm;
  53. }
  54. .descripcion11{
  55. width: 11.2cm;
  56. font-size: 17px;
  57. padding-top: 0.2cm;
  58. padding-left: 0.2cm;
  59. float: left;
  60. min-height: 0cm;
  61. }
  62. .descripcion2{
  63. width: 13cm;
  64. font-size: 10px;
  65. padding-left: 0.2cm;
  66. float: left;
  67. min-height: 0cm;
  68. }
  69. .descripcion3{
  70. width: 15cm;
  71. font-size: 10px;
  72. padding-left: 0.2cm;
  73. float: left;
  74. min-height: 0cm;
  75. }
  76. .descripcion4{
  77. width: 15cm;
  78. font-size: 10px;
  79. padding-left: 0.2cm;
  80. float: left;
  81. min-height: 0cm;
  82. }
  83. .email{
  84. width: 13cm;
  85. font-size: 10px;
  86. padding-left: 0.2cm;
  87. float: left;
  88. min-height: 0cm;
  89. }
  90. .ciudad{
  91. width: 13cm;
  92. float: left;
  93. padding-left: 0.2cm;
  94. font-size: 10px;
  95. min-height: 0cm;
  96. }
  97. .tel{
  98. width: 13cm;
  99. float: left;
  100. padding-left: 0.2cm;
  101. font-size: 10px;
  102. min-height: 0cm;
  103. }
  104. .rucdata{
  105. width: 13cm;
  106. float: left;
  107. padding-left: 0.2cm;
  108. font-size: 10px;
  109. min-height: 0cm;
  110. }
  111. .table-condensed>tbody>tr>td {
  112. padding: 1px !important;
  113. }
  114. .divisoria{
  115. height: 0.5cm;
  116. clear: both;
  117. }
  118. .titulo{
  119. width: 19.2cm;
  120. text-align: center;
  121. width: 100%;
  122. min-height: 0.9cm;
  123. }
  124. .fecha_emision_data{
  125. width: 12.5cm;
  126. float: left;
  127. min-height: 0.5cm;
  128. }
  129. .vendor{
  130. width: 6.7cm;
  131. float: left;
  132. min-height: 0.5cm;
  133. }
  134. .razon_data{
  135. width: 12.5cm;
  136. float: left;
  137. min-height: 0.4cm;
  138. }
  139. .ruc_data{
  140. width: 6.7cm;
  141. float: left;
  142. min-height: 0.4cm;
  143. }
  144. .direccion_data{
  145. width: 19.2cm;
  146. float: left;
  147. min-height: 0.4cm;
  148. }
  149. .telefono_data{
  150. width: 19.2cm;
  151. float: left;
  152. min-height: 0.4cm;
  153. }
  154. .note{
  155. width: 19.2cm;
  156. float: left;
  157. min-height: 0.4cm;
  158. }
  159. .cab-articulos{
  160. height: 0.4cm;
  161. clear: both;
  162. }
  163. .articulos{
  164. height: 4.5cm;
  165. }
  166. .art-col1{
  167. width:2.3cm;
  168. text-align: center;
  169. }
  170. .art-col2{
  171. width:11.3cm;
  172. text-align: left;
  173. }
  174. .art-col3{
  175. padding-left: 0.5cm;
  176. width:3cm;
  177. text-align: right;
  178. }
  179. .art-col4{
  180. padding-left: 0.5cm;
  181. width:3cm;
  182. text-align: right;
  183. }
  184. .spad{
  185. width: 8.5cm;
  186. float: left;
  187. padding-top: 0.09cm;
  188. padding-bottom: 0.12cm;
  189. min-height: 0.4cm;
  190. }
  191. .divisoria1{
  192. height: 0.3cm;
  193. clear: both;
  194. }
  195. .sub_total{
  196. width: 11cm;
  197. text-align: right;
  198. padding-top: 0.09cm;
  199. padding-left: 9.5cm;
  200. padding-bottom: 0.12cm;
  201. min-height: 0.4cm;
  202. }
  203. .total_iva{
  204. width: 11cm;
  205. text-align: right;
  206. padding-top: 0.09cm;
  207. padding-left: 9.5cm;
  208. padding-bottom: 0.12cm;
  209. min-height: 0.4cm;
  210. }
  211. .total_total{
  212. width: 11cm;
  213. float: left;
  214. text-align: right;
  215. padding-top: 0.09cm;
  216. padding-left: 9.5cm;
  217. padding-bottom: 0.12cm;
  218. min-height: 0.4cm;
  219. }
  220. .total_pagar_data{
  221. width: 19.2cm;
  222. float: left;
  223. min-height: 0.4cm;
  224. }
  225. .logo1{
  226. height: 2cm;
  227. width: 100%;
  228. top: 0px;
  229. }
  230. </style>
  231. <t t-foreach="docs" t-as="o">
  232. <div class="pagina">
  233. <div style="margin-top: 1.3cm;"></div>
  234. <div class="row" >
  235. <div class="col-xs-12" style="padding-left: 0.01mm; padding-top: 0.01mm; padding-bottom: 0.15mm; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;">
  236. <tr>
  237. <div class="descripcion">
  238. </div>
  239. </tr>
  240. <tr>
  241. <div class="descripcion1"><b>GAVILAN COMPANY</b></div>
  242. </tr>
  243. <tr>
  244. <div class="descripcion2"><b>de Prins Gavilán Mendez</b></div>
  245. </tr>
  246. <tr>
  247. <div class="descripcion11"></div>
  248. </tr>
  249. <tr>
  250. <div class="descripcion3"><b>Sistemas de promoción en medios digitales</b></div>
  251. </tr>
  252. <tr>
  253. <div class="descripcion4"><b>R.U.C. N°: 4525936-4</b></div>
  254. </tr>
  255. <tr>
  256. <div class="email"><b></b></div>
  257. </tr>
  258. <tr>
  259. <div class="ciudad"><b>Avda. Julio C. Riquelme Km.7 - Ciudad Nueva</b></div>
  260. </tr>
  261. <tr>
  262. <div class="tel"><b>Ciudad del Este - Paraguay</b></div>
  263. </tr>
  264. <tr>
  265. <div class="rucdata"><b>Teléfono: (0984) 707 850</b></div>
  266. </tr>
  267. </div>
  268. <!-- <div class="col-xs-8">
  269. <center>
  270. <img t-if="o.company_id.logo" t-att-src="'data:image/png;base64,%s' % o.company_id.logo" style="max-height: 240px;max-width: 80px;"/>
  271. </center>
  272. </div> -->
  273. </div>
  274. <div class="divisoria"> </div>
  275. <div class="col-xs-12" style="padding-left: 0.01mm; padding-top: 0.01mm; padding-bottom: 0.15mm; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;">
  276. <h2>
  277. <center>
  278. <span>NOTA DE VENTA N° </span>
  279. <span t-field="o.name"/>
  280. </center>
  281. </h2>
  282. </div>
  283. <table class="table table-condensed table-bordered">
  284. <tr>
  285. <td class="fecha_emision_data"><b>Fecha: </b><span t-field="o.date_invoice" t-field-options='{"format": "dd MMMM yyyy"}'/></td>
  286. <td class="vendor"><b>Vendedor: </b><span t-field="o.user_id.name"/></td>
  287. </tr>
  288. <tr>
  289. <td class="razon_data"><b>Nombre o Razón Social: </b><span t-field="o.partner_id.name"/></td>
  290. <td class="ruc_data"><b>R.U.C N°: </b><span t-field="o.partner_id.ruc"/></td>
  291. </tr>
  292. <tr>
  293. <td class="direccion_data"><b>Direccion: </b><span t-field="o.partner_id.street"/></td>
  294. </tr>
  295. <tr>
  296. <td class="telefono_data"><b>Telefono: </b><span t-field="o.partner_id.phone"/></td>
  297. </tr>
  298. <!-- <tr>
  299. <td class="note"><b>Por medio de la presente ponemos a su consideración el presente presupuesto.</b></td>
  300. </tr> -->
  301. </table>
  302. <div class="divisoria1"> </div>
  303. <table style="border-collapse: collapse; width: 100%;" class="product1">
  304. <tr>
  305. <th style="padding: 0.2cm; width:10%; border-collapse: collapse; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;" class="text-center">Cant.</th>
  306. <th style="padding: 0.2cm; width:55%; border-collapse: collapse; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;" class="text-center">Descripción</th>
  307. <th style="padding: 0.2cm; width:15%; border-collapse: collapse; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;" class="text-center">Precio Unit.</th>
  308. <th style="padding: 0.2cm; width:20%; border-collapse: collapse; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;" class="text-center">Sub Total</th>
  309. </tr>
  310. </table>
  311. <div style="height: 7.5cm;border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;">
  312. <table style="border-collapse: collapse; width: 100%; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;">
  313. <tr t-foreach="o.invoice_line" t-as="l">
  314. <td style="text-align: center; padding: 0.1cm; width: 10%; border-collapse: collapse; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;"><span t-esc="'{0:,.0f}'.format(l.quantity)"/></td>
  315. <td style="text-align: left; padding: 0.1cm; width:55%; border-collapse: collapse; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;"><span t-field="l.name"/></td>
  316. <td style="text-align: right; padding: 0.1cm; width:15%; border-collapse: collapse; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;"><span t-esc="'{0:,.0f}'.format(l.price_unit)"/></td>
  317. <td style="text-align: right; padding: 0.1cm; width:20%; border-collapse: collapse; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;"><span t-esc="'{0:,.0f}'.format((l.quantity * l.price_unit))"/></td>
  318. </tr>
  319. </table>
  320. </div>
  321. <div class="divisoria"> </div>
  322. <div class="row">
  323. <div class="col-xs-4 pull-right">
  324. <table class="table table-condensed">
  325. <tr class="border-black">
  326. <td><strong>Sub Total:</strong></td>
  327. <td class="text-right">
  328. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  329. </td>
  330. </tr>
  331. <tr>
  332. <td>Total IVA:</td>
  333. <td class="text-right">
  334. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  335. </td>
  336. </tr>
  337. <tr class="border-black">
  338. <td><strong>Total</strong></td>
  339. <td class="text-right">
  340. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  341. </td>
  342. </tr>
  343. </table>
  344. </div>
  345. </div>
  346. <!-- <div class="sub_total">
  347. <strong>Sub Total: </strong> <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  348. </div>
  349. <div class="total_iva">
  350. <strong>Total IVA: </strong> <span t-esc="'{0:,.0f}'.format(o.amount_tax)"/>
  351. </div>
  352. <div class="total_total">
  353. <strong>Total: </strong> <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  354. </div> -->
  355. <!-- <div class="total_pagar_data">En letras: <span t-esc="convertir(o.amount_total,o.currency_id.en_letras1)"/></div> -->
  356. <!-- <p t-field="o.note"/>
  357. <p t-if="o.payment_term.note">
  358. <strong>Condición de Pago:</strong>
  359. <span t-field="o.payment_term.note"/>
  360. </p>
  361. <p>
  362. <strong>Plazo de Pago:</strong>
  363. <span t-field="o.payment_term.note"/>
  364. </p>
  365. <p>
  366. <strong>Garantia:</strong>
  367. <span t-field="o.payment_term.note"/>
  368. </p> -->
  369. <div class="divisoria"> </div>
  370. <div>
  371. <center>
  372. <strong>GRACIAS POR CONFIAR EN NOSOTROS</strong>
  373. </center>
  374. </div>
  375. </div>
  376. </t>
  377. </div>
  378. </t>
  379. </t>
  380. </template>
  381. </data>
  382. </openerp>