set show_description before if/else record lines in general ledger report

#161977
This commit is contained in:
Raimon Esteve 2023-08-30 17:00:16 +02:00
parent 6a7842e4a9
commit e99c839f4d
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
{% if record.lines and record.party_required %}{% set show_description = data['parameters']['show_description'] %}
{% set show_description = data['parameters']['show_description'] %}
{% if record.lines and record.party_required %}
{% for party, lines in record.lines|groupby('party') %}
{% set ns = namespace(total_debit=0, total_credit=0) %}
{% set previous_balance = lines[0].balance + lines[0].credit - lines[0].debit %}