presupuesto_venta_profesional.xml 20 KB

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