From 0be9f3713e4060d4dd8c0510484373f5f32d7f35 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 21 Mar 2017 11:25:45 +0100 Subject: [PATCH] =?utf8?q?Kontoauszug=20verbuchen:=20Zeilen=20ohne=20Vorsc?= =?utf8?q?hl=C3=A4ge=20trotzdem=20anzeigen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- templates/webpages/bank_transactions/tabs/all.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/webpages/bank_transactions/tabs/all.html b/templates/webpages/bank_transactions/tabs/all.html index 247b51a12..eae900822 100644 --- a/templates/webpages/bank_transactions/tabs/all.html +++ b/templates/webpages/bank_transactions/tabs/all.html @@ -92,7 +92,8 @@ [%- FOREACH bt = BANK_TRANSACTIONS %] - [% FOREACH prop = bt.proposals %] + [% SET proposals = bt.proposals.as_list.size > 0 ? bt.proposals.as_list : [{}] ; + FOREACH prop = proposals %] [% IF loop.first %] [% 'Assign invoice' | $T8 %] @@ -104,7 +105,9 @@ [% bt.agreement %] [% END %] - [% PROCESS proposal_div %] + [% IF prop.id ; + PROCESS proposal_div ; + END %] [% bt.transdate_as_date %] [% LxERP.format_amount(bt.amount, 2) %] -- 2.20.1