From 23c9fc9709703059824a1b89e439f049a82a8faa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 20 Dec 2021 11:48:52 +0100 Subject: [PATCH] =?utf8?q?Anzhalungs-Rg.:=20is.pl:=20neuen,=20eigenenen=20?= =?utf8?q?Schlussrechnungs-Typ=20ber=C3=BCcksichtigen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/is.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')) { -- 2.20.1