minor fix report auxiliary book

This commit is contained in:
wilson gomez 2021-09-17 08:37:35 -05:00
parent 3dd4f4ae60
commit 34ecb31835
2 changed files with 7 additions and 1 deletions

View File

@ -463,8 +463,10 @@ class AuxiliaryBook(Report):
('date', 'ASC'),
], fields_names=[
'description', 'move.number', 'account', 'debit',
'credit', 'reference', 'date', 'party.name',
'credit', 'reference', 'date', 'party.name', 'party.id_number',
'move_origin.rec_name',
])
print('lines', lines)
key = operator.itemgetter('account')
lines.sort(key=key)
val = groupby(lines, key)
@ -483,6 +485,10 @@ class AuxiliaryBook(Report):
balance += line['debit'] - line['credit']
if line['party.']:
line['party'] = line['party.']['name']
line['party_id'] = line['party.']['id_number']
if line['move_origin.']:
line['origin'] = line['move_origin.']['rec_name']
line['balance'] = balance
rec_append(line)
return res

Binary file not shown.