presupuesto_venta_profesional.xml 21 KB

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