Anzahlungs-Rg.: Kein Zahlungsabschnitt in der Maske
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Mon, 8 Nov 2021 14:51:08 +0000 (15:51 +0100)
committerJan Büren <jan@kivitendo.de>
Mon, 14 Feb 2022 12:47:45 +0000 (13:47 +0100)
bin/mozilla/is.pl
templates/webpages/is/form_footer.html

index e199bca..14b3946 100644 (file)
@@ -246,8 +246,13 @@ sub prepare_invoice {
   if ($form->{type} eq "credit_note") {
     $form->{type}     = "credit_note";
     $form->{formname} = "credit_note";
+
+  } elsif ($form->{type} eq "invoice_for_advance_payment") {
+    $form->{type}     = "invoice_for_advance_payment";
+
   } elsif ($form->{formname} eq "proforma" ) {
     $form->{type}     = "invoice";
+
   } else {
     $form->{type}     = "invoice";
     $form->{formname} = "invoice";
@@ -559,6 +564,7 @@ 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};
@@ -702,6 +708,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_credit_note => ($form->{type} eq "credit_note"),
     totalpaid           => $totalpaid,
     paid_missing        => $form->{invtotal} - $totalpaid,
index 7d4c608..a311685 100644 (file)
    </td>
   </tr>
 
-[% PROCESS 'is/_payments.html' %]
+[% IF !is_type_invoice_for_advance_payment %]
+  [% PROCESS 'is/_payments.html' %]
+[% END %]
  </table>
 </div>
 [% PROCESS 'webdav/_list.html' %]