presupuesto_venta_bioelectric.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="presupuesto_venta_bioelectric"
  5. model="sale.order"
  6. string="Presupuesto de Venta"
  7. report_type="qweb-html"
  8. name="presupuesto_venta_bioelectric.report_presupuesto_bioelectric"
  9. file="presupuesto_venta_bioelectric.report_presupuesto_bioelectric"
  10. />
  11. <template id="report_presupuesto_bioelectric">
  12. <t t-call="report.html_container">
  13. <!-- <t t-call="report.external_layout"> -->
  14. <t t-foreach="[1,2]" t-as="i">
  15. <div class="page">
  16. <style type="text/css">
  17. body{
  18. font-size: 3mm;
  19. font-family: Arial;
  20. }
  21. div{
  22. padding: 0px;
  23. }
  24. .pagina{
  25. width:19.3cm;
  26. }
  27. .descripcion1{
  28. width: 11.2cm;
  29. font-size: 13px;
  30. padding-top: 0.2cm;
  31. float: left;
  32. min-height: 0cm;
  33. }
  34. .descripcion2{
  35. width: 13cm;
  36. font-size: 10px;
  37. float: left;
  38. min-height: 0cm;
  39. }
  40. .descripcion3{
  41. width: 15cm;
  42. font-size: 10px;
  43. float: left;
  44. min-height: 0cm;
  45. }
  46. .descripcion4{
  47. width: 15cm;
  48. font-size: 10px;
  49. float: left;
  50. min-height: 0cm;
  51. }
  52. .email{
  53. width: 13cm;
  54. font-size: 10px;
  55. float: left;
  56. min-height: 0cm;
  57. }
  58. .ciudad{
  59. width: 13cm;
  60. float: left;
  61. font-size: 10px;
  62. min-height: 0cm;
  63. }
  64. .tel{
  65. width: 13cm;
  66. float: left;
  67. font-size: 10px;
  68. min-height: 0cm;
  69. }
  70. .table-condensed>tbody>tr>td {
  71. padding: 1px !important;
  72. }
  73. .divisoria{
  74. height: 0.5cm;
  75. clear: both;
  76. }
  77. .fecha_emision_data{
  78. width: 12.5cm;
  79. float: left;
  80. min-height: 0.5cm;
  81. }
  82. .vendor{
  83. width: 6.7cm;
  84. float: left;
  85. min-height: 0.5cm;
  86. }
  87. .razon_data{
  88. width: 12.5cm;
  89. float: left;
  90. min-height: 0.4cm;
  91. }
  92. .ruc_data{
  93. width: 6.7cm;
  94. float: left;
  95. min-height: 0.4cm;
  96. }
  97. .direccion_data{
  98. width: 12.5cm;
  99. float: left;
  100. min-height: 0.4cm;
  101. }
  102. .telefono_data{
  103. width: 6.7cm;
  104. float: left;
  105. min-height: 0.4cm;
  106. }
  107. .note{
  108. width: 19.2cm;
  109. float: left;
  110. min-height: 0.4cm;
  111. }
  112. .cab-articulos{
  113. height: 0.4cm;
  114. clear: both;
  115. }
  116. .articulos{
  117. height: 4.5cm;
  118. }
  119. .art-col1{
  120. width:0.4cm;
  121. text-align: center;
  122. }
  123. .art-col2{
  124. padding-left: 0.7cm;
  125. width:1cm;
  126. text-align: center;
  127. }
  128. .art-col3{
  129. padding-left: 0.3cm;
  130. width:9cm;
  131. }
  132. .art-col4{
  133. width:0.9cm;
  134. text-align: right;
  135. }
  136. .art-col5{
  137. width:2.8cm;
  138. text-align: right;
  139. }
  140. .art-col6{
  141. width:2.7cm;
  142. text-align: right;
  143. }
  144. .art-col7{
  145. width:1.5cm;
  146. text-align: right;
  147. }
  148. .logo1{
  149. height: 2cm;
  150. width: 100%;
  151. top: 0px;
  152. }
  153. </style>
  154. <t t-foreach="docs" t-as="o">
  155. <div class="pagina">
  156. <div class="divisoria"> </div>
  157. <div style="border:0.3px solid #000;"></div>
  158. <div class="divisoria"> </div>
  159. <div class="divisoria"> </div>
  160. <table class="table table-condensed table-bordered">
  161. <thead>
  162. <tr>
  163. <div class="descripcion1"><b><i>BIO ELECTRIC</i></b></div>
  164. </tr>
  165. <tr>
  166. <div class="descripcion2"><b>SOLUCIONES ELECTROMECÁNICAS</b></div>
  167. </tr>
  168. <tr>
  169. <div class="descripcion3"><b>SERVICIOS ELÉCTRICOS 24 hs. - MONTAJES INDUSTRIALES</b></div>
  170. </tr>
  171. <tr>
  172. <div class="descripcion4"><b>AUTOMATIZACIONES - REFRIGERACIÓN, CCTV, SPLIT</b></div>
  173. </tr>
  174. <tr>
  175. <div class="email"><b>bioelectricpy@gmail.com - R.U.C. N°: 4474131-6</b></div>
  176. </tr>
  177. <tr>
  178. <div class="ciudad"><b>SAN ANTONIO - PARAGUAY</b></div>
  179. </tr>
  180. <tr>
  181. <div class="tel"><b>(021) 951827 - (0981) 939132 - (0984) 120678</b></div>
  182. </tr>
  183. </thead>
  184. </table>
  185. <table class="table table-condensed table-bordered">
  186. <tr>
  187. <td class="fecha_emision_data"><b>Fecha: </b><span t-field="o.date_order" t-field-options='{"format": "dd MMMM yyyy"}'/></td>
  188. <td class="vendor"><b>Vendedor: </b><span t-field="o.user_id.name"/></td>
  189. </tr>
  190. <tr>
  191. <td class="razon_data"><b>Cliente: </b><span t-field="o.partner_id.name"/></td>
  192. <td class="ruc_data"><b>R.U.C N°: </b><span t-field="o.partner_id.ruc"/></td>
  193. </tr>
  194. <tr>
  195. <td class="direccion_data">
  196. <t t-f="o.partner_id.street"><b>Direccion: </b><span t-field="o.partner_id.street"/></t>
  197. <t t-f="not o.partner_id.street"> </t>
  198. </td>
  199. <td class="telefono_data"><b>Telefono: </b><span t-field="o.partner_id.phone"/></td>
  200. </tr>
  201. <tr>
  202. <td class="note"><b>Obra: </b><span t-field="o.note"/></td>
  203. </tr>
  204. </table>
  205. <table class="table table-condensed table-bordered">
  206. <thead>
  207. <tr>
  208. <th class="text-center">Cantidad</th>
  209. <th class="text-center">Descripción de material/servicio</th>
  210. <th class="text-center">Prec. Unitario</th>
  211. <th class="text-center">Parcial Materiales</th>
  212. <th class="text-center">Parcial Mano de Obra</th>
  213. </tr>
  214. </thead>
  215. <tbody class="sale_tbody">
  216. <tr t-foreach="o.order_line" t-as="l">
  217. <td class="text-right">
  218. <span t-esc="'%.0f'%l.product_uom_qty"/>
  219. </td>
  220. <td>
  221. <span t-field="l.name"/>
  222. </td>
  223. <td class="text-right">
  224. <t t-if="o.currency_id.id == 166">
  225. <span t-esc="'{0:,.0f}'.format(l.price_unit)"/>
  226. </t>
  227. <t t-if="o.currency_id.id != 166">
  228. <span t-esc="'{0:,.2f}'.format(l.price_unit)"/>
  229. </t>
  230. </td>
  231. <td class="text-right">
  232. <t t-if="o.product_id.type == 'product'">
  233. <t t-if="o.currency_id.id == 166">
  234. <span t-esc="'{0:,.0f}'.format(l.price_unit*l.product_uom_qty)"/>
  235. </t>
  236. <t t-if="o.currency_id.id != 166">
  237. <span t-esc="'{0:,.2f}'.format(l.price_unit*l.product_uom_qty)"/>
  238. </t>
  239. </t>
  240. </td>
  241. <td class="text-right">
  242. <t t-if="o.product_id.type == 'service'">
  243. <t t-if="o.currency_id.id == 166">
  244. <span t-esc="'{0:,.0f}'.format(l.price_unit*l.product_uom_qty)"/>
  245. </t>
  246. <t t-if="o.currency_id.id != 166">
  247. <span t-esc="'{0:,.2f}'.format(l.price_unit*l.product_uom_qty)"/>
  248. </t>
  249. </t>
  250. </td>
  251. </tr>
  252. </tbody>
  253. </table>
  254. <div class="row">
  255. <div class="col-xs-4 pull-right">
  256. <table class="table table-condensed">
  257. <tr class="border-black">
  258. <td><strong>Total s/ IVA</strong></td>
  259. <td class="text-right">
  260. <t t-if="o.currency_id.id == 166">
  261. <span t-esc="'{0:,.0f}'.format(o.amount_untaxed)"/>
  262. </t>
  263. <t t-if="o.currency_id.id != 166">
  264. <span t-esc="'{0:,.2f}'.format(o.amount_untaxed)"/>
  265. </t>
  266. </td>
  267. </tr>
  268. <tr>
  269. <td>IVA</td>
  270. <td class="text-right">
  271. <t t-if="o.currency_id.id == 166">
  272. <span t-esc="'{0:,.0f}'.format(o.amount_tax)"/>
  273. </t>
  274. <t t-if="o.currency_id.id != 166">
  275. <span t-esc="'{0:,.2f}'.format(o.amount_tax)"/>
  276. </t>
  277. </td>
  278. </tr>
  279. <tr class="border-black">
  280. <td><strong>Total</strong></td>
  281. <td class="text-right">
  282. <t t-if="o.currency_id.id == 166">
  283. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  284. </t>
  285. <t t-if="o.currency_id.id != 166">
  286. <span t-esc="'{0:,.2f}'.format(o.amount_total)"/>
  287. </t>
  288. </td>
  289. </tr>
  290. </table>
  291. </div>
  292. </div>
  293. <table class="table table-condensed table-bordered">
  294. <tr>
  295. <td class="note"><b>OBS.: Los totales de costo de materiales y mano de obra 10% iva incluído</b></td>
  296. </tr>
  297. <tr>
  298. <td class="payment_term"><b>Forma de Pago: </b><span t-field="o.payment_term"/></td>
  299. </tr>
  300. </table>
  301. <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>
  302. </div>
  303. <div class="logo1"> </div>
  304. </t>
  305. </div>
  306. </t>
  307. <!-- </t> -->
  308. </t>
  309. </template>
  310. </data>
  311. </openerp>