Browse Source

Listado de lista a cobrar para Giganet

sebas 4 years ago
commit
647bc14743
6 changed files with 176 additions and 0 deletions
  1. 27 0
      __init__.py
  2. BIN
      __init__.pyc
  3. 45 0
      __openerp__.py
  4. 0 0
      informe_cobradorgiganet.py
  5. 104 0
      informe_cobradorgiganet.xml
  6. BIN
      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 informe_cobradorgiganet

BIN
__init__.pyc


+ 45 - 0
__openerp__.py

@@ -0,0 +1,45 @@
+# -*- 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',
+    'version': '1.1',
+    'category': 'Account',
+    'sequence': 19,
+    'summary': 'Listado de Facturas a Cobrar/',
+    'description': """
+Informe de Facturas
+==================================================
+
+Listado de facturas a cobrar para Giganet
+
+
+    """,
+    'author': 'Eiru/Sebastian Penayo',
+    'website': 'http://www.eiru.com',
+    'depends': ['base','account', 'extra_accountinvoice_cobrador'],
+    'data': [
+        'informe_cobradorgiganet.xml',
+    ],
+    'installable': True,
+}
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

+ 0 - 0
informe_cobradorgiganet.py


+ 104 - 0
informe_cobradorgiganet.xml

@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+<data>
+		<report
+            id="account_invoices_cobrador"
+            model="account.invoice"
+            string="Listado de Cobranzas"
+            report_type="qweb-pdf"
+            name="informe_cobradorgiganet.report_cobradorgiganet"
+            file="informe_cobradorgiganet.report_cobradorgiganet"
+        />
+<template id="report_cobradorgiganet">
+    <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">
+											<h3 style="text-align:center;"> <span t-if="f.type == 'out_invoice'">Listado de Facturas a Cobrar</span></h3>
+                      <div class="logo1"> </div>
+											<div class="row">
+														<div class="col-xs-8">
+																<strong>Cobrador:</strong>
+																<span t-field="f.employee_id.name"/>
+														</div>
+														<div class="col-xs-4">
+																<strong>Fecha factura:</strong>
+																<span t-field="f.date_invoice" t-field-options='{"widget": "date"}'/>
+														</div>
+												</div>
+										</t>
+                </t>
+        <br></br>
+        <div class="logo1"> </div>
+
+					<table class="table table-bordered">
+						<thead class="crm_tcab">
+							<tr class="active">
+										<th class="text-center">Cliente</th>
+										<th class="text-center">N° Factura</th>
+										<th class="text-center">Contrato Ref.</th>
+									  <th class="text-center">Saldo</th>
+              </tr>
+            </thead>
+						<t t-foreach="docs" t-as="o">
+            <tbody>
+								<tr>
+										<td><span t-esc="o.partner_id.name"/></td>
+										<td><span t-esc="o.supplier_invoice_number"/></td>
+										<td><span t-field="o.origin"/></td>
+										<td class="text-right">
+			                    <span t-esc="'{0:,.0f}'.format(o.residual)"/>
+			              </td>
+                </tr>
+						</tbody>
+							          </t>
+                            <tr>
+                                <td colspan="4"></td>
+                            </tr>
+                            <tr class="border-black">
+                                <td colspan="2">Total:</td>
+																<td class="text-right">
+                                    <t t-set="total3" t-value="sum([x.residual for x in docs])"/>
+                                    <span t-esc="'{0:,.0f}'.format(total3)"/>
+                                </td>
+                            </tr>
+             </table>
+               <h4 style="text-align:left;"> <span>Firma Cobrador: ............................                Firma Recibe: .........................</span></h4>
+            </div>
+
+        </t>
+    </t>
+</template>
+</data>
+</openerp>

BIN
static/description/icon.png