manueller Zahlungseingang beim Beleg, nur bei alten Rechnungstypen
authorJan Büren <jan@kivitendo.de>
Mon, 14 Feb 2022 09:40:29 +0000 (10:40 +0100)
committerJan Büren <jan@kivitendo.de>
Mon, 14 Feb 2022 12:54:09 +0000 (13:54 +0100)
und nicht bei Anzahlungs- oder Schlußrechnungen

bin/mozilla/is.pl
templates/webpages/is/form_footer.html

index 0be63a5..14b472f 100644 (file)
@@ -624,11 +624,11 @@ sub form_header {
     $form->{"select$item"} =~ s/option>\Q$form->{$item}\E/option selected>$form->{$item}/;
   }
 
-  $TMPL_VAR{is_type_invoice_for_advance_payment} = $form->{type} eq "invoice_for_advance_payment";
-  $TMPL_VAR{is_type_credit_note}                 = $form->{type}   eq "credit_note";
-  $TMPL_VAR{is_format_html}                      = $form->{format} eq 'html';
-  $TMPL_VAR{dateformat}                          = $myconfig{dateformat};
-  $TMPL_VAR{numberformat}                        = $myconfig{numberformat};
+  $TMPL_VAR{is_type_normal_invoice} = $form->{type} eq "invoice";
+  $TMPL_VAR{is_type_credit_note} = $form->{type}   eq "credit_note";
+  $TMPL_VAR{is_format_html}      = $form->{format} eq 'html';
+  $TMPL_VAR{dateformat}          = $myconfig{dateformat};
+  $TMPL_VAR{numberformat}        = $myconfig{numberformat};
 
   # hiddens
   $TMPL_VAR{HIDDENS} = [qw(
@@ -768,7 +768,7 @@ sub form_footer {
   }
 
   print $form->parse_html_template('is/form_footer', {
-    is_type_invoice_for_advance_payment => ($form->{type} eq "invoice_for_advance_payment"),
+    is_type_normal_invoice => ($form->{type} eq "invoice"),
     is_type_credit_note                 => ($form->{type} eq "credit_note"),
     totalpaid                           => $totalpaid,
     paid_missing                        => $form->{invtotal} - $totalpaid,
index a311685..856c7f4 100644 (file)
     </table>
    </td>
   </tr>
-
-[% IF !is_type_invoice_for_advance_payment %]
+[% IF is_type_normal_invoice OR  is_type_credit_note %]
   [% PROCESS 'is/_payments.html' %]
 [% END %]
  </table>