|
@@ -0,0 +1,107 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<openerp>
|
|
|
+<data>
|
|
|
+ <report id="informe_compras_generales"
|
|
|
+ model="purchase.order"
|
|
|
+ string="Listado de Compras Generales"
|
|
|
+ report_type="qweb-pdf"
|
|
|
+ name="informes_compras_generales.report_purchase2"
|
|
|
+ file="informes_compras_generales.report_purchase2"
|
|
|
+ />
|
|
|
+
|
|
|
+
|
|
|
+<template id="report_purchase2">
|
|
|
+ <t t-call="report.html_container">
|
|
|
+
|
|
|
+ <t t-call="report.external_layout">
|
|
|
+ <div class="header">-</div>
|
|
|
+ <div class="page">
|
|
|
+ <style type="text/css">
|
|
|
+ .crm_tcab{
|
|
|
+ font-size: 3mm;
|
|
|
+ font-family: Arial, Helvetica, sans-serif;
|
|
|
+ }
|
|
|
+
|
|
|
+ .veh_tbody{
|
|
|
+ font-size: 2.8mm;
|
|
|
+ font-family: Arial, Helvetica, sans-serif;
|
|
|
+ }
|
|
|
+ .taxtotal{
|
|
|
+ font-size: 2.8mm;
|
|
|
+ }
|
|
|
+ .total{
|
|
|
+ font-size: 2.8mm;
|
|
|
+ }
|
|
|
+ .untotal{
|
|
|
+ font-size: 2.8mm;
|
|
|
+ }
|
|
|
+ .logo1{
|
|
|
+ width: 100%;
|
|
|
+ top: 1.5cm;
|
|
|
+ }
|
|
|
+
|
|
|
+ </style>
|
|
|
+ <h4 class="text-center">Listado de Compras Generales</h4>
|
|
|
+ <div class="logo1"> </div>
|
|
|
+ <table class="table table-bordered">
|
|
|
+ <thead class="crm_tcab">
|
|
|
+ <tr class="active">
|
|
|
+ <th class="text-center">Fecha</th>
|
|
|
+ <th class="text-center">Referencia</th>
|
|
|
+ <th class="text-center">Proveedor</th>
|
|
|
+ <th class="text-center">Monto </th>
|
|
|
+ <th class="text-center">I.V.A.</th>
|
|
|
+ <th class="text-center">Monto c/ IVA</th>
|
|
|
+ <th class="text-center">Estado</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <t t-foreach="docs" t-as="o">
|
|
|
+ <tbody class="veh_tbody">
|
|
|
+ <tr>
|
|
|
+ <td><span t-field="o.date_order"/></td>
|
|
|
+ <td><span t-esc="o.name"/></td>
|
|
|
+ <td><span t-esc="o.partner_id.name"/></td>
|
|
|
+ <td class="text-right">
|
|
|
+ <span t-field="o.amount_untaxed"
|
|
|
+ t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
|
|
|
+ </td>
|
|
|
+ <td class="text-right">
|
|
|
+ <span t-field="o.amount_tax"
|
|
|
+ t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
|
|
|
+ </td>
|
|
|
+ <td class="text-right">
|
|
|
+ <span t-field="o.amount_total"
|
|
|
+ t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
|
|
|
+ </td>
|
|
|
+ <td><span t-field="o.state"/></td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </t>
|
|
|
+ <tr>
|
|
|
+ <td colspan="6"></td>
|
|
|
+ </tr>
|
|
|
+ <tr class="border-black">
|
|
|
+ <td colspan="3">Totales</td>
|
|
|
+ <td class="text-right">
|
|
|
+ <t t-set="untotal" t-value="sum([x.amount_untaxed for x in docs])"/>
|
|
|
+ <span t-esc="untotal" t-esc-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
|
|
|
+ </td>
|
|
|
+ <td class="text-right">
|
|
|
+ <t t-set="taxtotal" t-value="sum([x.amount_tax for x in docs])"/>
|
|
|
+ <span t-esc="taxtotal" t-esc-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
|
|
|
+ </td>
|
|
|
+ <td class="text-right">
|
|
|
+ <t t-set="total" t-value="sum([x.amount_total for x in docs])"/>
|
|
|
+ <span t-esc="total" t-esc-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ </table>
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </t>
|
|
|
+ </t>
|
|
|
+</template>
|
|
|
+</data>
|
|
|
+</openerp>
|