presupuesto_venta_gavilan.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="presupuesto_venta_gavilan"
  5. model="sale.order"
  6. string="Presupuesto de Venta"
  7. report_type="qweb-pdf"
  8. name="presupuesto_venta_gavilan.report_presupuesto_gavilan"
  9. file="presupuesto_venta_gavilan.report_presupuesto_gavilan"
  10. />
  11. <template id="report_presupuesto_gavilan">
  12. <t t-call="report.html_container">
  13. <div class="page">
  14. <style type="text/css">
  15. body{
  16. font-size: 3mm;
  17. font-family: Arial;
  18. }
  19. div{
  20. padding: 0px;
  21. }
  22. .pagina{
  23. width:19.3cm;
  24. height: 15cm;
  25. padding-left: 3cm;
  26. padding-right: 0cm;
  27. }
  28. .descripcion1{
  29. width: 11.2cm;
  30. font-size: 13px;
  31. padding-top: 0.2cm;
  32. float: left;
  33. min-height: 0cm;
  34. }
  35. .ruc{
  36. width: 13cm;
  37. font-size: 10px;
  38. float: left;
  39. min-height: 0cm;
  40. }
  41. .ciudad{
  42. width: 13cm;
  43. float: left;
  44. font-size: 10px;
  45. min-height: 0cm;
  46. }
  47. .email{
  48. width: 13cm;
  49. font-size: 10px;
  50. float: left;
  51. min-height: 0cm;
  52. }
  53. .tel{
  54. width: 13cm;
  55. float: left;
  56. font-size: 10px;
  57. min-height: 0cm;
  58. }
  59. .table-condensed>tr>td {
  60. padding: 1px !important;
  61. }
  62. .divisoria{
  63. height: 0.5cm;
  64. clear: both;
  65. }
  66. .titulo{
  67. width: 19.2cm;
  68. text-align: center;
  69. width: 100%;
  70. min-height: 0.9cm;
  71. }
  72. .fecha_emision_data{
  73. width: 12.5cm;
  74. float: left;
  75. min-height: 0.5cm;
  76. }
  77. .vendor{
  78. width: 6.7cm;
  79. float: left;
  80. min-height: 0.5cm;
  81. }
  82. .razon_data{
  83. width: 12.5cm;
  84. float: left;
  85. min-height: 0.4cm;
  86. }
  87. .ruc_data{
  88. width: 6.7cm;
  89. float: left;
  90. min-height: 0.4cm;
  91. }
  92. .direccion_data{
  93. width: 12.5cm;
  94. float: left;
  95. min-height: 0.4cm;
  96. }
  97. .telefono_data{
  98. width: 6.7cm;
  99. float: left;
  100. min-height: 0.4cm;
  101. }
  102. .note{
  103. width: 19.2cm;
  104. float: left;
  105. min-height: 0.4cm;
  106. }
  107. .cab-articulos{
  108. height: 0.4cm;
  109. clear: both;
  110. }
  111. .articulos{
  112. height: 4.5cm;
  113. }
  114. .art-col1{
  115. width:1.3cm;
  116. text-align: center;
  117. }
  118. .art-col5{
  119. padding-left: 0.3cm;
  120. width:9cm;
  121. }
  122. .art-col6{
  123. width:2.9cm;
  124. text-align: right;
  125. }
  126. .art-col7{
  127. width:3cm;
  128. text-align: right;
  129. }
  130. .spad{
  131. width: 8.5cm;
  132. float: left;
  133. padding-top: 0.09cm;
  134. padding-bottom: 0.12cm;
  135. min-height: 0.4cm;
  136. }
  137. .subtotal_mat{
  138. width: 4.3cm;
  139. float: left;
  140. text-align: right;
  141. padding-top: 0.09cm;
  142. padding-left: 1cm;
  143. padding-bottom: 0.12cm;
  144. min-height: 0.4cm;
  145. }
  146. .subtotal_mo{
  147. width: 3.6cm;
  148. float: left;
  149. text-align: right;
  150. padding-top: 0.09cm;
  151. padding-bottom: 0.12cm;
  152. min-height: 0.4cm;
  153. }
  154. .logo1{
  155. height: 2cm;
  156. width: 100%;
  157. top: 0px;
  158. }
  159. .foto_personal {
  160. position: absolute;
  161. top: 1.5cm;
  162. left:0.25cm;
  163. }
  164. </style>
  165. <t t-foreach="docs" t-as="o">
  166. <div class="pagina">
  167. <div class="divisoria"> </div>
  168. <div class="divisoria"> </div>
  169. <div class="row">
  170. <div class="col-xs-4">
  171. <tr>
  172. <div class="descripcion1"><b><i>GAVILAN COMPANY</i></b></div>
  173. </tr>
  174. <tr>
  175. <div class="ruc"><b>R.U.C. N°: </b></div>
  176. </tr>
  177. <tr>
  178. <div class="ciudad"><b>Av. Julio C. Riquelme c/ Av. San José</b></div>
  179. </tr>
  180. <tr>
  181. <div class="email"><b>gavilancompany@gmail.com - R.U.C. N°: </b></div>
  182. </tr>
  183. <tr>
  184. <div class="tel"><b>(0982) 988 898</b></div>
  185. </tr>
  186. </div>
  187. <div class="col-xs-4">
  188. <center>
  189. <!-- <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;"/> -->
  190. </center>
  191. </div>
  192. </div>
  193. <div style="border:0.3px solid #000;"></div>
  194. <div class="divisoria"> </div>
  195. <div class="titulo" >
  196. <h3><strong>NOTA DE PRESUPUESTO N°: <span t-field="o.name"/></strong></h3>
  197. </div>
  198. <table class="table table-condensed table-bordered">
  199. <tr>
  200. <td class="fecha_emision_data"><b>Fecha: </b><span t-field="o.date_order" t-field-options='{"format": "dd MMMM yyyy"}'/></td>
  201. <!-- <td class="vendor"><b>Vendedor: </b><span t-field="o.user_id.name"/></td> -->
  202. </tr>
  203. <tr>
  204. <td class="razon_data"><b>Cliente: </b><span t-field="o.partner_id.name"/></td>
  205. <td class="ruc_data"><b>R.U.C N°: </b><span t-field="o.partner_id.ruc"/></td>
  206. </tr>
  207. <tr>
  208. <td class="direccion_data">
  209. <t t-f="o.partner_id.street"><b>Direccion: </b><span t-field="o.partner_id.street"/></t>
  210. <t t-f="not o.partner_id.street"> </t>
  211. </td>
  212. <td class="telefono_data"><b>Telefono: </b><span t-field="o.partner_id.phone"/></td>
  213. </tr>
  214. <!-- <tr>
  215. <td class="note"><b>Obra: </b><span t-field="o.note"/></td>
  216. </tr> -->
  217. </table>
  218. <table class="table table-condensed table-bordered">
  219. <thead>
  220. <tr>
  221. <th class="text-center">Cantidad</th>
  222. <th class="text-center">Descripción</th>
  223. <th class="text-center">Prec. Unit.</th>
  224. <th class="text-center">Sub Total</th>
  225. </tr>
  226. </thead>
  227. <tbody class="sale_tbody">
  228. <t t-set="valor_mat" t-value="0"/>
  229. <t t-set="valor_mo" t-value="0"/>
  230. <tr t-foreach="o.order_line" t-as="l">
  231. <td class="text-center">
  232. <span t-esc="'%.0f'%l.product_uom_qty"/>
  233. </td>
  234. <td>
  235. <span t-field="l.name"/>
  236. </td>
  237. <td class="text-right">
  238. <t t-if="o.currency_id.id == 166">
  239. <span t-esc="'{0:,.0f}'.format(l.price_unit)"/>
  240. </t>
  241. <t t-if="o.currency_id.id != 166">
  242. <span t-esc="'{0:,.2f}'.format(l.price_unit)"/>
  243. </t>
  244. </td>
  245. <td class="text-right">
  246. <span t-if="o.currency_id.id == 166">
  247. <span t-esc= "'{0:,.0f}'.format(int(l.product_uom_qty * l.price_unit)).replace(',', '.')">
  248. <span t-value="valor_mat+(l.product_uom_qty * l.price_unit)"/></span>
  249. <t t-set="valor_mat" t-value="valor_mat+(l.product_uom_qty * l.price_unit)"/>
  250. </span>
  251. <span t-if="o.currency_id.id != 166">
  252. <span t-esc="'{0:,.2f}'.format(int(l.price_unit*l.product_uom_qty)).replace(',', '.')">
  253. <span t-value="valor_mat+(l.product_uom_qty * l.price_unit)"/></span>
  254. <t t-set="valor_mat" t-value="valor_mat+(l.product_uom_qty * l.price_unit)"/>
  255. </span>
  256. </td>
  257. </tr>
  258. </tbody>
  259. </table>
  260. <!-- <div class="row">
  261. <div class="col-xs-12 pull-right">
  262. <table class="table table-condensed">
  263. <td class="art-col1"><b>Sub Totales: </b></td>
  264. <td class="art-col5"></td>
  265. <td class="art-col6">
  266. </td>
  267. <td class="art-col7">
  268. <span t-esc="'{0:,.0f}'.format(int(valor_mat)).replace(',', '.')"></span>
  269. </td>
  270. </table>
  271. </div>
  272. </div> -->
  273. <div class="row">
  274. <div class="col-xs-4 pull-right">
  275. <table class="table table-condensed">
  276. <!-- <tr class="border-black">
  277. <td><strong>Total s/ IVA</strong></td>
  278. <td class="text-right">
  279. <t t-if="o.currency_id.id == 166">
  280. <span t-esc="'{0:,.0f}'.format(o.amount_untaxed)"/>
  281. </t>
  282. <t t-if="o.currency_id.id != 166">
  283. <span t-esc="'{0:,.2f}'.format(o.amount_untaxed)"/>
  284. </t>
  285. </td>
  286. </tr>
  287. <tr>
  288. <td>IVA</td>
  289. <td class="text-right">
  290. <t t-if="o.currency_id.id == 166">
  291. <span t-esc="'{0:,.0f}'.format(o.amount_tax)"/>
  292. </t>
  293. <t t-if="o.currency_id.id != 166">
  294. <span t-esc="'{0:,.2f}'.format(o.amount_tax)"/>
  295. </t>
  296. </td>
  297. </tr> -->
  298. <tr class="border-black">
  299. <td><strong>Total</strong></td>
  300. <td class="text-right">
  301. <t t-if="o.currency_id.id == 166">
  302. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  303. </t>
  304. <t t-if="o.currency_id.id != 166">
  305. <span t-esc="'{0:,.2f}'.format(o.amount_total)"/>
  306. </t>
  307. </td>
  308. </tr>
  309. </table>
  310. </div>
  311. </div>
  312. <div class="note"><b>Obs.: </b><span t-field="o.note"/></div>
  313. </div>
  314. <div class="logo1"> </div>
  315. </t>
  316. </div>
  317. </t>
  318. </template>
  319. </data>
  320. </openerp>