presupuesto_venta_smile.xml 17 KB

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