presupuesto_venta_mazapy.xml 18 KB

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