From 41b759756e4904fd6ff9119c5fc43b5182d3cd29 Mon Sep 17 00:00:00 2001 From: Mantavya Gajjar Date: Thu, 23 Oct 2008 13:43:34 +0530 Subject: [PATCH] removed unused files few changes in view bzr revid: mga@mga-laptop-20081023081334-f69i3llhr9vh9d9v --- addons/account_voucher/account_report.xml | 29 -- addons/account_voucher/report/__init__.py | 2 - addons/account_voucher/report/invoice.py | 50 ---- addons/account_voucher/report/invoice.rml | 268 ------------------- addons/account_voucher/report/tax_report.py | 185 ------------- addons/account_voucher/report/tax_report.rml | 255 ------------------ 6 files changed, 789 deletions(-) delete mode 100755 addons/account_voucher/report/invoice.py delete mode 100755 addons/account_voucher/report/invoice.rml delete mode 100755 addons/account_voucher/report/tax_report.py delete mode 100755 addons/account_voucher/report/tax_report.rml diff --git a/addons/account_voucher/account_report.xml b/addons/account_voucher/account_report.xml index caaf5867c0f..134581c8816 100755 --- a/addons/account_voucher/account_report.xml +++ b/addons/account_voucher/account_report.xml @@ -1,35 +1,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [[ repeatIn(objects,'o') ]] - [[ setLang(o.partner_id.lang) ]] - Subject to Ahmedabad jurisdiction - - - - M/S. - [[ o.partner_id.title or '' ]][[ o.partner_id.name ]] - [[ o.address_invoice_id.title or '' ]] [[ o.address_invoice_id.name ]] - [[ o.address_invoice_id.street ]] - [[ o.address_invoice_id.street2 or '' ]] - [[ o.address_invoice_id.zip or '' ]] [[ o.address_invoice_id.city or '' ]] - [[ o.address_invoice_id.state_id and o.address_invoice_id.state_id.name or '' ]] - [[ o.address_invoice_id.country_id and o.address_invoice_id.country_id.name or '' ]] - - - - Tel. : [[ o.address_invoice_id.phone or removeParentNode('para') ]] - Fax : [[ o.address_invoice_id.fax or removeParentNode('para') ]] - VAT : [[ o.partner_id.vat or removeParentNode('para') ]] - - - - - - - - - - - - [[ title(o)]] Invoice [[ ((o.type == 'out_invoice' and (o.state == 'open' or o.state == 'paid')) or removeParentNode('para')) and '' ]] [[ o.number ]] - [[ title(o)]] PRO-FORMA [[ ((o.type == 'out_invoice' and o.state == 'proforma') or removeParentNode('para')) and '' ]] - Draft Invoice [[ ((o.type == 'out_invoice' and o.state == 'draft') or removeParentNode('para')) and '' ]] - [[ title(o)]] Canceled Invoice [[ ((o.type == 'out_invoice' and o.state == 'cancel') or removeParentNode('para')) and '' ]] - [[ title(o)]] Refund [[ (o.type=='out_refund' or removeParentNode('para')) and '' ]] [[ o.number ]] - [[ title(o)]] Supplier Refund [[ (o.type=='in_refund' or removeParentNode('para')) and '' ]] [[ o.number ]] - - [[ title(o)]] Supplier Invoice [[ (o.type=='in_invoice' or removeParentNode('para')) and '' ]] - [[ o.number ]] - - - - - - Document - : - [[o.name]] - - - Invoice Date: - [[o.date_invoice]] - - Customer Ref: [[ o.address_invoice_id.partner_id.ref or '/' ]] - - - - - - - Description - - - Quantity - - - Unit Price - - - Disc. (%) - - - Price - - - -
- [[repeatIn(o.invoice_line,'l') ]] - - - - [[ l.name ]] - - - [[ formatLang(l.quantity) ]] [[l.uos_id and l.uos_id.name or '' ]] - - - [[ formatLang(l.price_unit) ]] - - - [[ l.discount and formatLang (l.discount) or '' ]] - - - [[ formatLang(l.price_subtotal) ]] [[o.currency_id.code ]] - - - - - - - [[ repeatIn((l.note and l.note.splitlines()) or [], 'note') ]] - - - - - - [[ note or removeParentNode('table') ]] - - - -
- - - - - - - Tax - - - Base - - - Amount - - - - - [[ repeatIn(o.tax_line,'t') ]] [[ t.name ]] - - - [[ formatLang(t.base) ]] - - - [[ formatLang(t.amount)]] - - - - - - - - - Total (excl. taxes): - - - [[ formatLang(o.amount_untaxed) ]] [[o.currency_id.code ]] - - - - - Taxes: - - - [[ formatLang(o.amount_tax) ]] [[o.currency_id.code ]] - - - - - Total (incl. taxes): - - - [[ formatLang(o.amount_total) ]] [[o.currency_id.code ]] - - - - - - - - - - [[ format(o.comment or '') ]] - - - - [[ format((o.payment_term and o.payment_term.note) or '') ]] -
-
- diff --git a/addons/account_voucher/report/tax_report.py b/addons/account_voucher/report/tax_report.py deleted file mode 100755 index 7a898753237..00000000000 --- a/addons/account_voucher/report/tax_report.py +++ /dev/null @@ -1,185 +0,0 @@ -############################################################################## -# -# Copyright (c) 2005-2006 TINY SPRL. (http://tiny.be) All Rights Reserved. -# -# WARNING: This program as such is intended to be used by professional -# programmers who take the whole responsability of assessing all potential -# consequences resulting from its eventual inadequacies and bugs -# End users who are looking for a ready-to-use solution with commercial -# garantees and support are strongly adviced to contract a Free Software -# Service Company -# -# This program is Free Software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# 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 General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -############################################################################## - -import time -import pooler -from report import report_sxw - -class account_tax_report(report_sxw.rml_parse): - def __init__(self, cr, uid, name, context): - super(account_tax_report, self).__init__(cr, uid, name, context) - self.localcontext.update({ - 'get_invoice': self.getInvoices, - 'add_invoice': self.addInvoice, - 'get_tax': self.getTax, - 'get_tax_detail' : self.getTaxDetail, - 'get_retail' : self.getRetailTax, - 'get_retail_detail' : self.getRetailTaxDetail, - 'get_local_sale' : self.getLocalSale, - 'get_retail_sale' : self.getRetailSale, - 'total_local_sale' : self.getTotalLocalSale, - 'total_local_tax' : self.getTotalLocalTax, - 'total_retail_sale' : self.getTotalRetailSale, - 'total_retail_tax' : self.getTotalRetailTax, - 'time': time, - 'get_period': self.getPeriod, - 'test' : self.testMethod, - - }) - self.local = 0 - self. retail = 0 - - self.tax_tax = {} - self.retail_tax = {} - - self.sale_tax = {} - self.sale_retail = {} - - self.total_local_sale = 0 - self.total_local_tax = 0 - - self.total_retail_sale = 0 - self.total_retail_tax = 0 - - self.invoices = [] - self.flag = False - #end def - - def getPeriod(self, period_id): - return self.pool.get('account.period').browse(self.cr, self.uid, period_id).name - #end def - - def testMethod(self, obj): - print type(obj) == type({}), obj; - if type(obj) == type({}) and not self.flag: - if obj.has_key('form'): - self.flag = True - ids = self.pool.get('account.move.line').search(self.cr, self.uid, [('period_id','=',obj['form']['period_id'])]) - account = self.pool.get('account.move.line').read(self.cr, self.uid,ids,['invoice']) - invoice_ids = [] - for i in account: - if i['invoice'][0]: - if not i['invoice'][0] in invoice_ids: - inv = self.pool.get('account.invoice').browse(self.cr, self.uid,i['invoice'][0]) - if inv.type == 'out_invoice' and inv.state == 'open': - if not i['invoice'][0] in self.invoices: - print '*********************** : ',i['invoice'][0] - self.invoices.append(i['invoice'][0]) - #end if - #end if - #end for - #end if - elif self.flag == False: - self.invoices = self.ids - #end if - #end def - - def getInvoices(self): - print '>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>',self.invoices; - return self.pool.get('account.invoice').browse(self.cr, self.uid, self.invoices) - #end def - - def addInvoice(self, invoice): - if invoice.retail_tax == 'tax': - self.total_local_sale += invoice.amount_untaxed - self.total_local_tax += invoice.amount_tax - - for tax in invoice.tax_line: - if self.tax_tax.has_key(tax.name): - self.tax_tax[tax.name] += tax.tax_amount - self.sale_tax[tax.name] += tax.base_amount - else: - self.tax_tax[tax.name] = tax.tax_amount - self.sale_tax[tax.name] = tax.base_amount - #end for - elif invoice.retail_tax == 'retail': - self.total_retail_sale += invoice.amount_untaxed - self.total_retail_tax += invoice.amount_tax - self. retail += invoice.amount_total - for tax in invoice.tax_line: - if self.retail_tax.has_key(tax.name): - self.retail_tax[tax.name] += tax.tax_amount - self.sale_retail[tax.name] += tax.base_amount - else: - self.retail_tax[tax.name] = tax.tax_amount - self.sale_retail[tax.name] = tax.base_amount - #end if - #end for - #endif - #end def - - def getTaxDetail(self, tax): - return self.tax_tax[tax]; - - def getTax(self): - tax = [] - for i in self.tax_tax: - tax.append(i) - return tax - #end if - - def getRetailTaxDetail(self, tax): - return self.retail_tax[tax]; - - def getRetailTax(self): - tax = [] - for i in self.retail_tax: - tax.append(i) - return tax - #end if - - def getLocalSale(self, tax): - return self.sale_tax[tax] - #end def - - def getRetailSale(self, tax): - return self.sale_retail[tax] - #end def - - def getTotalLocalSale(self): - return self.total_local_sale - #end def - - def getTotalLocalTax(self): - return self.total_local_tax - #end def - - def getTotalRetailSale(self): - return self.total_retail_sale - #end def - - def getTotalRetailTax(self): - return self.total_retail_tax - #end def -#end class - -report_sxw.report_sxw( - 'report.indianvat.declaration', - 'account.invoice', - 'addons/india/account/report/tax_report.rml', - parser=account_tax_report, -) \ No newline at end of file diff --git a/addons/account_voucher/report/tax_report.rml b/addons/account_voucher/report/tax_report.rml deleted file mode 100755 index 1c7bc40450d..00000000000 --- a/addons/account_voucher/report/tax_report.rml +++ /dev/null @@ -1,255 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Sales Register for the Month of XXX-2007 - - - - Date : [[time.strftime('%Y-%m-%d')]] at [[ time.strftime('%H:%M:%S') ]] - [[ test(data) ]] [[ test(objects) ]] - - - - Date - - - Invoice - No - - - Party Name - - - S.T.Req No - - - Invoice Amount - - - Tax. Amount - - - - - - - - - - [[repeatIn(get_invoice(),'o') ]] - [[ o.date_invoice ]] [[ add_invoice(o) ]] - - - [[ o.number ]] - - - [[ o.partner_id.name ]] - - - [[ o.partner_id.vat]] - - - [[ o.amount_total ]] [[o.currency_id.code ]] - - - [[ o.amount_tax ]] [[o.currency_id.code ]] - - - - - - - Local Sale Report - - - - Description - - - Invoice Amount - - - Tax Amount - - - - - - - - - - [[ repeatIn(get_tax(),'t') ]] - [[ t ]] - - - [[ get_local_sale(t) ]] [[o.currency_id.code ]] - - - [[ get_tax_detail(t) ]] [[o.currency_id.code ]] - - - - - - - - - - - - TOTAL - - - [[ total_local_sale() ]] [[o.currency_id.code ]] - - - [[ total_local_tax() ]] [[o.currency_id.code ]] - - - - - - - - - - - - Retail Sale Report - - - - Description - - - Invoice Amount - - - Tax Amount - - - - - - - - - - [[ repeatIn(get_retail(),'r') ]] - [[ r ]] - - - [[ get_retail_sale(r) ]] [[o.currency_id.code ]] - - - [[ get_retail_detail(r) ]] [[o.currency_id.code ]] - - - - - - - - - - - - TOTAL - - - [[ total_retail_sale() ]] [[o.currency_id.code ]] - - - [[ total_retail_tax() ]] [[o.currency_id.code ]] - - - - - - - - - - - - For [[ company.name ]] - - - - [[ user.name ]] - - -