From 94b71f17c4183ca5602a0ba3a798b36bf30750b1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 6 Nov 2009 13:21:44 +0100 Subject: [PATCH] Wiedervorlagen korrekt anzeigen. --- bin/mozilla/is.pl | 2 +- templates/webpages/is/form_footer_de.html | 3 +-- templates/webpages/is/form_footer_master.html | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index 797c26002..b1aa9f3c5 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -404,7 +404,7 @@ sub form_footer { # follow ups if ($form->{id}) { $form->{follow_ups} = FU->follow_ups('trans_id' => $form->{id}) || []; - $form->{follow_ups_unfinished} = sum map { $_->{due} * 1 } @{ $form->{follow_ups} }; + $form->{follow_ups_unfinished} = ( sum map { $_->{due} * 1 } @{ $form->{follow_ups} } ) || 0; } # payments diff --git a/templates/webpages/is/form_footer_de.html b/templates/webpages/is/form_footer_de.html index 66283ec77..bb8ac22d9 100644 --- a/templates/webpages/is/form_footer_de.html +++ b/templates/webpages/is/form_footer_de.html @@ -32,7 +32,7 @@ -[%- IF id %] +[%- IF id && follow_ups.size %] [%- LxERP.format_string('Es gibt #1 Wiedervorlage(n), von denen #2 fällig ist/sind.', @@ -66,7 +66,6 @@ [%- END %] -[%#- subtotal %] [%- UNLESS taxincluded %] diff --git a/templates/webpages/is/form_footer_master.html b/templates/webpages/is/form_footer_master.html index a3d53fd5a..f78036725 100644 --- a/templates/webpages/is/form_footer_master.html +++ b/templates/webpages/is/form_footer_master.html @@ -32,7 +32,7 @@ -[%- IF id %] +[%- IF id && follow_ups.size %]
Zwischensumme
[%- LxERP.format_string('There are #1 unfinished follow-ups of which #2 are due.', @@ -66,7 +66,6 @@ [%- END %] -[%#- subtotal %] [%- UNLESS taxincluded %] -- 2.20.1
Subtotal