From: Jan Büren Date: Fri, 4 Jun 2021 09:46:35 +0000 (+0200) Subject: Ergänzung zu 3e79972f6ef Weniger Code und klarer X-Git-Tag: kivitendo-mebil_0.1-0~9^2~193 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=996eeac7efd989c9750a88692d6c75d99a34cf2f;p=kivitendo-erp.git Ergänzung zu 3e79972f6ef Weniger Code und klarer --- diff --git a/SL/DO.pm b/SL/DO.pm index 3b0b41be2..53730d771 100644 --- a/SL/DO.pm +++ b/SL/DO.pm @@ -663,7 +663,7 @@ sub delete_transfers { die "No valid delivery order found" unless ref $do eq 'SL::DB::DeliveryOrder'; my $dt = DateTime->today->subtract(days => $::instance_conf->get_undo_transfer_interval); - croak "Wrong call. Please check undoing interval" unless DateTime->compare($do->itime, $dt) == 1; + croak "Wrong call. Please check undoing interval" unless $do->itime > $dt; foreach my $doi (@{ $do->orderitems }) { foreach my $dois (@{ $doi->delivery_order_stock_entries}) {