presupuesto_venta_profesional.xml 20 KB

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