my $stat = $schema->resultset('Statistic')->search({
branch => $branch,
- type => 'payment'
+ type => 'PAYMENT'
}, { order_by => { -desc => 'datetime' } })->next();
ok( defined $stat, "There's a payment log that matches the branch" );
my $stat = $schema->resultset('Statistic')->search({
branch => $branch,
- type => 'payment'
+ type => 'PAYMENT'
}, { order_by => { -desc => 'datetime' } })->next();
ok( defined $stat, "There's a payment log that matches the branch" );