FIX party_required.

Get form the account and dont try to get it form a non existent line variable.

Task #157843
This commit is contained in:
Juanjo Garcia 2023-04-12 12:36:26 +02:00
parent 9a16d95bea
commit ff03342480
1 changed files with 2 additions and 2 deletions

View File

@ -399,7 +399,7 @@ class GeneralLedgerReport(HTMLReport):
records[key] = {
'account': account.name,
'code': account.code or str(account.id),
'party_required': line.account.party_required,
'party_required': account.party_required,
'lines': [],
'previous_balance': (balance + credit - debit),
'total_debit': debit,
@ -438,7 +438,7 @@ class GeneralLedgerReport(HTMLReport):
'account': account.name,
'code': account.code or str(account.id),
'lines': [],
'party_required': line.account.party_required,
'party_required': account.party_required,
'previous_balance': (balance + credit - debit),
'total_debit': debit,
'total_credit': credit,