L10N_CH : DTA rjust modified for compatibility with python2.3

bzr revid: bch-874ccbb1b71106dfee5a4768dc0cf09c63e4865b
This commit is contained in:
bch 2007-01-18 10:18:51 +00:00
parent 1fe2555883
commit 3403fa9347
2 changed files with 4 additions and 4 deletions

View File

@ -446,7 +446,7 @@ def _create_dta(self,cr,uid,data,context):
continue
v['sequence'] = str(seq).rjust(5,'0')
v['sequence'] = str(seq).rjust(5).replace(' ','0')
v['amount_to_pay']= str(dtal.amount_to_pay).replace('.',',')
v['invoice_number'] = invoice_number or ''
v['invoice_currency'] = i.currency_id.code or ''
@ -609,12 +609,12 @@ def _create_dta(self,cr,uid,data,context):
dta_line_obj.write(cr,uid,[dtal.id],{'state':'done'})
seq += 1
# bank statement updated with the total amount :
pool.get('account.bank.statement').write(cr,uid,[bk_st_id],{'balance_end_real': amount_tot})
# segment total
v['amount_total'] = str(amount_tot).replace('.',',')
v['sequence'] = str(seq).rjust(5).replace(' ','0')
try:
if dta :
dta = dta + record_gt890(v).generate()