DTA : bugfix. The invoice ref number is now right justified with zero's instead of white spaces

bzr revid: bch-e65ab9bb36ff49920ef040c81a2269b970eb87cd
This commit is contained in:
bch 2007-03-26 14:14:11 +00:00
parent f7d65c9714
commit de624f435d
1 changed files with 4 additions and 0 deletions

View File

@ -480,6 +480,10 @@ def _create_dta(self,cr,uid,data,context):
v['partner_bank_code']= i.partner_bank_id.bank_code or False
v['invoice_reference']= i.reference
v['invoice_bvr_num']= i.bvr_ref_num
if v['invoice_bvr_num']:
v['invoice_bvr_num'] = v['invoice_bvr_num'].rjust(27,'0')
print len(v['invoice_bvr_num']), v['invoice_bvr_num']
v['partner_comment']= i.partner_comment
v['partner_name'] = i.partner_id and i.partner_id.name or ''