From 6c66f132e3a037eb175c710d7287c1251758dbc3 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 24 Jun 2025 13:01:41 +0100 Subject: [PATCH] Bug 40225: Check stationary items for stockrotation We should send the report even if all items are stationary --- misc/cronjobs/stockrotation.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/cronjobs/stockrotation.pl b/misc/cronjobs/stockrotation.pl index 94f100c59c8..b416c2f8cec 100755 --- a/misc/cronjobs/stockrotation.pl +++ b/misc/cronjobs/stockrotation.pl @@ -318,7 +318,7 @@ sub report_by_branch { if ($branch) { # Branch limited report push @{$out}, _report_per_branch( $branched->{ $branch->branchcode } ); - } elsif ( $data->{actionable} ) { # Full email report + } elsif ( $data->{actionable} || $data->{stationary} ) { # Full email report while ( my ( $branchcode_id, $details ) = each %{$branched} ) { push @{$out}, _report_per_branch($details) if ( @{ $details->{items} } ); -- 2.49.0