Bug 20287: ->store new deal with enrolment fee
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 23 Feb 2018 15:42:46 +0000 (12:42 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 18 Jul 2018 15:49:51 +0000 (15:49 +0000)
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
t/db_dependent/Koha/Patrons.t

index 3908c5b..0a88ea8 100644 (file)
@@ -417,7 +417,6 @@ subtest 'add_enrolment_fee_if_needed' => sub {
 
     # Check with calling directly Koha::Patron->get_enrolment_fee_if_needed
     $patron->categorycode('YA')->store;
-    my $fee = $patron->add_enrolment_fee_if_needed;
     $total = $patron->account->balance;
     is( int($total),
         int($enrolmentfee_K + $enrolmentfee_J + $enrolmentfee_YA),