Lines 160-166
subtest 'cashup' => sub {
Link Here
|
160 |
|
160 |
|
161 |
ok( |
161 |
ok( |
162 |
$cashup1 = $register->add_cashup( |
162 |
$cashup1 = $register->add_cashup( |
163 |
{ user_id => $patron->id, amount => '12.00' } |
163 |
{ manager_id => $patron->id, amount => '12.00' } |
164 |
), |
164 |
), |
165 |
'call successfull' |
165 |
'call successfull' |
166 |
); |
166 |
); |
Lines 184-190
subtest 'cashup' => sub {
Link Here
|
184 |
plan tests => 3; |
184 |
plan tests => 3; |
185 |
|
185 |
|
186 |
my $cashup2 = |
186 |
my $cashup2 = |
187 |
$register->add_cashup( { user_id => $patron->id, amount => '6.00' } ); |
187 |
$register->add_cashup( { manager_id => $patron->id, amount => '6.00' } ); |
188 |
|
188 |
|
189 |
my $last_cashup = $register->last_cashup; |
189 |
my $last_cashup = $register->last_cashup; |
190 |
is( |
190 |
is( |
Lines 220-226
subtest 'cashup' => sub {
Link Here
|
220 |
is( $accountlines->count, 2, 'No cashup, all accountlines returned' ); |
220 |
is( $accountlines->count, 2, 'No cashup, all accountlines returned' ); |
221 |
|
221 |
|
222 |
my $cashup3 = |
222 |
my $cashup3 = |
223 |
$register->add_cashup( { user_id => $patron->id, amount => '2.50' } ); |
223 |
$register->add_cashup( { manager_id => $patron->id, amount => '2.50' } ); |
224 |
|
224 |
|
225 |
$accountlines = $register->outstanding_accountlines; |
225 |
$accountlines = $register->outstanding_accountlines; |
226 |
is( $accountlines->count, 0, 'Cashup added, no accountlines returned' ); |
226 |
is( $accountlines->count, 0, 'Cashup added, no accountlines returned' ); |
227 |
- |
|
|