presupuesto_venta_smile.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="presupuesto_venta_smile"
  5. model="sale.order"
  6. string="Presupuesto de Venta"
  7. report_type="qweb-pdf"
  8. name="presupuesto_venta_smile.report_presupuesto_smile"
  9. file="presupuesto_venta_smile.report_presupuesto_smile"
  10. />
  11. <template id="report_presupuesto_smile">
  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. padding-left: 3cm;
  25. padding-right: 1cm;
  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. .email{
  35. width: 13cm;
  36. font-size: 10px;
  37. float: left;
  38. min-height: 0cm;
  39. }
  40. .ciudad{
  41. width: 13cm;
  42. float: left;
  43. font-size: 10px;
  44. min-height: 0cm;
  45. }
  46. .tel{
  47. width: 13cm;
  48. float: left;
  49. font-size: 10px;
  50. min-height: 0cm;
  51. }
  52. .table-condensed>tbody>tr>td {
  53. padding: 1px !important;
  54. }
  55. .divisoria{
  56. height: 0.5cm;
  57. clear: both;
  58. }
  59. .titulo{
  60. width: 19.2cm;
  61. text-align: center;
  62. width: 100%;
  63. min-height: 0.9cm;
  64. }
  65. .fecha_emision_data{
  66. width: 12.5cm;
  67. float: left;
  68. min-height: 0.5cm;
  69. }
  70. .vendor{
  71. width: 6.7cm;
  72. float: left;
  73. min-height: 0.5cm;
  74. }
  75. .razon_data{
  76. width: 12.5cm;
  77. float: left;
  78. min-height: 0.4cm;
  79. }
  80. .ruc_data{
  81. width: 6.7cm;
  82. float: left;
  83. min-height: 0.4cm;
  84. }
  85. .direccion_data{
  86. width: 12.5cm;
  87. float: left;
  88. min-height: 0.4cm;
  89. }
  90. .telefono_data{
  91. width: 6.7cm;
  92. float: left;
  93. min-height: 0.4cm;
  94. }
  95. .note{
  96. width: 19.2cm;
  97. float: left;
  98. min-height: 0.4cm;
  99. }
  100. .cab-articulos{
  101. height: 0.4cm;
  102. clear: both;
  103. }
  104. .articulos{
  105. height: 4.5cm;
  106. }
  107. .art-col1{
  108. width:1.3cm;
  109. text-align: center;
  110. }
  111. .art-col5{
  112. padding-left: 0.3cm;
  113. width:9cm;
  114. }
  115. .art-col6{
  116. width:2.9cm;
  117. text-align: right;
  118. }
  119. .art-col7{
  120. width:3cm;
  121. text-align: right;
  122. }
  123. .spad{
  124. width: 8.5cm;
  125. float: left;
  126. padding-top: 0.09cm;
  127. padding-bottom: 0.12cm;
  128. min-height: 0.4cm;
  129. }
  130. .subtotal_mat{
  131. width: 4.3cm;
  132. float: left;
  133. text-align: right;
  134. padding-top: 0.09cm;
  135. padding-left: 1cm;
  136. padding-bottom: 0.12cm;
  137. min-height: 0.4cm;
  138. }
  139. .subtotal_mo{
  140. width: 3.6cm;
  141. float: left;
  142. text-align: right;
  143. padding-top: 0.09cm;
  144. padding-bottom: 0.12cm;
  145. min-height: 0.4cm;
  146. }
  147. .logo1{
  148. height: 2cm;
  149. width: 100%;
  150. top: 0px;
  151. }
  152. .foto_personal {
  153. position: absolute;
  154. top: 1.5cm;
  155. left:0.25cm;
  156. }
  157. </style>
  158. <t t-foreach="docs" t-as="o">
  159. <div class="pagina">
  160. <div class="divisoria"> </div>
  161. <div style="border:0.3px solid #000;"></div>
  162. <div class="divisoria"> </div>
  163. <div class="divisoria"> </div>
  164. <div class="row">
  165. <div class="col-xs-4">
  166. <tr>
  167. <div class="descripcion1"><b><i>RADIODONTICA</i></b></div>
  168. </tr>
  169. <tr>
  170. <div class="email"><b>radiodontica.py@gmail.com - R.U.C. N°: 80085605-8</b></div>
  171. </tr>
  172. <tr>
  173. <div class="ciudad"><b>Avda. Serafina Dávalos c/ R.I 6 Boquerón</b></div>
  174. </tr>
  175. <tr>
  176. <div class="tel"><b>(0981) 821 070</b></div>
  177. </tr>
  178. </div>
  179. <div class="col-xs-4">
  180. <center>
  181. <!-- <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;"/> -->
  182. </center>
  183. </div>
  184. <div class="col-xs-4">
  185. <center>
  186. <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;"/>
  187. </center>
  188. </div>
  189. </div>
  190. <div class="divisoria"> </div>
  191. <div class="titulo" >
  192. <h3><strong>NOTA DE PRESUPUESTO N°: <span t-field="o.name"/></strong></h3>
  193. </div>
  194. <table class="table table-condensed table-bordered">
  195. <tr>
  196. <td class="fecha_emision_data"><b>Fecha: </b><span t-field="o.date_order" t-field-options='{"format": "dd MMMM yyyy"}'/></td>
  197. <!-- <td class="vendor"><b>Vendedor: </b><span t-field="o.user_id.name"/></td> -->
  198. </tr>
  199. <tr>
  200. <td class="razon_data"><b>Cliente: </b><span t-field="o.partner_id.name"/></td>
  201. <td class="ruc_data"><b>R.U.C N°: </b><span t-field="o.partner_id.ruc"/></td>
  202. </tr>
  203. <tr>
  204. <td class="direccion_data">
  205. <t t-f="o.partner_id.street"><b>Direccion: </b><span t-field="o.partner_id.street"/></t>
  206. <t t-f="not o.partner_id.street"> </t>
  207. </td>
  208. <td class="telefono_data"><b>Telefono: </b><span t-field="o.partner_id.phone"/></td>
  209. </tr>
  210. <!-- <tr>
  211. <td class="note"><b>Obra: </b><span t-field="o.note"/></td>
  212. </tr> -->
  213. </table>
  214. <table class="table table-condensed table-bordered">
  215. <thead>
  216. <tr>
  217. <th class="text-center">Cantidad</th>
  218. <th class="text-center">Descripción</th>
  219. <th class="text-center">Prec. Unit.</th>
  220. <th class="text-center">Sub Total</th>
  221. </tr>
  222. </thead>
  223. <tbody class="sale_tbody">
  224. <t t-set="valor_mat" t-value="0"/>
  225. <t t-set="valor_mo" t-value="0"/>
  226. <tr t-foreach="o.order_line" t-as="l">
  227. <td class="text-center">
  228. <span t-esc="'%.0f'%l.product_uom_qty"/>
  229. </td>
  230. <td>
  231. <span t-field="l.name"/>
  232. </td>
  233. <td class="text-right">
  234. <t t-if="o.currency_id.id == 166">
  235. <span t-esc="'{0:,.0f}'.format(l.price_unit)"/>
  236. </t>
  237. <t t-if="o.currency_id.id != 166">
  238. <span t-esc="'{0:,.2f}'.format(l.price_unit)"/>
  239. </t>
  240. </td>
  241. <td class="text-right">
  242. <span t-if="o.currency_id.id == 166">
  243. <span t-esc= "'{0:,.0f}'.format(int(l.product_uom_qty * l.price_unit)).replace(',', '.')">
  244. <span t-value="valor_mat+(l.product_uom_qty * l.price_unit)"/></span>
  245. <t t-set="valor_mat" t-value="valor_mat+(l.product_uom_qty * l.price_unit)"/>
  246. </span>
  247. <span t-if="o.currency_id.id != 166">
  248. <span t-esc="'{0:,.2f}'.format(int(l.price_unit*l.product_uom_qty)).replace(',', '.')">
  249. <span t-value="valor_mat+(l.product_uom_qty * l.price_unit)"/></span>
  250. <t t-set="valor_mat" t-value="valor_mat+(l.product_uom_qty * l.price_unit)"/>
  251. </span>
  252. </td>
  253. </tr>
  254. </tbody>
  255. </table>
  256. <div class="row">
  257. <div class="col-xs-12 pull-right">
  258. <table class="table table-condensed">
  259. <td class="art-col1"><b>Sub Totales: </b></td>
  260. <td class="art-col5"></td>
  261. <td class="art-col6">
  262. </td>
  263. <td class="art-col7">
  264. <span t-esc="'{0:,.0f}'.format(int(valor_mat)).replace(',', '.')"></span>
  265. </td>
  266. </table>
  267. </div>
  268. </div>
  269. <div class="row">
  270. <div class="col-xs-4 pull-right">
  271. <table class="table table-condensed">
  272. <tr class="border-black">
  273. <td><strong>Total s/ IVA</strong></td>
  274. <td class="text-right">
  275. <t t-if="o.currency_id.id == 166">
  276. <span t-esc="'{0:,.0f}'.format(o.amount_untaxed)"/>
  277. </t>
  278. <t t-if="o.currency_id.id != 166">
  279. <span t-esc="'{0:,.2f}'.format(o.amount_untaxed)"/>
  280. </t>
  281. </td>
  282. </tr>
  283. <tr>
  284. <td>IVA</td>
  285. <td class="text-right">
  286. <t t-if="o.currency_id.id == 166">
  287. <span t-esc="'{0:,.0f}'.format(o.amount_tax)"/>
  288. </t>
  289. <t t-if="o.currency_id.id != 166">
  290. <span t-esc="'{0:,.2f}'.format(o.amount_tax)"/>
  291. </t>
  292. </td>
  293. </tr>
  294. <tr class="border-black">
  295. <td><strong>Total</strong></td>
  296. <td class="text-right">
  297. <t t-if="o.currency_id.id == 166">
  298. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  299. </t>
  300. <t t-if="o.currency_id.id != 166">
  301. <span t-esc="'{0:,.2f}'.format(o.amount_total)"/>
  302. </t>
  303. </td>
  304. </tr>
  305. </table>
  306. </div>
  307. </div>
  308. <div class="note"><b>Obs.: </b><span t-field="o.note"/></div>
  309. </div>
  310. <div class="logo1"> </div>
  311. </t>
  312. </div>
  313. </t>
  314. </template>
  315. </data>
  316. </openerp>