report_accountinvoice_document1.xml 17 KB

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