Merge pull request #113 from Pear-Trading/finn/statfix
fixed display error
This commit is contained in:
commit
8a12442eac
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ sub post_customer {
|
|||
);
|
||||
|
||||
my @all_weeks = $week_transaction_rs->all;
|
||||
my $first = $all_weeks[0]->get_column('count') || 0;
|
||||
my $first = defined $all_weeks[0] ? $all_weeks[0]->get_column('count') || 0 : 0;
|
||||
my $second = defined $all_weeks[1] ? $all_weeks[1]->get_column('count') || 0 : 0;
|
||||
my $max = max( map { $_->get_column('count') } @all_weeks );
|
||||
my $sum = sum( map { $_->get_column('count') } @all_weeks );
|
||||
|
|
Reference in a new issue