From: freiphone Date: Tue, 25 Jul 2017 22:19:04 +0000 (+0200) Subject: Bug-Fix: Kreditorenbuchung-Änderbarkeit X-Git-Tag: release-3.5.4~960^2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=0048944b41be3554f48265f9fae1d71c635b3762;p=kivitendo-erp.git Bug-Fix: Kreditorenbuchung-Änderbarkeit Es wurde der Wert der Debitorenbuchung-Änderbarkeit statt der Kreditorenbuchung-Änderbarkeit aus der Mandantenkonfiguration abgefragt. --- 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');