presupuesto_venta_dna.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="presupuesto_venta_dna"
  5. model="sale.order"
  6. string="Presupuesto de Venta"
  7. report_type="qweb-pdf"
  8. name="presupuesto_venta_dna.report_presupuesto_dna"
  9. file="presupuesto_venta_dna.report_presupuesto_dna"
  10. />
  11. <template id="report_presupuesto_dna">
  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-col5{
  110. padding-left: 0.3cm;
  111. width:9cm;
  112. }
  113. .art-col6{
  114. width:2.9cm;
  115. text-align: right;
  116. }
  117. .art-col7{
  118. width:3cm;
  119. text-align: right;
  120. }
  121. .spad{
  122. width: 8.5cm;
  123. float: left;
  124. padding-top: 0.09cm;
  125. padding-bottom: 0.12cm;
  126. min-height: 0.4cm;
  127. }
  128. .subtotal_mat{
  129. width: 4.3cm;
  130. float: left;
  131. text-align: right;
  132. padding-top: 0.09cm;
  133. padding-left: 1cm;
  134. padding-bottom: 0.12cm;
  135. min-height: 0.4cm;
  136. }
  137. .subtotal_mo{
  138. width: 3.6cm;
  139. float: left;
  140. text-align: right;
  141. padding-top: 0.09cm;
  142. padding-bottom: 0.12cm;
  143. min-height: 0.4cm;
  144. }
  145. .logo1{
  146. height: 2cm;
  147. width: 100%;
  148. top: 0px;
  149. }
  150. .foto_personal {
  151. position: absolute;
  152. top: 1.5cm;
  153. left:0.25cm;
  154. }
  155. </style>
  156. <t t-foreach="docs" t-as="o">
  157. <div class="pagina">
  158. <div class="divisoria"> </div>
  159. <div style="border:0.3px solid #000;"></div>
  160. <div class="divisoria"> </div>
  161. <div class="divisoria"> </div>
  162. <div class="row">
  163. <div class="col-xs-4">
  164. <tr>
  165. <div class="descripcion1"><b><i>DNA SRL</i></b></div>
  166. </tr>
  167. <tr>
  168. <div class="email"><b>crmacentral@gmail.com - R.U.C. N°: 80085605/8</b></div>
  169. </tr>
  170. <tr>
  171. <div class="ciudad"><b>LAMBARÉ - PARAGUAY</b></div>
  172. </tr>
  173. <tr>
  174. <div class="tel"><b>(0981) 650 152</b></div>
  175. </tr>
  176. </div>
  177. <div class="col-xs-4">
  178. <center>
  179. <!-- <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;"/> -->
  180. </center>
  181. </div>
  182. <div class="col-xs-4">
  183. <center>
  184. <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;"/>
  185. </center>
  186. </div>
  187. </div>
  188. <div class="divisoria"> </div>
  189. <div class="titulo" >
  190. <h3><strong>NOTA DE PRESUPUESTO N°: <span t-field="o.name"/></strong></h3>
  191. </div>
  192. <table class="table table-condensed table-bordered">
  193. <tr>
  194. <td class="fecha_emision_data"><b>Fecha: </b><span t-field="o.date_order" t-field-options='{"format": "dd MMMM yyyy"}'/></td>
  195. <!-- <td class="vendor"><b>Vendedor: </b><span t-field="o.user_id.name"/></td> -->
  196. </tr>
  197. <tr>
  198. <td class="razon_data"><b>Cliente: </b><span t-field="o.partner_id.name"/></td>
  199. <td class="ruc_data"><b>R.U.C N°: </b><span t-field="o.partner_id.ruc"/></td>
  200. </tr>
  201. <tr>
  202. <td class="direccion_data">
  203. <t t-f="o.partner_id.street"><b>Direccion: </b><span t-field="o.partner_id.street"/></t>
  204. <t t-f="not o.partner_id.street"> </t>
  205. </td>
  206. <td class="telefono_data"><b>Telefono: </b><span t-field="o.partner_id.phone"/></td>
  207. </tr>
  208. <!-- <tr>
  209. <td class="note"><b>Obra: </b><span t-field="o.note"/></td>
  210. </tr> -->
  211. </table>
  212. <table class="table table-condensed table-bordered">
  213. <thead>
  214. <tr>
  215. <th class="text-center">Cantidad</th>
  216. <th class="text-center">Descripción</th>
  217. <th class="text-center">Prec. Unit.</th>
  218. <th class="text-center">Sub Total</th>
  219. </tr>
  220. </thead>
  221. <tbody class="sale_tbody">
  222. <t t-set="valor_mat" t-value="0"/>
  223. <t t-set="valor_mo" t-value="0"/>
  224. <tr t-foreach="o.order_line" t-as="l">
  225. <td class="text-center">
  226. <span t-esc="'%.0f'%l.product_uom_qty"/>
  227. </td>
  228. <td>
  229. <span t-field="l.name"/>
  230. </td>
  231. <td class="text-right">
  232. <t t-if="o.currency_id.id == 166">
  233. <span t-esc="'{0:,.0f}'.format(l.price_unit)"/>
  234. </t>
  235. <t t-if="o.currency_id.id != 166">
  236. <span t-esc="'{0:,.2f}'.format(l.price_unit)"/>
  237. </t>
  238. </td>
  239. <td class="text-right">
  240. <span t-if="o.currency_id.id == 166">
  241. <span t-esc= "'{0:,.0f}'.format(int(l.product_uom_qty * l.price_unit)).replace(',', '.')">
  242. <span t-value="valor_mat+(l.product_uom_qty * l.price_unit)"/></span>
  243. <t t-set="valor_mat" t-value="valor_mat+(l.product_uom_qty * l.price_unit)"/>
  244. </span>
  245. <span t-if="o.currency_id.id != 166">
  246. <span t-esc="'{0:,.2f}'.format(int(l.price_unit*l.product_uom_qty)).replace(',', '.')">
  247. <span t-value="valor_mat+(l.product_uom_qty * l.price_unit)"/></span>
  248. <t t-set="valor_mat" t-value="valor_mat+(l.product_uom_qty * l.price_unit)"/>
  249. </span>
  250. </td>
  251. </tr>
  252. </tbody>
  253. </table>
  254. <div class="row">
  255. <div class="col-xs-12 pull-right">
  256. <table class="table table-condensed">
  257. <td class="art-col1"><b>Sub Totales: </b></td>
  258. <td class="art-col5"></td>
  259. <td class="art-col6">
  260. </td>
  261. <td class="art-col7">
  262. <span t-esc="'{0:,.0f}'.format(int(valor_mat)).replace(',', '.')"></span>
  263. </td>
  264. </table>
  265. </div>
  266. </div>
  267. <div class="row">
  268. <div class="col-xs-4 pull-right">
  269. <table class="table table-condensed">
  270. <tr class="border-black">
  271. <td><strong>Total s/ IVA</strong></td>
  272. <td class="text-right">
  273. <t t-if="o.currency_id.id == 166">
  274. <span t-esc="'{0:,.0f}'.format(o.amount_untaxed)"/>
  275. </t>
  276. <t t-if="o.currency_id.id != 166">
  277. <span t-esc="'{0:,.2f}'.format(o.amount_untaxed)"/>
  278. </t>
  279. </td>
  280. </tr>
  281. <tr>
  282. <td>IVA</td>
  283. <td class="text-right">
  284. <t t-if="o.currency_id.id == 166">
  285. <span t-esc="'{0:,.0f}'.format(o.amount_tax)"/>
  286. </t>
  287. <t t-if="o.currency_id.id != 166">
  288. <span t-esc="'{0:,.2f}'.format(o.amount_tax)"/>
  289. </t>
  290. </td>
  291. </tr>
  292. <tr class="border-black">
  293. <td><strong>Total</strong></td>
  294. <td class="text-right">
  295. <t t-if="o.currency_id.id == 166">
  296. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  297. </t>
  298. <t t-if="o.currency_id.id != 166">
  299. <span t-esc="'{0:,.2f}'.format(o.amount_total)"/>
  300. </t>
  301. </td>
  302. </tr>
  303. </table>
  304. </div>
  305. </div>
  306. </div>
  307. <div class="logo1"> </div>
  308. </t>
  309. </div>
  310. </t>
  311. </template>
  312. </data>
  313. </openerp>