From: Sven Schöling Date: Fri, 6 Nov 2009 12:21:44 +0000 (+0100) Subject: Wiedervorlagen korrekt anzeigen. X-Git-Tag: release-2.6.1beta1~111 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=94b71f17c4183ca5602a0ba3a798b36bf30750b1;p=kivitendo-erp.git Wiedervorlagen korrekt anzeigen. --- 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 %]
Subtotal