presupuesto_venta_decorart.xml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="presupuesto_venta_decorart"
  5. model="sale.order"
  6. string="Presupuesto de Venta"
  7. report_type="qweb-html"
  8. name="presupuesto_venta_decorart.report_presupuesto_decorart"
  9. file="presupuesto_venta_decorart.report_presupuesto_decorart"
  10. />
  11. <template id="report_presupuesto_decorart">
  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: 17px;
  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. .rucdata{
  69. width: 13cm;
  70. float: left;
  71. font-size: 10px;
  72. min-height: 0cm;
  73. }
  74. .table-condensed>tbody>tr>td {
  75. padding: 1px !important;
  76. }
  77. .divisoria{
  78. height: 0.5cm;
  79. clear: both;
  80. }
  81. .titulo{
  82. width: 19.2cm;
  83. text-align: center;
  84. width: 100%;
  85. min-height: 0.9cm;
  86. }
  87. .fecha_emision_data{
  88. width: 12.5cm;
  89. float: left;
  90. min-height: 0.5cm;
  91. }
  92. .vendor{
  93. width: 6.7cm;
  94. float: left;
  95. min-height: 0.5cm;
  96. }
  97. .razon_data{
  98. width: 12.5cm;
  99. float: left;
  100. min-height: 0.4cm;
  101. }
  102. .ruc_data{
  103. width: 6.7cm;
  104. float: left;
  105. min-height: 0.4cm;
  106. }
  107. .direccion_data{
  108. width: 19.2cm;
  109. float: left;
  110. min-height: 0.4cm;
  111. }
  112. .telefono_data{
  113. width: 19.2cm;
  114. float: left;
  115. min-height: 0.4cm;
  116. }
  117. .note{
  118. width: 19.2cm;
  119. float: left;
  120. min-height: 0.4cm;
  121. }
  122. .cab-articulos{
  123. height: 0.4cm;
  124. clear: both;
  125. }
  126. .articulos{
  127. height: 4.5cm;
  128. }
  129. .art-col1{
  130. width:2.3cm;
  131. text-align: center;
  132. }
  133. .art-col3{
  134. padding-left: 3cm;
  135. width:1cm;
  136. text-align: center;
  137. }
  138. .art-col4{
  139. padding-left: 0.3cm;
  140. width:9cm;
  141. }
  142. .art-col5{
  143. width:3.2cm;
  144. text-align: right;
  145. }
  146. .art-col6{
  147. width:3.6cm;
  148. text-align: right;
  149. }
  150. .spad{
  151. width: 8.5cm;
  152. float: left;
  153. padding-top: 0.09cm;
  154. padding-bottom: 0.12cm;
  155. min-height: 0.4cm;
  156. }
  157. .subtotal_mat{
  158. width: 4.3cm;
  159. float: left;
  160. text-align: right;
  161. padding-top: 0.09cm;
  162. padding-left: 1cm;
  163. padding-bottom: 0.12cm;
  164. min-height: 0.4cm;
  165. }
  166. .subtotal_mo{
  167. width: 3.6cm;
  168. float: left;
  169. text-align: right;
  170. padding-top: 0.09cm;
  171. padding-bottom: 0.12cm;
  172. min-height: 0.4cm;
  173. }
  174. .logo1{
  175. height: 2cm;
  176. width: 100%;
  177. top: 0px;
  178. }
  179. .foto_personal {
  180. position: absolute;
  181. top: 1.5cm;
  182. left:0.25cm;
  183. }
  184. </style>
  185. <t t-foreach="docs" t-as="o">
  186. <div class="pagina">
  187. <div class="divisoria"> </div>
  188. <div style="border:0.3px solid #000;"></div>
  189. <div class="divisoria"> </div>
  190. <div class="divisoria"> </div>
  191. <div class="row">
  192. <div class="col-xs-4">
  193. <tr>
  194. <div class="descripcion1"><b><i>M Y S DECORART</i></b></div>
  195. </tr>
  196. <tr>
  197. <div class="descripcion2"><b>Tu espacio a medida</b></div>
  198. </tr>
  199. <tr>
  200. <div class="descripcion3"><b>Km. 5 - Acaray - Fracción San Pablo II</b></div>
  201. </tr>
  202. <tr>
  203. <div class="descripcion4"><b>A 700 mts de la Copetrol - M: 8 L: 9</b></div>
  204. </tr>
  205. <tr>
  206. <div class="email"><b>Bº María Auxiliadora - Ciudad del Este - Paraguay</b></div>
  207. </tr>
  208. <tr>
  209. <div class="ciudad"><b>Gestiones_empresariales@hotmail.com</b></div>
  210. </tr>
  211. <tr>
  212. <div class="tel"><b>(061) 572 311 - (0983) 658 086</b></div>
  213. </tr>
  214. <tr>
  215. <div class="rucdata"><b>R.U.C. N° 2.405.627- </b></div>
  216. </tr>
  217. </div>
  218. <div class="col-xs-8">
  219. <center>
  220. <img t-if="o.company_id.logo" t-att-src="'data:image/png;base64,%s' % o.company_id.logo" style="max-height: 250px;max-width: 80px;"/>
  221. </center>
  222. </div>
  223. </div>
  224. <div class="divisoria"> </div>
  225. <div class="titulo" >
  226. <h3><strong>NOTA DE PRESUPUESTO N°: <span t-field="o.name"/></strong></h3>
  227. </div>
  228. <table class="table table-condensed table-bordered">
  229. <tr>
  230. <td class="fecha_emision_data"><b>Fecha: </b><span t-field="o.date_order" t-field-options='{"format": "dd MMMM yyyy"}'/></td>
  231. <td class="vendor"><b>Vendedor: </b><span t-field="o.user_id.name"/></td>
  232. </tr>
  233. <tr>
  234. <td class="razon_data"><b>Cliente: </b><span t-field="o.partner_id.name"/></td>
  235. <td class="ruc_data"><b>R.U.C N°: </b><span t-field="o.partner_id.ruc"/></td>
  236. </tr>
  237. <tr>
  238. <td class="direccion_data">
  239. <t t-f="o.partner_id.street"><b>Direccion: </b><span t-field="o.partner_id.street"/></t>
  240. <t t-f="not o.partner_id.street"> </t>
  241. </td>
  242. </tr>
  243. <tr>
  244. <td class="telefono_data"><b>Telefono: </b><span t-field="o.partner_id.phone"/></td>
  245. </tr>
  246. </table>
  247. <table class="table table-condensed table-bordered">
  248. <thead>
  249. <tr>
  250. <th class="text-center">Imagen</th>
  251. <th class="text-center">Cantidad</th>
  252. <th class="text-center">Descripción</th>
  253. <th class="text-center">Prec. Unitario</th>
  254. <th class="text-center">Subtotal</th>
  255. </tr>
  256. </thead>
  257. <tbody class="sale_tbody">
  258. <t t-set="valor_mat" t-value="0"/>
  259. <t t-set="valor_mo" t-value="0"/>
  260. <tr t-foreach="o.order_line" t-as="l">
  261. <td class="art-col1">
  262. <span t-field="l.product_id.image_small" t-field-options='{"widget": "image"}' class="Your_custom_class"/>
  263. </td>
  264. <td class="text-center">
  265. <span t-esc="'%.0f'%l.product_uom_qty"/>
  266. </td>
  267. <td>
  268. <span t-field="l.name"/>
  269. </td>
  270. <td class="text-right">
  271. <t t-if="o.currency_id.id == 166">
  272. <span t-esc="'{0:,.0f}'.format(l.price_unit)"/>
  273. </t>
  274. <t t-if="o.currency_id.id != 166">
  275. <span t-esc="'{0:,.2f}'.format(l.price_unit)"/>
  276. </t>
  277. </td>
  278. <td class="text-right">
  279. <span t-if="o.currency_id.id == 166">
  280. <span t-esc= "'{0:,.0f}'.format(int(l.product_uom_qty * l.price_unit)).replace(',', '.')">
  281. <span t-value="valor_mat+(l.product_uom_qty * l.price_unit)"/></span>
  282. <t t-set="valor_mat" t-value="valor_mat+(l.product_uom_qty * l.price_unit)"/>
  283. </span>
  284. </td>
  285. </tr>
  286. </tbody>
  287. </table>
  288. <div class="row">
  289. <div class="col-xs-12 pull-right">
  290. <table class="table table-condensed">
  291. <td class="art-col1"><b>Sub Totales: </b></td>
  292. <td class="art-col3"></td>
  293. <td class="art-col4"></td>
  294. <td class="art-col5">
  295. <span t-esc="'{0:,.0f}'.format(int(valor_mat)).replace(',', '.')"></span>
  296. </td>
  297. </table>
  298. </div>
  299. </div>
  300. <div class="row">
  301. <div class="col-xs-4 pull-right">
  302. <table class="table table-condensed">
  303. <tr class="border-black">
  304. <td><strong>Total s/ IVA</strong></td>
  305. <td class="text-right">
  306. <t t-if="o.currency_id.id == 166">
  307. <span t-esc="'{0:,.0f}'.format(o.amount_untaxed)"/>
  308. </t>
  309. <t t-if="o.currency_id.id != 166">
  310. <span t-esc="'{0:,.2f}'.format(o.amount_untaxed)"/>
  311. </t>
  312. </td>
  313. </tr>
  314. <tr>
  315. <td>IVA</td>
  316. <td class="text-right">
  317. <t t-if="o.currency_id.id == 166">
  318. <span t-esc="'{0:,.0f}'.format(o.amount_tax)"/>
  319. </t>
  320. <t t-if="o.currency_id.id != 166">
  321. <span t-esc="'{0:,.2f}'.format(o.amount_tax)"/>
  322. </t>
  323. </td>
  324. </tr>
  325. <tr class="border-black">
  326. <td><strong>Total</strong></td>
  327. <td class="text-right">
  328. <t t-if="o.currency_id.id == 166">
  329. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  330. </t>
  331. <t t-if="o.currency_id.id != 166">
  332. <span t-esc="'{0:,.2f}'.format(o.amount_total)"/>
  333. </t>
  334. </td>
  335. </tr>
  336. </table>
  337. </div>
  338. </div>
  339. <table class="table table-condensed table-bordered">
  340. <tr>
  341. <td class="note"><b>OBS.: </b></td>
  342. </tr>
  343. <!-- <tr>
  344. <td class="payment_term"><b>Forma de Pago: </b><span t-field="o.payment_term"/></td>
  345. </tr> -->
  346. </table>
  347. <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>
  348. </div>
  349. <div class="logo1"> </div>
  350. </t>
  351. </div>
  352. </t>
  353. </template>
  354. </data>
  355. </openerp>