From: Moritz Bunkus Date: Tue, 6 Mar 2007 14:23:26 +0000 (+0000) Subject: Den Storno-Button wirklich nur dann anzeigen, wenn die Rechnung noch nicht storniert... X-Git-Tag: release-2.4.3^2~623 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/commitdiff_plain/a104b890a4cb1c11d1992d6556ce3335c52b0e42?hp=1fa915384134dc8ebff87b36a2ee0b99b76bcd7a Den Storno-Button wirklich nur dann anzeigen, wenn die Rechnung noch nicht storniert wurde. --- 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| |;