presupuesto_venta_giganet.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="presupuesto_venta_giganet"
  5. model="sale.order"
  6. string="Presupuesto de Venta"
  7. report_type="qweb-html"
  8. name="presupuesto_venta_giganet.report_presupuesto_giganet"
  9. file="presupuesto_venta_giganet.report_presupuesto_giganet"
  10. />
  11. <template id="report_presupuesto_giganet">
  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.4cm;
  36. float: left;
  37. min-height: 0cm;
  38. }
  39. .descripcion3{
  40. width: 15cm;
  41. font-size: 10px;
  42. float: left;
  43. min-height: 0cm;
  44. }
  45. .descripcion4{
  46. width: 15cm;
  47. font-size: 10px;
  48. float: left;
  49. min-height: 0cm;
  50. }
  51. .email{
  52. width: 13cm;
  53. font-size: 10px;
  54. float: left;
  55. min-height: 0cm;
  56. }
  57. .ciudad{
  58. width: 13cm;
  59. float: left;
  60. font-size: 10px;
  61. min-height: 0cm;
  62. }
  63. .tel{
  64. width: 13cm;
  65. float: left;
  66. font-size: 10px;
  67. min-height: 0cm;
  68. }
  69. .rucdata{
  70. width: 13cm;
  71. float: left;
  72. font-size: 10px;
  73. min-height: 0cm;
  74. }
  75. .table-condensed>tbody>tr>td {
  76. padding: 1px !important;
  77. }
  78. .divisoria{
  79. height: 0.5cm;
  80. clear: both;
  81. }
  82. .titulo{
  83. width: 19.2cm;
  84. text-align: center;
  85. width: 100%;
  86. min-height: 0.9cm;
  87. }
  88. .fecha_emision_data{
  89. width: 12.5cm;
  90. float: left;
  91. min-height: 0.5cm;
  92. }
  93. .vendor{
  94. width: 6.7cm;
  95. float: left;
  96. min-height: 0.5cm;
  97. }
  98. .razon_data{
  99. width: 12.5cm;
  100. float: left;
  101. min-height: 0.4cm;
  102. }
  103. .ruc_data{
  104. width: 6.7cm;
  105. float: left;
  106. min-height: 0.4cm;
  107. }
  108. .direccion_data{
  109. width: 19.2cm;
  110. float: left;
  111. min-height: 0.4cm;
  112. }
  113. .telefono_data{
  114. width: 19.2cm;
  115. float: left;
  116. min-height: 0.4cm;
  117. }
  118. .note{
  119. width: 19.2cm;
  120. float: left;
  121. min-height: 0.4cm;
  122. }
  123. .cab-articulos{
  124. height: 0.4cm;
  125. clear: both;
  126. }
  127. .articulos{
  128. height: 4.5cm;
  129. }
  130. .art-col3{
  131. padding-left: 3cm;
  132. width:1cm;
  133. text-align: center;
  134. }
  135. .art-col4{
  136. padding-left: 0.3cm;
  137. width:11cm;
  138. }
  139. .art-col5{
  140. width:3.2cm;
  141. text-align: right;
  142. }
  143. .art-col6{
  144. width:3.6cm;
  145. text-align: right;
  146. }
  147. .spad{
  148. width: 8.5cm;
  149. float: left;
  150. padding-top: 0.09cm;
  151. padding-bottom: 0.12cm;
  152. min-height: 0.4cm;
  153. }
  154. .subtotal_mat{
  155. width: 4.3cm;
  156. float: left;
  157. text-align: right;
  158. padding-top: 0.09cm;
  159. padding-left: 1cm;
  160. padding-bottom: 0.12cm;
  161. min-height: 0.4cm;
  162. }
  163. .subtotal_mo{
  164. width: 3.6cm;
  165. float: left;
  166. text-align: right;
  167. padding-top: 0.09cm;
  168. padding-bottom: 0.12cm;
  169. min-height: 0.4cm;
  170. }
  171. .logo1{
  172. height: 2cm;
  173. width: 100%;
  174. top: 0px;
  175. }
  176. .foto_personal {
  177. position: absolute;
  178. top: 1.5cm;
  179. left:0.25cm;
  180. }
  181. </style>
  182. <t t-foreach="docs" t-as="o">
  183. <div class="pagina">
  184. <div class="divisoria"> </div>
  185. <div style="border:0.3px solid #000;"></div>
  186. <div class="divisoria"> </div>
  187. <div class="divisoria"> </div>
  188. <div class="row">
  189. <div class="col-xs-4">
  190. <center>
  191. <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;"/>
  192. </center>
  193. </div>
  194. <div class="col-xs-8">
  195. <tr>
  196. <div class="descripcion">
  197. </div>
  198. </tr>
  199. <tr>
  200. <div class="descripcion1"><b><i>Giganet S.A.</i></b></div>
  201. </tr>
  202. <tr>
  203. <div class="descripcion3"><b>R.U.C. N°: 80086052-7</b></div>
  204. </tr>
  205. <tr>
  206. <div class="descripcion4"><b></b></div>
  207. </tr>
  208. <tr>
  209. <div class="email"><b>Ciudad del Este - Paraguay</b></div>
  210. </tr>
  211. <tr>
  212. <div class="ciudad"><b>giganet@giganet.net.py</b></div>
  213. </tr>
  214. <tr>
  215. <div class="tel"><b>Tel.: (061) 573 777 - (0994) 544 000</b></div>
  216. </tr>
  217. <tr>
  218. <div class="rucdata"><b></b></div>
  219. </tr>
  220. </div>
  221. </div>
  222. <hr width="100%" style="border: 2px dashed #C0C0C0" color="#FFFFFF" size="6"></hr>
  223. <div class="divisoria"> </div>
  224. <table>
  225. <tr style="border-bottom:1px solid black">
  226. <td colspan="100%"></td>
  227. </tr>
  228. </table>
  229. <div class="titulo" >
  230. <h3><strong>NOTA DE PRESUPUESTO N°: <span t-field="o.name"/></strong></h3>
  231. </div>
  232. <table class="table table-condensed table-bordered">
  233. <tr>
  234. <td class="fecha_emision_data"><b>Fecha: </b><span t-field="o.date_order" t-field-options='{"format": "dd MMMM yyyy"}'/></td>
  235. <td class="vendor"><b>Vendedor: </b><span t-field="o.user_id.name"/></td>
  236. </tr>
  237. <tr>
  238. <td class="razon_data"><b>Cliente: </b><span t-field="o.partner_id.name"/></td>
  239. <td class="ruc_data"><b>R.U.C N°: </b><span t-field="o.partner_id.ruc"/></td>
  240. </tr>
  241. <tr>
  242. <td class="direccion_data">
  243. <t t-f="o.partner_id.street"><b>Direccion: </b><span t-field="o.partner_id.street"/></t>
  244. <t t-f="not o.partner_id.street"> </t>
  245. </td>
  246. </tr>
  247. <tr>
  248. <td class="telefono_data"><b>Telefono: </b><span t-field="o.partner_id.phone"/></td>
  249. </tr>
  250. </table>
  251. <table class="table table-condensed table-bordered">
  252. <thead>
  253. <tr>
  254. <th class="art-col3">Cantidad</th>
  255. <th class="art-col4">Descripción</th>
  256. <th class="art-col5">Prec. Unitario</th>
  257. <th class="art-col6">Subtotal</th>
  258. </tr>
  259. </thead>
  260. <tbody class="sale_tbody">
  261. <t t-set="valor_mat" t-value="0"/>
  262. <t t-set="valor_mo" t-value="0"/>
  263. <tr t-foreach="o.order_line" t-as="l">
  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><span t-field="o.note"/></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>