factura_venta_2ca.xml 15 KB

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