Revision 33dc5d6a
Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt
SL/BackgroundJob/CheckBelowMinimumStock.pm | ||
---|---|---|
13 | 13 |
use SL::DBUtils qw(selectall_hashref_query); |
14 | 14 |
use SL::Locale::String qw(t8); |
15 | 15 |
|
16 |
use constant WAITING_FOR_EXECUTION => 0; |
|
17 |
use constant START => 1; |
|
18 |
use constant DONE => 2; |
|
19 |
|
|
20 | 16 |
sub check_below_minimum_stock { |
21 | 17 |
my ($self) = @_; |
22 | 18 |
|
... | ... | |
138 | 134 |
my ($self, $job_obj) = @_; |
139 | 135 |
$self->{job_obj} = $job_obj; |
140 | 136 |
|
141 |
$job_obj->set_data(status => START())->save; |
|
142 |
|
|
143 | 137 |
$self->{config} = $::lx_office_conf{check_below_minimum_stock} || {}; |
144 | 138 |
|
145 | 139 |
$self->check_below_minimum_stock(); |
... | ... | |
150 | 144 |
die $self->{errors}; |
151 | 145 |
} |
152 | 146 |
|
153 |
$job_obj->set_data(status => DONE())->save; |
|
154 | 147 |
return ; |
155 | 148 |
} |
156 | 149 |
|
Auch abrufbar als: Unified diff
BJ: CheckBelowMinimumStock: FIX: speichere keinen Status