Lines 417-423
subtest 'add_enrolment_fee_if_needed' => sub {
Link Here
|
417 |
|
417 |
|
418 |
# Check with calling directly Koha::Patron->get_enrolment_fee_if_needed |
418 |
# Check with calling directly Koha::Patron->get_enrolment_fee_if_needed |
419 |
$patron->categorycode('YA')->store; |
419 |
$patron->categorycode('YA')->store; |
420 |
my $fee = $patron->add_enrolment_fee_if_needed; |
|
|
421 |
$total = $patron->account->balance; |
420 |
$total = $patron->account->balance; |
422 |
is( int($total), |
421 |
is( int($total), |
423 |
int($enrolmentfee_K + $enrolmentfee_J + $enrolmentfee_YA), |
422 |
int($enrolmentfee_K + $enrolmentfee_J + $enrolmentfee_YA), |
424 |
- |
|
|