factura_venta_2ca.xml 17 KB

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