Lines 318-324
sub report_by_branch {
Link Here
|
318 |
|
318 |
|
319 |
if ($branch) { # Branch limited report |
319 |
if ($branch) { # Branch limited report |
320 |
push @{$out}, _report_per_branch( $branched->{ $branch->branchcode } ); |
320 |
push @{$out}, _report_per_branch( $branched->{ $branch->branchcode } ); |
321 |
} elsif ( $data->{actionable} ) { # Full email report |
321 |
} elsif ( $data->{actionable} || $data->{stationary} ) { # Full email report |
322 |
while ( my ( $branchcode_id, $details ) = each %{$branched} ) { |
322 |
while ( my ( $branchcode_id, $details ) = each %{$branched} ) { |
323 |
push @{$out}, _report_per_branch($details) |
323 |
push @{$out}, _report_per_branch($details) |
324 |
if ( @{ $details->{items} } ); |
324 |
if ( @{ $details->{items} } ); |
325 |
- |
|
|