From a104b890a4cb1c11d1992d6556ce3335c52b0e42 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 6 Mar 2007 14:23:26 +0000 Subject: [PATCH] Den Storno-Button wirklich nur dann anzeigen, wenn die Rechnung noch nicht storniert wurde. --- bin/mozilla/ir.pl | 4 +++- bin/mozilla/is.pl | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index 04ca53ee4..d72ca7ed8 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -786,12 +786,14 @@ sub form_footer { $closedto = $form->datetonum($form->{closedto}, \%myconfig); if ($form->{id}) { + my $show_storno = !$form->{storno} && !IS->has_storno(\%myconfig, $form, "ap"); + print qq| |; print qq| -| unless ($form->{storno}); +| if ($show_storno); if ($form->{radier}) { print qq| datetonum($form->{closedto}, \%myconfig); if ($form->{id}) { + my $show_storno = !$form->{storno} && !IS->has_storno(\%myconfig, $form, "ar"); + print qq| @@ -1112,7 +1114,7 @@ if ($form->{type} eq "credit_note") { |; print qq| | unless ($form->{storno}); + . $locale->text('Storno') . qq|"> | if ($show_storno); print qq| |; -- 2.39.5