Fix looping construct in NotifyAboutLowStock activity. Fix tests.
This commit is contained in:
parent
3cb7970a91
commit
af20594535
2 changed files with 7 additions and 2 deletions
|
|
@ -98,7 +98,7 @@ sub execute {
|
|||
my $warningLimit = $self->get('warningLimit');
|
||||
my $finishTime = time() + $self->getTTL;
|
||||
my $expired = 0;
|
||||
PRODUCT: foreach my $product ($productIterator->()) {
|
||||
PRODUCT: while (my $product = $productIterator->()) {
|
||||
VARIANT: foreach my $collateral ( @{ $product->getAllCollateral('variantsJSON') }) {
|
||||
if ($collateral->{quantity} <= $warningLimit) {
|
||||
##Build message
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue