presupuesto_venta_bioelectric.xml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="presupuesto_venta_bioelectric"
  5. model="sale.order"
  6. string="Presupuesto de Venta"
  7. report_type="qweb-html"
  8. name="presupuesto_venta_bioelectric.report_presupuesto_bioelectric"
  9. file="presupuesto_venta_bioelectric.report_presupuesto_bioelectric"
  10. />
  11. <template id="report_presupuesto_bioelectric">
  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. }
  25. .descripcion1{
  26. width: 11.2cm;
  27. font-size: 13px;
  28. padding-top: 0.2cm;
  29. float: left;
  30. min-height: 0cm;
  31. }
  32. .descripcion2{
  33. width: 13cm;
  34. font-size: 10px;
  35. float: left;
  36. min-height: 0cm;
  37. }
  38. .descripcion3{
  39. width: 15cm;
  40. font-size: 10px;
  41. float: left;
  42. min-height: 0cm;
  43. }
  44. .descripcion4{
  45. width: 15cm;
  46. font-size: 10px;
  47. float: left;
  48. min-height: 0cm;
  49. }
  50. .email{
  51. width: 13cm;
  52. font-size: 10px;
  53. float: left;
  54. min-height: 0cm;
  55. }
  56. .ciudad{
  57. width: 13cm;
  58. float: left;
  59. font-size: 10px;
  60. min-height: 0cm;
  61. }
  62. .tel{
  63. width: 13cm;
  64. float: left;
  65. font-size: 10px;
  66. min-height: 0cm;
  67. }
  68. .table-condensed>tbody>tr>td {
  69. padding: 1px !important;
  70. }
  71. .divisoria{
  72. height: 0.2cm;
  73. clear: both;
  74. }
  75. .titulo{
  76. width: 19.2cm;
  77. text-align: center;
  78. width: 100%;
  79. min-height: 0.9cm;
  80. }
  81. .fecha_emision_data{
  82. width: 12.5cm;
  83. float: left;
  84. min-height: 0.5cm;
  85. }
  86. .vendor{
  87. width: 6.7cm;
  88. float: left;
  89. min-height: 0.5cm;
  90. }
  91. .razon_data{
  92. width: 12.5cm;
  93. float: left;
  94. min-height: 0.4cm;
  95. }
  96. .ruc_data{
  97. width: 6.7cm;
  98. float: left;
  99. min-height: 0.4cm;
  100. }
  101. .direccion_data{
  102. width: 12.5cm;
  103. float: left;
  104. min-height: 0.4cm;
  105. }
  106. .telefono_data{
  107. width: 6.7cm;
  108. float: left;
  109. min-height: 0.4cm;
  110. }
  111. .note{
  112. width: 19.2cm;
  113. float: left;
  114. min-height: 0.4cm;
  115. }
  116. .cab-articulos{
  117. height: 0.4cm;
  118. clear: both;
  119. }
  120. .articulos{
  121. height: 4.5cm;
  122. }
  123. .art-col1{
  124. width:1.3cm;
  125. text-align: center;
  126. }
  127. .art-col2{
  128. width:1.3cm;
  129. text-align: center;
  130. }
  131. .art-col3{
  132. width:3cm;
  133. text-align: left;
  134. }
  135. .art-col4{
  136. padding-left: 0.7cm;
  137. width:1cm;
  138. text-align: center;
  139. }
  140. .art-col5{
  141. padding-left: 0.3cm;
  142. width:9cm;
  143. }
  144. .art-col6{
  145. width:2.9cm;
  146. text-align: right;
  147. }
  148. .art-col7{
  149. width:3cm;
  150. text-align: right;
  151. }
  152. .art-col8{
  153. width:4.2cm;
  154. text-align: right;
  155. }
  156. .spad{
  157. width: 8.5cm;
  158. float: left;
  159. padding-top: 0.09cm;
  160. padding-bottom: 0.12cm;
  161. min-height: 0.4cm;
  162. }
  163. .subtotal_mat{
  164. width: 4.3cm;
  165. float: left;
  166. text-align: right;
  167. padding-top: 0.09cm;
  168. padding-left: 1cm;
  169. padding-bottom: 0.12cm;
  170. min-height: 0.4cm;
  171. }
  172. .subtotal_mo{
  173. width: 3.6cm;
  174. float: left;
  175. text-align: right;
  176. padding-top: 0.09cm;
  177. padding-bottom: 0.12cm;
  178. min-height: 0.4cm;
  179. }
  180. .logo1{
  181. height: 2cm;
  182. width: 100%;
  183. top: 0px;
  184. }
  185. .foto_personal {
  186. position: absolute;
  187. top: 1.5cm;
  188. left:0.25cm;
  189. }
  190. </style>
  191. <t t-foreach="docs" t-as="o">
  192. <div class="pagina">
  193. <div class="divisoria"> </div>
  194. <div style="border:0.3px solid #000;"></div>
  195. <!-- <div class="divisoria"> </div> -->
  196. <!-- <div class="divisoria"> </div> -->
  197. <div class="row">
  198. <div class="col-xs-8">
  199. <tr>
  200. <div class="descripcion1"><b><i>BIO ELECTRIC</i></b></div>
  201. </tr>
  202. <tr>
  203. <div class="descripcion2"><b>SOLUCIONES ELECTROMECÁNICAS</b></div>
  204. </tr>
  205. <tr>
  206. <div class="descripcion3"><b>SERVICIOS ELÉCTRICOS 24 hs. - MONTAJES INDUSTRIALES</b></div>
  207. </tr>
  208. <tr>
  209. <div class="descripcion4"><b>AUTOMATIZACIONES - REFRIGERACIÓN, CCTV, SPLIT</b></div>
  210. </tr>
  211. <tr>
  212. <div class="email"><b>bioelectric.central@hotmail.com - R.U.C. N°: 5847352-1</b></div>
  213. </tr>
  214. <tr>
  215. <div class="ciudad"><b>SAN ANTONIO - PARAGUAY</b></div>
  216. </tr>
  217. <tr>
  218. <div class="tel"><b>(021) 951825 - (0981) 353235 - (0983) 541504</b></div>
  219. </tr>
  220. </div>
  221. <div class="col-xs-4">
  222. <left>
  223. <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: 70px;"/>
  224. </left>
  225. </div>
  226. </div>
  227. <div class="divisoria"> </div>
  228. <div class="titulo" >
  229. <h3><strong>NOTA DE PRESUPUESTO N°: <span t-field="o.name"/></strong></h3>
  230. </div>
  231. <table class="table table-condensed table-bordered">
  232. <tr>
  233. <td class="fecha_emision_data"><b>Fecha: </b><span t-field="o.date_order" t-field-options='{"format": "dd MMMM yyyy"}'/></td>
  234. <td class="vendor"><b>Vendedor: </b><span t-field="o.user_id.name"/></td>
  235. </tr>
  236. <tr>
  237. <td class="razon_data"><b>Cliente: </b><span t-field="o.partner_id.name"/></td>
  238. <td class="ruc_data"><b>R.U.C N°: </b><span t-field="o.partner_id.ruc"/></td>
  239. </tr>
  240. <tr>
  241. <td class="direccion_data">
  242. <t t-f="o.partner_id.street"><b>Direccion: </b><span t-field="o.partner_id.street"/></t>
  243. <t t-f="not o.partner_id.street"> </t>
  244. </td>
  245. <td class="telefono_data"><b>Telefono: </b><span t-field="o.partner_id.phone"/></td>
  246. </tr>
  247. <tr>
  248. <td class="note"><b>Obra: </b><span t-field="o.note"/></td>
  249. </tr>
  250. </table>
  251. <table class="table table-condensed table-bordered">
  252. <thead>
  253. <tr>
  254. <th class="text-center">Orden</th>
  255. <th class="text-center">Imagen</th>
  256. <th class="text-center">Cantidad</th>
  257. <th class="text-center">Medida</th>
  258. <th class="text-center">Descripción de material/servicio</th>
  259. <th class="text-center">Prec. Unitario</th>
  260. <th class="text-center">Parcial Materiales</th>
  261. <th class="text-center">Parcial Mano de Obra</th>
  262. </tr>
  263. </thead>
  264. <tbody class="sale_tbody">
  265. <t t-set="valor_mat" t-value="0"/>
  266. <t t-set="valor_mo" t-value="0"/>
  267. <tr t-foreach="o.order_line" t-as="l">
  268. <td class="art-col1">
  269. <span t-field="l.sequence2"/>
  270. </td>
  271. <td class="art-col2">
  272. <span t-field="l.product_id.image_small" t-field-options='{"widget": "image"}' class="Your_custom_class"/>
  273. </td>
  274. <td class="text-center">
  275. <span t-esc="'%.0f'%l.product_uom_qty"/>
  276. </td>
  277. <td>
  278. <span t-field="l.product_uom"/>
  279. </td>
  280. <td>
  281. <span t-field="l.name"/>
  282. </td>
  283. <td class="text-right">
  284. <t t-if="o.currency_id.id == 166">
  285. <span t-esc="'{0:,.0f}'.format(l.price_unit)"/>
  286. </t>
  287. <t t-if="o.currency_id.id != 166">
  288. <span t-esc="'{0:,.2f}'.format(l.price_unit)"/>
  289. </t>
  290. </td>
  291. <td class="text-right">
  292. <t t-if="l.product_id.type == 'product'">
  293. <span t-if="o.currency_id.id == 166">
  294. <span t-esc= "'{0:,.0f}'.format(int(l.product_uom_qty * l.price_unit)).replace(',', '.')">
  295. <span t-value="valor_mat+(l.product_uom_qty * l.price_unit)"/></span>
  296. <t t-set="valor_mat" t-value="valor_mat+(l.product_uom_qty * l.price_unit)"/>
  297. </span>
  298. <span t-if="o.currency_id.id != 166">
  299. <span t-esc="'{0:,.2f}'.format(int(l.price_unit*l.product_uom_qty)).replace(',', '.')">
  300. <span t-value="valor_mat+(l.product_uom_qty * l.price_unit)"/></span>
  301. <t t-set="valor_mat" t-value="valor_mat+(l.product_uom_qty * l.price_unit)"/>
  302. </span>
  303. </t>
  304. </td>
  305. <td class="text-right">
  306. <t t-if="l.product_id.type == 'service'">
  307. <span t-if="o.currency_id.id == 166">
  308. <span t-esc= "'{0:,.0f}'.format(int(l.product_uom_qty * l.price_unit)).replace(',', '.')">
  309. <span t-value="valor_mo+(l.product_uom_qty * l.price_unit)"/></span>
  310. <t t-set="valor_mo" t-value="valor_mo+(l.product_uom_qty * l.price_unit)"/>
  311. </span>
  312. <span t-if="o.currency_id.id != 166">
  313. <span t-esc="'{0:,.2f}'.format(int(l.price_unit*l.product_uom_qty)).replace(',', '.')">
  314. <span t-value="valor_mo+(l.product_uom_qty * l.price_unit)"/></span>
  315. <t t-set="valor_mo" t-value="valor_mo+(l.product_uom_qty * l.price_unit)"/>
  316. </span>
  317. </t>
  318. </td>
  319. </tr>
  320. </tbody>
  321. </table>
  322. <div class="row">
  323. <div class="col-xs-12 pull-right">
  324. <table class="table table-condensed">
  325. <td class="art-col1"><b>Sub Totales: </b></td>
  326. <td class="art-col2"></td>
  327. <td class="art-col3"></td>
  328. <td class="art-col4"></td>
  329. <td class="art-col5"></td>
  330. <td class="art-col6">
  331. <span t-esc="'{0:,.0f}'.format(int(valor_mat)).replace(',', '.')"></span>
  332. </td>
  333. <td class="art-col7">
  334. <span t-esc="'{0:,.0f}'.format(int(valor_mo)).replace(',', '.')"></span>
  335. </td>
  336. </table>
  337. </div>
  338. </div>
  339. <div class="row">
  340. <div class="col-xs-4 pull-right">
  341. <table class="table table-condensed">
  342. <tr class="border-black">
  343. <td><strong>Monto Gravado</strong></td>
  344. <td class="text-right">
  345. <t t-if="o.currency_id.id == 166">
  346. <span t-esc="'{0:,.0f}'.format(o.amount_untaxed)"/>
  347. </t>
  348. <t t-if="o.currency_id.id != 166">
  349. <span t-esc="'{0:,.2f}'.format(o.amount_untaxed)"/>
  350. </t>
  351. </td>
  352. </tr>
  353. <tr>
  354. <td>IVA 10%</td>
  355. <td class="text-right">
  356. <t t-if="o.currency_id.id == 166">
  357. <span t-esc="'{0:,.0f}'.format(o.amount_tax)"/>
  358. </t>
  359. <t t-if="o.currency_id.id != 166">
  360. <span t-esc="'{0:,.2f}'.format(o.amount_tax)"/>
  361. </t>
  362. </td>
  363. </tr>
  364. <tr class="border-black">
  365. <td><strong>Total</strong></td>
  366. <td class="text-right">
  367. <t t-if="o.currency_id.id == 166">
  368. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  369. </t>
  370. <t t-if="o.currency_id.id != 166">
  371. <span t-esc="'{0:,.2f}'.format(o.amount_total)"/>
  372. </t>
  373. </td>
  374. </tr>
  375. </table>
  376. </div>
  377. </div>
  378. <table class="table table-condensed table-bordered">
  379. <tr>
  380. <td class="note"><b>OBS.: Los totales de costo de materiales y mano de obra 10% iva incluído</b></td>
  381. </tr>
  382. <tr>
  383. <td class="payment_term"><b>Forma de Pago: </b><span t-field="o.payment_term"/></td>
  384. </tr>
  385. </table>
  386. <tr><t><b>Aprobado por: __________________</b></t>&amp;nbsp;&amp;nbsp;<t><b>Firma:___________________</b></t>&amp;nbsp;&amp;nbsp;<t><b>C.I.N°:___________________</b></t>&amp;nbsp;&amp;nbsp;<t><b>Entrega:_______________</b></t></tr>
  387. </div>
  388. <div class="logo1"> </div>
  389. </t>
  390. </div>
  391. </t>
  392. </template>
  393. </data>
  394. </openerp>