View | Details | Raw Unified | Return to bug 20912
Collapse All | Expand All

(-)a/C4/Circulation.pm (-4 / +4 lines)
Lines 59-65 use Koha::RefundLostItemFeeRules; Link Here
59
use Koha::Account::Lines;
59
use Koha::Account::Lines;
60
use Koha::Account::Offsets;
60
use Koha::Account::Offsets;
61
use Koha::Config::SysPrefs;
61
use Koha::Config::SysPrefs;
62
use Koha::Fees;
62
use Koha::Charges::Fees;
63
use Carp;
63
use Carp;
64
use List::MoreUtils qw( uniq any );
64
use List::MoreUtils qw( uniq any );
65
use Scalar::Util qw( looks_like_number );
65
use Scalar::Util qw( looks_like_number );
Lines 707-713 sub CanBookBeIssued { Link Here
707
        #  So issuingimpossible should be ok.
707
        #  So issuingimpossible should be ok.
708
    }
708
    }
709
709
710
    my $fees = Koha::Fees->new(
710
    my $fees = Koha::Charges::Fees->new(
711
        {
711
        {
712
            patron    => $patron,
712
            patron    => $patron,
713
            library   => $library,
713
            library   => $library,
Lines 1337-1343 sub AddIssue { Link Here
1337
1337
1338
            my $patron = Koha::Patrons->find( $borrower );
1338
            my $patron = Koha::Patrons->find( $borrower );
1339
            my $library = Koha::Libraries->find( $branch );
1339
            my $library = Koha::Libraries->find( $branch );
1340
            my $fees = Koha::Fees->new(
1340
            my $fees = Koha::Charges::Fees->new(
1341
                {
1341
                {
1342
                    patron    => $patron,
1342
                    patron    => $patron,
1343
                    library   => $library,
1343
                    library   => $library,
Lines 2906-2912 sub AddRenewal { Link Here
2906
    }
2906
    }
2907
2907
2908
2908
2909
    my $fees = Koha::Fees->new(
2909
    my $fees = Koha::Charges::Fees->new(
2910
        {
2910
        {
2911
            patron    => $patron,
2911
            patron    => $patron,
2912
            library   => $library,
2912
            library   => $library,
(-)a/Koha/Fees.pm (-3 / +3 lines)
Lines 1-4 Link Here
1
package Koha::Fees;
1
package Koha::Charges::Fees;
2
2
3
# Copyright 2018 ByWater Solutions
3
# Copyright 2018 ByWater Solutions
4
#
4
#
Lines 27-37 use Koha::Exceptions; Link Here
27
27
28
=head1 NAME
28
=head1 NAME
29
29
30
Koha::Feess - Module calculating fees in Koha
30
Koha::Charges::Fees - Module calculating fees in Koha
31
31
32
=head3 new
32
=head3 new
33
33
34
Koha::Fees->new(
34
Koha::Charges::Fees->new(
35
    {
35
    {
36
        patron    => $patron,
36
        patron    => $patron,
37
        library   => $library,
37
        library   => $library,
(-)a/t/db_dependent/Koha/Fees.t (-3 / +2 lines)
Lines 30-36 use C4::Calendar; Link Here
30
use Koha::DateUtils qw(dt_from_string);
30
use Koha::DateUtils qw(dt_from_string);
31
31
32
BEGIN {
32
BEGIN {
33
    use_ok('Koha::Fees');
33
    use_ok('Koha::Charges::Fees');
34
}
34
}
35
35
36
my $builder = t::lib::TestBuilder->new();
36
my $builder = t::lib::TestBuilder->new();
Lines 89-95 my $patron = $builder->build_object( Link Here
89
my $dt_from = dt_from_string();
89
my $dt_from = dt_from_string();
90
my $dt_to = dt_from_string()->add( days => 6 );
90
my $dt_to = dt_from_string()->add( days => 6 );
91
91
92
my $fees = Koha::Fees->new(
92
my $fees = Koha::Charges::Fees->new(
93
    {
93
    {
94
        patron    => $patron,
94
        patron    => $patron,
95
        library   => $library,
95
        library   => $library,
96
- 

Return to bug 20912