]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Wiedervorlagen korrekt anzeigen.
authorSven Schöling <s.schoeling@linet-services.de>
Fri, 6 Nov 2009 12:21:44 +0000 (13:21 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Fri, 6 Nov 2009 12:21:44 +0000 (13:21 +0100)
bin/mozilla/is.pl
templates/webpages/is/form_footer_de.html
templates/webpages/is/form_footer_master.html

index 797c2600246c59ca15b4e8f861da1fb575c16f8d..b1aa9f3c5dae0079987bcb3b9eb585b3a3b1ce0b 100644 (file)
@@ -404,7 +404,7 @@ sub form_footer {
   # follow ups
   if ($form->{id}) {
     $form->{follow_ups}            = FU->follow_ups('trans_id' => $form->{id}) || [];
   # 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
   }
 
   # payments
index 66283ec776388266da35f8dbc14ec580352e5cc7..bb8ac22d9e596ec45e1ca127564d12425ffa769e 100644 (file)
@@ -32,7 +32,7 @@
           </script>
          </td>
         </tr>
           </script>
          </td>
         </tr>
-[%- IF id %]
+[%- IF id && follow_ups.size %]
         <tr>
           <td colspan="2">
             [%- LxERP.format_string('Es gibt #1 Wiedervorlage(n), von denen #2 fällig ist/sind.',
         <tr>
           <td colspan="2">
             [%- LxERP.format_string('Es gibt #1 Wiedervorlage(n), von denen #2 fällig ist/sind.',
@@ -66,7 +66,6 @@
   [%- END %]
        <table>
 
   [%- END %]
        <table>
 
-[%#- subtotal %]
 [%- UNLESS taxincluded %]
         <tr>
          <th align="right">Zwischensumme</th>
 [%- UNLESS taxincluded %]
         <tr>
          <th align="right">Zwischensumme</th>
index a3d53fd5ab86439392b6f4749c9b33c4e7afde0f..f780367254aee246f0d3d3d514947cf047c0eef4 100644 (file)
@@ -32,7 +32,7 @@
           </script>
          </td>
         </tr>
           </script>
          </td>
         </tr>
-[%- IF id %]
+[%- IF id && follow_ups.size %]
         <tr>
           <td colspan="2">
             [%- LxERP.format_string('<translate>There are #1 unfinished follow-ups of which #2 are due.</translate>',
         <tr>
           <td colspan="2">
             [%- LxERP.format_string('<translate>There are #1 unfinished follow-ups of which #2 are due.</translate>',
@@ -66,7 +66,6 @@
   [%- END %]
        <table>
 
   [%- END %]
        <table>
 
-[%#- subtotal %]
 [%- UNLESS taxincluded %]
         <tr>
          <th align="right"><translate>Subtotal</translate></th>
 [%- UNLESS taxincluded %]
         <tr>
          <th align="right"><translate>Subtotal</translate></th>