factura_ventacomun_phoera.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="factura_ventacomun_phoera"
  5. model="sale.order"
  6. string="Presupuesto de Venta"
  7. report_type="qweb-html"
  8. name="factura_venta_phoera.report_facturacomun_phoera"
  9. file="factura_venta_phoera.report_facturacomun_phoera"
  10. />
  11. <record id="paperformat_lowmargin" model="report.paperformat">
  12. <field name="name">European A4 low margin</field>
  13. <field name="default" eval="True" />
  14. <field name="format">A4</field>
  15. <field name="page_height">0</field>
  16. <field name="page_width">0</field>
  17. <field name="orientation">Portrait</field>
  18. <field name="margin_top">1</field>
  19. <field name="margin_bottom">1</field>
  20. <field name="margin_left">3</field>
  21. <field name="margin_right">2</field>
  22. <field name="header_line" eval="False" />
  23. <field name="header_spacing">0</field>
  24. <field name="dpi">90</field>
  25. </record>
  26. <record id="factura_venta_phoera.factura_ventacomun_phoera" model="ir.actions.report.xml">
  27. <field name="paperformat_id" ref="factura_venta_phoera.paperformat_lowmargin" />
  28. </record>
  29. <template id="report_facturacomun_phoera">
  30. <t t-call="report.html_container">
  31. <!-- <t t-foreach="[1,2]" t-as="i"> -->
  32. <div class="page">
  33. <style type="text/css">
  34. body{
  35. font-size: 3.6mm;
  36. font-family: Arial;
  37. }
  38. div{
  39. padding: 0px;
  40. }
  41. .pagina{
  42. width:19.3cm;
  43. padding-left: 2cm;
  44. padding-right: 1cm;
  45. height: 15cm;
  46. }
  47. .descripcion1{
  48. width: 11.2cm;
  49. font-size: 13px;
  50. padding-top: 0.5cm;
  51. float: left;
  52. min-height: 0.7cm;
  53. }
  54. .descripcion2{
  55. width: 13cm;
  56. font-size: 11px;
  57. float: left;
  58. min-height: 0cm;
  59. }
  60. .descripcion3{
  61. width: 15cm;
  62. font-size: 11px;
  63. float: left;
  64. min-height: 0cm;
  65. }
  66. .descripcion4{
  67. width: 15cm;
  68. font-size: 11px;
  69. float: left;
  70. min-height: 0.3cm;
  71. }
  72. .email{
  73. width: 13cm;
  74. font-size: 11px;
  75. float: left;
  76. min-height: 0.3cm;
  77. }
  78. .tel{
  79. width: 13cm;
  80. float: left;
  81. font-size: 11px;
  82. min-height: 0.3cm;
  83. }
  84. .rucdata1{
  85. width: 13cm;
  86. float: left;
  87. font-size: 11px;
  88. min-height: 0.3cm;
  89. }
  90. .table-condensed>tbody>tr>td {
  91. padding: 1px !important;
  92. }
  93. .divisoria{
  94. height: 0.5cm;
  95. clear: both;
  96. }
  97. .linea1{
  98. position: relative;
  99. top: -0.12cm;
  100. min-height: 0.5cm;
  101. }
  102. .fecha_emision_data{
  103. width: 8.5cm;
  104. float: left;
  105. min-height: 0.5cm;
  106. }
  107. .number{
  108. width: 7cm;
  109. float: left;
  110. padding-left: 0.8cm;
  111. min-height: 0.5cm;
  112. }
  113. .linea2{
  114. position: relative;
  115. top: -0.12cm;
  116. min-height: 0.5cm;
  117. }
  118. .razon_data{
  119. width: 12cm;
  120. float: left;
  121. min-height: 0.4cm;
  122. }
  123. .ruc_data{
  124. width: 5cm;
  125. float: left;
  126. min-height: 0.5cm;
  127. }
  128. .linea3{
  129. position: relative;
  130. top: -0.12cm;
  131. min-height: 0.3cm;
  132. }
  133. .direccion_data{
  134. width: 14cm;
  135. float: left;
  136. min-height: 0.4cm;
  137. }
  138. .linea4{
  139. position: relative;
  140. top: -0.12cm;
  141. min-height: 0.3cm;
  142. }
  143. .telefono_data{
  144. width: 8cm;
  145. float: left;
  146. min-height: 0.4cm;
  147. }
  148. .linea5{
  149. position: relative;
  150. top: -0.12cm;
  151. min-height: 0.3cm;
  152. }
  153. .vendor{
  154. width: 5cm;
  155. float: left;
  156. padding-left: 0.8cm;
  157. min-height: 0.4cm;
  158. }
  159. .contado_x{
  160. width: 8.0cm;
  161. float: left;
  162. min-height: 0.4cm;
  163. }
  164. .nota_remision_data{
  165. width: 7cm;
  166. float: left;
  167. padding-left: 0.8cm;
  168. min-height: 0.4cm;
  169. }
  170. .cab-articulos{
  171. height: 0.4cm;
  172. clear: both;
  173. }
  174. .articulos{
  175. height: 4.5cm;
  176. width: 14cm;
  177. }
  178. .art-col1{
  179. width:1.9cm;
  180. text-align: center;
  181. }
  182. .art-col2{
  183. padding-left: 0.3cm;
  184. width:12cm;
  185. }
  186. .art-col3{
  187. padding-left: 0.3cm;
  188. text-align: right;
  189. width:3cm;
  190. }
  191. .art-col4{
  192. width:3.4cm;
  193. text-align: right;
  194. }
  195. .art-col5{
  196. width:3.4cm;
  197. text-align: right;
  198. }
  199. .logo1{
  200. height: 2cm;
  201. width: 100%;
  202. top: 0px;
  203. }
  204. </style>
  205. <t t-foreach="docs" t-as="o">
  206. <div class="pagina">
  207. <div class="divisoria"> </div>
  208. <div style="border:0.3px solid #000;"></div>
  209. <div class="divisoria"> </div>
  210. <div class="row">
  211. <div class="col-xs-12">
  212. <tr>
  213. <div class="descripcion">
  214. </div>
  215. </tr>
  216. <tr>
  217. <div class="descripcion1"><b><i>PHOERA</i></b></div>
  218. </tr>
  219. <tr>
  220. <div class="descripcion2"><b></b></div>
  221. </tr>
  222. <tr>
  223. <div class="descripcion3"><b></b></div>
  224. </tr>
  225. <tr>
  226. <div class="descripcion4"><b>SHOPPING JEBAI</b></div>
  227. </tr>
  228. <tr>
  229. <div class="email"><b>CIUDAD DEL ESTE - PARAGUAY</b></div>
  230. </tr>
  231. <tr>
  232. <div class="tel"><b>+595 992900900</b></div>
  233. </tr>
  234. <tr>
  235. <div class="rucdata1"><b></b></div>
  236. </tr>
  237. </div>
  238. </div>
  239. <div class="divisoria"> </div>
  240. <div style="border:0.3px solid #000;"></div>
  241. <div class="divisoria"> </div>
  242. <div class="linea1">
  243. <div class="fecha_emision_data"><b>FECHA PRESUPUESTO: </b><span t-field="o.date_order" t-field-options='{"format": "dd MMMM yyyy"}'/></div>
  244. <div class="number"><strong>N° PRESUPUESTO: </strong><span t-field="o.name"/></div>
  245. </div>
  246. <div class="linea2">
  247. <div class="razon_data"><b>CLIENTE: </b><span t-field="o.partner_id.name"/></div>
  248. <div class="ruc_data"><b>R.U.C N°: </b><span t-field="o.partner_id.ruc"/></div>
  249. </div>
  250. <div class="linea3">
  251. <div class="direccion_data">
  252. <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>
  253. <t t-f="not o.partner_id.street"> </t>
  254. </div>
  255. </div>
  256. <div class="linea4">
  257. <div class="telefono_data"><b>TEL.: </b><span t-field="o.partner_id.phone"/></div>
  258. <div class="vendor"><b>VENDEDOR: </b><span t-field="o.user_id"/></div>
  259. </div>
  260. <!-- <div class="linea5">
  261. <div class="contado_x"><b>FORMA DE PAGO: </b><t t-if="o.contado == True">Contado</t><t t-if="o.contado == False">Crédito</t></div>
  262. <div class="nota_remision_data"><b>CONDICIÓN DE PAGO: </b><span t-field="o.payment_term.note"/></div>
  263. </div> -->
  264. <div class="divisoria"> </div>
  265. <div style="border:0.3px solid #000;"></div>
  266. <div class="divisoria"> </div>
  267. <table class="table table-condensed table-bordered">
  268. <thead>
  269. <tr>
  270. <th class="art-col1">CODIGO</th>
  271. <th class="art-col2">DESCRIPCION</th>
  272. <th class="art-col3">CANT.</th>
  273. <th class="art-col4">PRECIO U$</th>
  274. <th class="art-col5">TOTAL U$</th>
  275. </tr>
  276. </thead>
  277. <tbody class="sale_tbody">
  278. <t t-set="valor_mat" t-value="0"/>
  279. <t t-set="qty" t-value="0"/>
  280. <tr t-foreach="o.order_line" t-as="l">
  281. <td class="art-col1">
  282. <span t-field="l.product_id.default_code"/>
  283. </td>
  284. <td class="art-col2">
  285. <span t-field="l.name"/>
  286. </td>
  287. <td class="art-col3">
  288. <span t-esc= "'{0:,.0f}'.format(int(l.product_uom_qty)).replace(',', '.')">
  289. <span t-value="qty + l.product_uom_qty"/></span>
  290. <t t-set="qty" t-value="qty + l.product_uom_qty"/>
  291. </td>
  292. <td class="art-col4">
  293. <span t-esc="'{0:,.2f}'.format(l.price_unit)"/>
  294. </td>
  295. <td class="art-col5">
  296. <span t-esc= "'{0:,.2f}'.format((l.product_uom_qty * l.price_unit)).replace(',', '.')">
  297. <span t-value="valor_mat+(l.product_uom_qty * l.price_unit)"/></span>
  298. <t t-set="valor_mat" t-value="valor_mat+(l.product_uom_qty * l.price_unit)"/>
  299. </td>
  300. </tr>
  301. </tbody>
  302. </table>
  303. <div class="row">
  304. <div class="col-xs-12 pull-right">
  305. <table class="table table-condensed">
  306. <td class="art-col1"><b>Totales: </b></td>
  307. <td class="art-col2"></td>
  308. <td class="art-col3">
  309. <span t-esc="'{0:,.0f}'.format(int(qty)).replace(',', '.')"></span>
  310. </td>
  311. <td class="art-col4"></td>
  312. <td class="art-col5">
  313. <span t-esc="'{0:,.2f}'.format((valor_mat)).replace(',', '.')"></span>
  314. </td>
  315. </table>
  316. </div>
  317. </div>
  318. <div class="row">
  319. <div class="col-xs-4 pull-right">
  320. <table class="table table-condensed">
  321. <!-- <tr class="border-black">
  322. <td><strong>Total s/ IVA</strong></td>
  323. <td class="text-right">
  324. <span t-esc="'{0:,.2f}'.format(o.amount_untaxed)"/>
  325. </td>
  326. </tr>
  327. <tr>
  328. <td>IVA</td>
  329. <td class="text-right">
  330. <span t-esc="'{0:,.2f}'.format(o.amount_tax)"/>
  331. </td>
  332. </tr> -->
  333. <tr class="border-black">
  334. <td><strong>Total</strong></td>
  335. <td class="text-right">
  336. <span t-esc="'{0:,.2f}'.format(o.amount_total)"/>
  337. </td>
  338. </tr>
  339. </table>
  340. </div>
  341. </div>
  342. </div>
  343. </t>
  344. </div>
  345. </t>
  346. </template>
  347. </data>
  348. </openerp>