[REF] l10n_it: replaced tabs with 4 spaces

bzr revid: qdp-launchpad@tinyerp.com-20101119130033-38piah88n9b9w73e
This commit is contained in:
qdp-launchpad@tinyerp.com 2010-11-19 14:00:33 +01:00
parent 523d5a3b10
commit 61e9e74bad
2 changed files with 25 additions and 25 deletions

View File

@ -15,11 +15,11 @@ class l10n_chart_it_servabit_report_libroIVA_credito(report_sxw.rml_parse):
})
def get_company(self,fiscal_year):
#print 'COMP = ',fiscal_year
#print 'COMP = ',fiscal_year
return ""
def get_periods(self,fiscal_year):
#print 'Fiscal year id:',fiscal_year.id
#print 'Fiscal year id:',fiscal_year.id
obj=pooler.get_pool(self.cr.dbname).get('account.fiscalyear')
fy=obj.browse(self.cr,self.uid,fiscal_year.id)
#print 'Periods = ',fy.period_ids
@ -34,7 +34,7 @@ class l10n_chart_it_servabit_report_libroIVA_credito(report_sxw.rml_parse):
self.cr.execute("""
SELECT id FROM account_invoice
WHERE (state='open' OR state='paid') AND period_id="""+str(period.id)+""" AND (type='out_invoice' OR type='out_refund')
""")
""")
ids=self.cr.fetchall()
#print 'IDS = ',
if ids:
@ -52,9 +52,9 @@ class l10n_chart_it_servabit_report_libroIVA_credito(report_sxw.rml_parse):
for invoice in invoices:
d={'periodo': period.name}
d['protocollo']=invoice.number
#print 'PARTNER ',invoice.partner_id.name
#print 'PARTNER ',invoice.partner_id.name
causale=invoice.partner_id.name
#print 'CAUSALE = ',causale
#print 'CAUSALE = ',causale
d['causale']=causale
d['numero']=invoice.reference
d['data_doc']=invoice.date_invoice
@ -69,4 +69,4 @@ class l10n_chart_it_servabit_report_libroIVA_credito(report_sxw.rml_parse):
report_sxw.report_sxw('report.l10n_it.report.libroIVA_credito','account.report_libroiva', 'l10n_it/report/libroIVA_credito.rml', parser=l10n_chart_it_servabit_report_libroIVA_credito,header=False)
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -31,11 +31,11 @@ class l10n_chart_it_servabit_report_libroIVA_debito(report_sxw.rml_parse):
obj=pooler.get_pool(self.cr.dbname).get('account.invoice')
# Selezione tutte le fatture emesse nel periodo
self.cr.execute("""
SELECT id FROM account_invoice
WHERE (state='open' OR state='paid') AND
period_id="""+str(period.id)+"""
AND (type='in_invoice' OR type='in_refund')
""")
SELECT id FROM account_invoice
WHERE (state='open' OR state='paid') AND
period_id="""+str(period.id)+"""
AND (type='in_invoice' OR type='in_refund')
""")
ids=self.cr.fetchall()
#print 'IDS = ',
if ids:
@ -53,21 +53,21 @@ class l10n_chart_it_servabit_report_libroIVA_debito(report_sxw.rml_parse):
for invoice in invoices:
d={'periodo': period.name}
d['protocollo']=invoice.number
#print 'PARTNER ',invoice.partner_id.name
causale=invoice.partner_id.name
#print 'CAUSALE = ',causale
d['causale']=causale
d['numero']=invoice.reference
d['data_doc']=invoice.date_invoice
for tax in invoice.tax_line:
#print '\tTAX: ',tax
d['aliquota']=tax.tax_code_id.name
d['imponibile']=tax.base
d['imposta']=tax.amount
res.append(d)
d={'periodo':'', 'protocollo':'', 'causale':'', 'numero':'', 'data_doc':'', }
#print 'PARTNER ',invoice.partner_id.name
causale=invoice.partner_id.name
#print 'CAUSALE = ',causale
d['causale']=causale
d['numero']=invoice.reference
d['data_doc']=invoice.date_invoice
for tax in invoice.tax_line:
#print '\tTAX: ',tax
d['aliquota']=tax.tax_code_id.name
d['imponibile']=tax.base
d['imposta']=tax.amount
res.append(d)
d={'periodo':'', 'protocollo':'', 'causale':'', 'numero':'', 'data_doc':'', }
return res
report_sxw.report_sxw('report.l10n_it.report.libroIVA_debito','account.report_libroiva', 'l10n_it/report/libroIVA_debito.rml', parser=l10n_chart_it_servabit_report_libroIVA_debito,header=False)
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: