Lines 208-214
subtest 'summary' => sub {
Link Here
|
208 |
$expected_total += $expected_income_total; |
208 |
$expected_total += $expected_income_total; |
209 |
$expected_total -= $expected_payout_total; |
209 |
$expected_total -= $expected_payout_total; |
210 |
|
210 |
|
211 |
diag("Cashup 1"); |
211 |
# Cashup 1 |
212 |
my $cashup1 = |
212 |
my $cashup1 = |
213 |
$register->add_cashup( { manager_id => $manager->id, amount => '2.00' } ); |
213 |
$register->add_cashup( { manager_id => $manager->id, amount => '2.00' } ); |
214 |
|
214 |
|
Lines 268-274
subtest 'summary' => sub {
Link Here
|
268 |
$expected_total += $expected_income_total; |
268 |
$expected_total += $expected_income_total; |
269 |
$expected_total -= $expected_payout_total; |
269 |
$expected_total -= $expected_payout_total; |
270 |
|
270 |
|
271 |
diag("Cashup 2"); |
271 |
# Cashup 2 |
272 |
my $cashup2 = |
272 |
my $cashup2 = |
273 |
$register->add_cashup( { manager_id => $manager->id, amount => '2.00' } ); |
273 |
$register->add_cashup( { manager_id => $manager->id, amount => '2.00' } ); |
274 |
|
274 |
|
Lines 317-323
subtest 'summary' => sub {
Link Here
|
317 |
$payout2->date( \'NOW() - INTERVAL 3 MINUTE' )->store; |
317 |
$payout2->date( \'NOW() - INTERVAL 3 MINUTE' )->store; |
318 |
$expected_payout_total += '1.00'; |
318 |
$expected_payout_total += '1.00'; |
319 |
|
319 |
|
320 |
# Account fee of 1.00 fully refunded (Accross cashup boundary) |
320 |
# Account fee of 1.00 fully refunded (Across cashup boundary) |
321 |
unshift @{$expected_payout_grouped}, |
321 |
unshift @{$expected_payout_grouped}, |
322 |
{ |
322 |
{ |
323 |
'total' => '1', |
323 |
'total' => '1', |
Lines 330-336
subtest 'summary' => sub {
Link Here
|
330 |
$expected_total += $expected_income_total; |
330 |
$expected_total += $expected_income_total; |
331 |
$expected_total -= $expected_payout_total; |
331 |
$expected_total -= $expected_payout_total; |
332 |
|
332 |
|
333 |
diag("Cashup 3"); |
333 |
# Cashup 3 |
334 |
my $cashup3 = |
334 |
my $cashup3 = |
335 |
$register->add_cashup( { manager_id => $manager->id, amount => '2.00' } ); |
335 |
$register->add_cashup( { manager_id => $manager->id, amount => '2.00' } ); |
336 |
|
336 |
|