浏览代码

commit informes_accountinvoices

sebas 8 年之前
当前提交
9091509908
共有 7 个文件被更改,包括 190 次插入0 次删除
  1. 27 0
      __init__.py
  2. 二进制
      __init__.pyc
  3. 46 0
      __openerp__.py
  4. 0 0
      informes_accountinvoices.py
  5. 二进制
      informes_accountinvoices.pyc
  6. 117 0
      informes_accountinvoices.xml
  7. 二进制
      static/description/icon.png

+ 27 - 0
__init__.py

@@ -0,0 +1,27 @@
+# -*- encoding: utf-8 -*-
+#################################################################################
+#                                                                               #
+#    product_brand for OpenERP                                                  #
+#    Copyright (C) 2009 NetAndCo (<http://www.netandco.net>).                   #
+#    Authors, Mathieu Lemercier, mathieu@netandco.net,                          #
+#             Franck Bret, franck@netandco.net                                  #
+#    Copyright (C) 2011 Akretion Benoît Guillot <benoit.guillot@akretion.com>   #
+#                                                                               #
+#    This program is free software: you can redistribute it and/or modify       #
+#    it under the terms of the GNU Affero General Public License as             #
+#    published by the Free Software Foundation, either version 3 of the         #
+#    License, or (at your option) any later version.                            #
+#                                                                               #
+#    This program is distributed in the hope that it will be useful,            #
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of             #
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              #
+#    GNU Affero General Public License for more details.                        #
+#                                                                               #
+#    You should have received a copy of the GNU Affero General Public License   #
+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.      #
+#                                                                               #
+#################################################################################
+###################################################################################
+# Product Brand is an Openobject module wich enable Brand management for products #
+###################################################################################
+from . import informes_accountinvoices

二进制
__init__.pyc


+ 46 - 0
__openerp__.py

@@ -0,0 +1,46 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as
+#    published by the Free Software Foundation, either version 3 of the
+#    License, or (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+
+{
+    'name': 'Listado de Facturas a Cobrar/Pagar',
+    'version': '1.1',
+    'category': 'Account',
+    'sequence': 19,
+    'summary': 'Listado de Facturas a Cobrar/Pagar',
+    'description': """
+Informe de Facturas
+==================================================
+
+Purchase management enables you to track your suppliers' price quotations and convert them into purchase orders if necessary.
+OpenERP has several methods of monitoring invoices and tracking the receipt of ordered goods. You can handle partial deliveries in OpenERP, so you can keep track of items that are still to be delivered in your orders, and you can issue reminders automatically.
+
+
+    """,
+    'author': 'Eiru/Sebastian Penayo',
+    'website': 'http://www.eiru.com',
+    'depends': ['base','account'],
+    'data': [
+        'informes_accountinvoices.xml',
+    ],
+    'installable': True,
+}
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

+ 0 - 0
informes_accountinvoices.py


二进制
informes_accountinvoices.pyc


+ 117 - 0
informes_accountinvoices.xml

@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+<data>
+		<report
+            id="account_invoices_id1"
+            model="account.invoice"
+            string="Listado de Facturas2"
+            report_type="qweb-pdf"
+            name="informes_accountinvoices.report_invoice1"
+            file="informes_accountinvoices.report_invoice1"
+        />
+<template id="report_invoice1">
+    <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>
+
+				<t t-set="total" t-value="0" />
+                <t t-foreach="docs" t-as="f">
+                    <t t-set="total" t-value="total+1" />
+                    <t t-if="total==1">
+											<h4 style="text-align:center;"> <span t-if="f.type == 'in_invoice'">Listado de Facturas/Compras</span></h4>
+											<h4 style="text-align:center;"> <span t-if="f.type == 'out_invoice'">Listado de Facturas/Ventas</span></h4>
+                    </t>
+                </t>
+        <br></br>
+        <div class="logo1"> </div>
+					<table class="table table-bordered">
+						<thead class="crm_tcab">
+							<tr class="active">
+										<th class="text-center">Referencia</th>
+                    <th class="text-center">Fecha</th>
+										<th class="text-center">R.U.C.</th>
+                    <th class="text-center">Cliente/Proveedor</th>
+										<th class="text-center">Monto c/ IVA</th>
+										<th class="text-center">M.Pagado</th>
+									  <th class="text-center">Saldo</th>
+										<th class="text-center">Moneda</th>
+										<th class="text-center">Empresa</th>
+										<th class="text-center">Vendedor</th>
+              </tr>
+            </thead>
+						<t t-foreach="docs" t-as="o">
+                    <tbody>
+							    			<tr>
+                            <td><span t-esc="o.number"/></td>
+														<td><span t-field="o.date_invoice"/></td>
+														<td><span t-esc="o.partner_id.ruc"/></td>
+														<td><span t-esc="o.partner_id.name"/></td>
+														<td class="text-right">
+                                <span t-field="o.amount_total"/>
+                            </td>
+														<td class="text-right">
+                                <span t-esc="o.amount_total-o.residual"/>
+                            </td>
+														<td class="text-right">
+                                <span t-field="o.residual"/>
+                            </td>
+														<td><span t-field="o.currency_id.name"/></td>
+														<td><span t-field="o.company_id.name"/></td>
+														<td><span t-field="o.user_id.name"/></td>
+                        </tr>
+											</tbody>
+							</t>
+                            <tr>
+                                <td colspan="10"></td>
+                            </tr>
+                            <tr class="border-black">
+                                <td colspan="4">Total:</td>
+																<td class="text-right">
+                                    <t t-set="total" t-value="sum([x.amount_total for x in docs])"/>
+                                    <span t-esc="total"/>
+                                </td>
+																<td class="text-right">
+                                    <t t-set="total2" t-value="sum([x.amount_total-x.residual for x in docs])"/>
+                                    <span t-esc="total2"/>
+                                </td>
+																<td class="text-right">
+                                    <t t-set="total3" t-value="sum([x.residual for x in docs])"/>
+                                    <span t-esc="total3"/>
+                                </td>
+                            </tr>
+             </table>
+
+            </div>
+
+        </t>
+    </t>
+</template>
+</data>
+</openerp>

二进制
static/description/icon.png