factura_venta_apis.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="factura_venta_apis"
  5. model="sale.order"
  6. string="Presupuesto de Venta"
  7. report_type="qweb-html"
  8. name="factura_comun_apis.report_presupuesto_apis"
  9. file="factura_comun_apis.report_presupuesto_apis"
  10. />
  11. <record id="paperformat_lowmargin" model="report.paperformat">
  12. <field name="name">Hoja Apis</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_apis.factura_venta_apis" model="ir.actions.report.xml">
  27. <field name="paperformat_id" ref="factura_comun_apis.paperformat_lowmargin" />
  28. </record>
  29. <template id="report_presupuesto_apis">
  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. .linea{
  106. position: relative;
  107. top: -0.12cm;
  108. min-height: 0.4cm;
  109. }
  110. .presu_name{
  111. width: 10cm;
  112. float: left;
  113. padding-left: 9.9cm;
  114. min-height: 0.5cm;
  115. }
  116. .fecha_emision_data{
  117. width: 11.5cm;
  118. float: left;
  119. min-height: 0.5cm;
  120. }
  121. .contado_x{
  122. width: 1.8cm;
  123. float: left;
  124. padding-left: 9cm;
  125. min-height: 0.5cm;
  126. }
  127. .credito_x{
  128. width: 1.8cm;
  129. float: left;
  130. padding-left: 1.6cm;
  131. min-height: 0.5cm;
  132. }
  133. .linea2{
  134. position: relative;
  135. top: -0.12cm;
  136. min-height: 0.5cm;
  137. }
  138. .razon_data{
  139. width: 12cm;
  140. float: left;
  141. min-height: 0.4cm;
  142. }
  143. .ruc_data{
  144. width: 5cm;
  145. float: left;
  146. min-height: 0.5cm;
  147. }
  148. .linea3{
  149. position: relative;
  150. top: -0.12cm;
  151. min-height: 0.3cm;
  152. }
  153. .direccion_data{
  154. width: 14cm;
  155. float: left;
  156. min-height: 0.4cm;
  157. }
  158. .linea4{
  159. position: relative;
  160. top: -0.12cm;
  161. min-height: 0.3cm;
  162. }
  163. .telefono_data{
  164. width: 7cm;
  165. float: left;
  166. min-height: 0.4cm;
  167. }
  168. .origin{
  169. width: 6cm;
  170. float: left;
  171. min-height: 0.4cm;
  172. }
  173. .referencia{
  174. width: 7cm;
  175. float: left;
  176. min-height: 0.4cm;
  177. }
  178. .cab-articulos{
  179. height: 0.4cm;
  180. clear: both;
  181. }
  182. .articulos{
  183. height: 4.5cm;
  184. }
  185. .art-col1{
  186. width:0.4cm;
  187. text-align: center;
  188. }
  189. .art-col2{
  190. padding-left: 0.8cm;
  191. width:1cm;
  192. text-align: center;
  193. }
  194. .art-col3{
  195. padding-left: 0.3cm;
  196. width:9cm;
  197. }
  198. .art-col4{
  199. width:2.8cm;
  200. text-align: right;
  201. }
  202. .art-col5{
  203. width:2.7cm;
  204. text-align: right;
  205. }
  206. .logo1{
  207. height: 2cm;
  208. width: 100%;
  209. top: 0px;
  210. }
  211. </style>
  212. <t t-foreach="docs" t-as="o">
  213. <div class="pagina">
  214. <div class="cabecera"> </div>
  215. <div class="divisoria"> </div>
  216. <!-- <div style="border:0.3px solid #000;"></div> -->
  217. <div class="divisoria"> </div>
  218. <div class="divisoria"> </div>
  219. <div class="divisoria"> </div>
  220. <div class="divisoria"> </div>
  221. <div class="divisoria"> </div>
  222. <div class="divisoria"> </div>
  223. <div class="divisoria"> </div>
  224. <!-- <div class="row">
  225. <div class="col-xs-6">
  226. <center>
  227. <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;"/>
  228. </center>
  229. </div>
  230. <div class="col-xs-6">
  231. <tr>
  232. <div class="descripcion">
  233. </div>
  234. </tr>
  235. <tr>
  236. <div class="descripcion1"><b><i>Pirka Stone</i></b></div>
  237. </tr>
  238. <tr>
  239. <div class="descripcion2"><b></b></div>
  240. </tr>
  241. <tr>
  242. <div class="descripcion3"><b></b></div>
  243. </tr>
  244. <tr>
  245. <div class="descripcion4"><b>Charles de Gaulle y Toribio Pacheco</b></div>
  246. </tr>
  247. <tr>
  248. <div class="email"><b>Barrio Villa Morra - Asunción</b></div>
  249. </tr>
  250. <tr>
  251. <div class="ciudad"><b>admasuncion@pirkastone.com.py</b></div>
  252. </tr>
  253. <tr>
  254. <div class="tel"><b>(0982) 129 225</b></div>
  255. </tr>
  256. <tr>
  257. <div class="rucdata1"><b>R.U.C. N° 80106935-1 </b></div>
  258. </tr>
  259. </div>
  260. </div> -->
  261. <div class="divisoria"> </div>
  262. <!-- <div style="border:0.3px solid #000;"></div> -->
  263. <div class="divisoria"> </div>
  264. <div class="linea">
  265. <div class="presu_name"><b>PRESUPUESTO N°: </b><span t-field="o.name"/></div>
  266. </div>
  267. <div class="linea3">
  268. <div class="fecha_emision_data"><b>Fecha de Presupuesto: </b><span t-field="o.create_date" t-field-options='{"format": "dd MMMM yyyy"}'/></div>
  269. </div>
  270. <div class="linea2">
  271. <div class="razon_data"><b>Cliente: </b><span t-field="o.partner_id.name"/></div>
  272. <div class="ruc_data"><b>R.U.C N°: </b><span t-field="o.partner_id.ruc"/></div>
  273. </div>
  274. <div class="linea3">
  275. <div class="direccion_data">
  276. <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>
  277. <t t-f="not o.partner_id.street"> </t>
  278. </div>
  279. </div>
  280. <div class="linea4">
  281. <div class="telefono_data"><b>Telefono: </b><span t-field="o.partner_id.phone"/></div>
  282. </div>
  283. <table class="table table-condensed table-bordered">
  284. <thead>
  285. <tr>
  286. <th class="art-col1">Código</th>
  287. <th class="art-col2">Cantidad</th>
  288. <th class="art-col3">Descripción</th>
  289. <th class="art-col4">Prec. Unitario</th>
  290. <th class="art-col5">Sub Total</th>
  291. </tr>
  292. </thead>
  293. <tbody class="sale_tbody">
  294. <tr t-foreach="o.order_line" t-as="l">
  295. <td class="art-col1">
  296. <span t-field="l.product_id.default_code"/>
  297. </td>
  298. <td class="art-col2">
  299. <span t-esc="'%.0f'%l.product_uom_qty"/>
  300. </td>
  301. <td class="art-col3">
  302. <span t-field="l.product_id.name"/>
  303. </td>
  304. <td class="art-col4">
  305. <t t-if="o.currency_id.id == 166">
  306. <span t-esc="'{0:,.0f}'.format(l.price_unit)"/>
  307. </t>
  308. <t t-if="o.currency_id.id != 166">
  309. <span t-esc="'{0:,.2f}'.format(l.price_unit)"/>
  310. </t>
  311. </td>
  312. <td class="art-col5">
  313. <t t-if="o.currency_id.id == 166">
  314. <span t-esc="'{0:,.0f}'.format(l.price_unit*l.product_uom_qty)"/>
  315. </t>
  316. <t t-if="o.currency_id.id != 166">
  317. <span t-esc="'{0:,.2f}'.format(l.price_unit*l.product_uom_qty)"/>
  318. </t>
  319. </td>
  320. </tr>
  321. </tbody>
  322. </table>
  323. <div class="row">
  324. <div class="col-xs-4 pull-right">
  325. <table class="table table-condensed">
  326. <tr class="border-black">
  327. <td><strong>Total s/ IVA</strong></td>
  328. <td class="text-right">
  329. <t t-if="o.currency_id.id == 166">
  330. <span t-esc="'{0:,.0f}'.format(o.amount_untaxed)"/>
  331. </t>
  332. <t t-if="o.currency_id.id != 166">
  333. <span t-esc="'{0:,.2f}'.format(o.amount_untaxed)"/>
  334. </t>
  335. </td>
  336. </tr>
  337. <tr>
  338. <td>IVA</td>
  339. <td class="text-right">
  340. <t t-if="o.currency_id.id == 166">
  341. <span t-esc="'{0:,.0f}'.format(o.amount_tax)"/>
  342. </t>
  343. <t t-if="o.currency_id.id != 166">
  344. <span t-esc="'{0:,.2f}'.format(o.amount_tax)"/>
  345. </t>
  346. </td>
  347. </tr>
  348. <tr class="border-black">
  349. <td><strong>Total</strong></td>
  350. <td class="text-right">
  351. <t t-if="o.currency_id.id == 166">
  352. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  353. </t>
  354. <t t-if="o.currency_id.id != 166">
  355. <span t-esc="'{0:,.2f}'.format(o.amount_total)"/>
  356. </t>
  357. </td>
  358. </tr>
  359. </table>
  360. </div>
  361. </div>
  362. </div>
  363. <!-- <div class="logo1"> </div> -->
  364. </t>
  365. </div>
  366. </t>
  367. </t>
  368. </template>
  369. </data>
  370. </openerp>