L10N_CH : DTA rjust modified for compatibility with python2.3
bzr revid: bch-874ccbb1b71106dfee5a4768dc0cf09c63e4865b
This commit is contained in:
parent
1fe2555883
commit
3403fa9347
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue