presupuesto_venta_eas.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="presupuesto_venta_eas"
  5. model="sale.order"
  6. string="Presupuesto de Venta"
  7. report_type="qweb-pdf"
  8. name="presupuesto_venta_eas.report_presupuesto_eas"
  9. file="presupuesto_venta_eas.report_presupuesto_eas"
  10. />
  11. <template id="report_presupuesto_eas">
  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>INDUSTRIAS SWIN EAS</i></b></div>
  169. </tr>
  170. <tr>
  171. <div class="email"><b>Capellanes del Chaco Nº 504 y Juan Pio Troche</b></div>
  172. </tr>
  173. <tr>
  174. <div class="ciudad"><b>Ñemby - Paraguay</b></div>
  175. </tr>
  176. <tr>
  177. <div class="tel"><b>R.U.C. N° 80126565-7 Email: industriasswin@gmail.com</b></div>
  178. </tr>
  179. <tr>
  180. <div class="celular"><b>Tel: (021) 950 437 Cel.: (0981) 764 735</b></div>
  181. </tr>
  182. </div>
  183. <div class="col-xs-4">
  184. <center>
  185. <!-- <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;"/> -->
  186. </center>
  187. </div>
  188. <div class="col-xs-4">
  189. <center>
  190. <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: 100px;"/>
  191. </center>
  192. </div>
  193. </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>