From: Bernd Bleßmann Date: Mon, 20 Dec 2021 10:48:52 +0000 (+0100) Subject: Anzhalungs-Rg.: is.pl: neuen, eigenenen Schlussrechnungs-Typ berücksichtigen X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~217^2~20 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=23c9fc9709703059824a1b89e439f049a82a8faa;p=kivitendo-erp.git Anzhalungs-Rg.: is.pl: neuen, eigenenen Schlussrechnungs-Typ berücksichtigen --- diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index e05f57cd1..c308c0b2a 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -333,7 +333,7 @@ sub setup_is_action_bar { if ($form->{id} && $form->{type} eq "invoice_for_advance_payment") { my $invoice_obj = SL::DB::Invoice->load_cached($form->{id}); my $lr = $invoice_obj->linked_records(direction => 'to', to => ['Invoice']); - $has_final_invoice = any {'SL::DB::Invoice' eq ref $_ && "invoice" eq $_->invoice_type} @$lr; + $has_final_invoice = any {'SL::DB::Invoice' eq ref $_ && "final_invoice" eq $_->invoice_type} @$lr; } for my $bar ($::request->layout->get('actionbar')) {