From 0048944b41be3554f48265f9fae1d71c635b3762 Mon Sep 17 00:00:00 2001 From: freiphone Date: Wed, 26 Jul 2017 00:19:04 +0200 Subject: [PATCH] =?utf8?q?Bug-Fix:=20Kreditorenbuchung-=C3=84nderbarkeit?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Es wurde der Wert der Debitorenbuchung-Änderbarkeit statt der Kreditorenbuchung-Änderbarkeit aus der Mandantenkonfiguration abgefragt. --- bin/mozilla/ap.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index 425816f6e..790cb69c0 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -1194,8 +1194,8 @@ sub setup_ap_display_form_action_bar { my $closedto = $::form->datetonum($::form->{closedto}, \%::myconfig); my $is_closed = $transdate <= $closedto; - my $change_never = $::instance_conf->get_ar_changeable == 0; - my $change_on_same_day_only = $::instance_conf->get_ar_changeable == 2 && ($::form->current_date(\%::myconfig) ne $::form->{gldate}); + my $change_never = $::instance_conf->get_ap_changeable == 0; + my $change_on_same_day_only = $::instance_conf->get_ap_changeable == 2 && ($::form->current_date(\%::myconfig) ne $::form->{gldate}); my $is_storno = IS->is_storno(\%::myconfig, $::form, 'ap', $::form->{id}); my $has_storno = IS->has_storno(\%::myconfig, $::form, 'ap'); -- 2.20.1