presupuesto_venta_gavilan.xml 16 KB

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