123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <report id="report_diariocta3"
- model="compraventa.analisis"
- string="Listado de utilidad s/ compra/venta por producto"
- report_type="qweb-pdf"
- name="analisis_compraventa.informe_compraventaanalisis_fecha"
- file="analisis_compraventa.informe_compraventaanalisis_fecha"
- />
- <template id="informe_compraventaanalisis_fecha">
- <t t-call="report.html_container">
- <t t-call="report.internal_layout">
- <div class="page">
- <h2 class="text-center text-info">Listado de utilidad s/ compra/venta por producto</h2>
- <br/>
- <div class="row">
- <div class="col-xs-12 col-sm-7 col-md-7">
- <div class="panel panel-success">
- <table class="table table-condensed">
- <thead>
- <th class="text-left">Producto</th>
- <th class="text-right">P.Costo</th>
- <th class="text-right">Cant.</th>
- <th class="text-right">T.Costo</th>
- <th class="text-right">P.Venta</th>
- <th class="text-right">Cant.</th>
- <th class="text-right">T.Venta</th>
- <th class="text-right">Gan/Per</th>
- </thead>
- <tbody>
- <t t-foreach="docs" t-as="o">
- <tr>
- <td class="text-left"><span t-esc="o.name_template"/></td>
- <td class="text-right"><span t-esc="'{0:,.0f}'.format(round(float(o.price_cost), 0))"/></td>
- <td class="text-right"><span t-esc="'{0:,.0f}'.format(round(float(o.product_qty), 0))"/></td>
- <td class="text-right"><span t-esc="'{0:,.0f}'.format(round(float(o.tpc), 0))"/></td>
- <td class="text-right"><span t-esc="'{0:,.0f}'.format(round(float(o.price_unit), 0))"/></td>
- <td class="text-right"><span t-esc="'{0:,.0f}'.format(round(float(o.product_uom_qty), 0))"/></td>
- <td class="text-right"><span t-esc="'{0:,.0f}'.format(round(float(o.tpv), 0))"/></td>
- <td class="text-right"><span t-esc="'{0:,.0f}'.format(round(float(o.tgan), 0))"/></td>
- </tr>
- </t>
- </tbody>
- <td class="panel-footer">
- <strong>Totales:</strong>
- </td>
- <td class="panel-footer">
- <strong><t t-set="tqty" t-value="sum([x.product_qty for x in docs])"/>
- <td class="text-right"><span t-esc="'{0:,.0f}'.format(round(float(tqty), 0))"/></td>
- </strong>
- </td>
- <strong><t t-set="tsaldo1" t-value="sum([x.tpc for x in docs])"/>
- <td class="text-right"><span t-esc="'{0:,.0f}'.format(round(float(tsaldo1), 0))"/></td>
- </strong>
- <td class="panel-footer">
- <strong><t t-set="tqty1" t-value="sum([x.product_uom_qty for x in docs])"/>
- <td class="text-right"><span t-esc="'{0:,.0f}'.format(round(float(tqty1), 0))"/></td>
- </strong>
- </td>
- <td class="panel-footer text-right">
- <strong><t t-set="tsaldo2" t-value="sum([x.tpv for x in docs])"/>
- <span t-esc="'{0:,.0f}'.format(round(float(tsaldo2), 0))"/>
- </strong>
- </td>
- <td class="panel-footer text-right">
- <strong><t t-set="tgan" t-value="sum([x.tgan for x in docs])"/>
- <span t-esc="'{0:,.0f}'.format(round(float(tgan), 0))"/>
- </strong>
- </td>
- </table>
- </div>
- </div>
- </div>
- </div>
- </t>
- </t>
- </template>
- </data>
- </openerp>
|