Revision 33dc5d6a
Von Tamino Steinert vor fast 2 Jahren hinzugefügt
SL/BackgroundJob/CheckBelowMinimumStock.pm | ||
---|---|---|
use SL::DBUtils qw(selectall_hashref_query);
|
||
use SL::Locale::String qw(t8);
|
||
|
||
use constant WAITING_FOR_EXECUTION => 0;
|
||
use constant START => 1;
|
||
use constant DONE => 2;
|
||
|
||
sub check_below_minimum_stock {
|
||
my ($self) = @_;
|
||
|
||
... | ... | |
my ($self, $job_obj) = @_;
|
||
$self->{job_obj} = $job_obj;
|
||
|
||
$job_obj->set_data(status => START())->save;
|
||
|
||
$self->{config} = $::lx_office_conf{check_below_minimum_stock} || {};
|
||
|
||
$self->check_below_minimum_stock();
|
||
... | ... | |
die $self->{errors};
|
||
}
|
||
|
||
$job_obj->set_data(status => DONE())->save;
|
||
return ;
|
||
}
|
||
|
Auch abrufbar als: Unified diff
BJ: CheckBelowMinimumStock: FIX: speichere keinen Status