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

(-)a/t/db_dependent/SIP/Transaction.t (-21 / +29 lines)
Lines 16-21 use C4::SIP::ILS::Transaction::FeePayment; Link Here
16
use C4::SIP::ILS::Transaction::Hold;
16
use C4::SIP::ILS::Transaction::Hold;
17
17
18
use C4::Reserves;
18
use C4::Reserves;
19
use Koha::CirculationRules;
19
20
20
my $schema = Koha::Database->new->schema;
21
my $schema = Koha::Database->new->schema;
21
$schema->storage->txn_begin;
22
$schema->storage->txn_begin;
Lines 65-80 subtest fill_holds_at_checkout => sub { Link Here
65
        }
66
        }
66
    });
67
    });
67
68
68
    Koha::IssuingRule->new({
69
    Koha::CirculationRules->set_rules(
69
        categorycode     => $borrower->{categorycode},
70
        {
70
        itemtype         => $itype->{itemtype},
71
            categorycode => $borrower->{categorycode},
71
        branchcode       => $branch->{branchcode},
72
            branchcode   => $branch->{branchcode},
72
        onshelfholds     => 1,
73
            itemtype     => $itype->{itemtype},
73
        reservesallowed  => 3,
74
            rules        => {
74
        holds_per_record => 3,
75
                onshelfholds     => 1,
75
        issuelength      => 5,
76
                reservesallowed  => 3,
76
        lengthunit       => 'days',
77
                holds_per_record => 3,
77
    })->store;
78
                issuelength      => 5,
79
                lengthunit       => 'days',
80
            }
81
        }
82
    );
78
83
79
    my $reserve1 = AddReserve($branch->{branchcode},$borrower->{borrowernumber},$biblio->{biblionumber});
84
    my $reserve1 = AddReserve($branch->{branchcode},$borrower->{borrowernumber},$biblio->{biblionumber});
80
    my $reserve2 = AddReserve($branch->{branchcode},$borrower->{borrowernumber},$biblio->{biblionumber});
85
    my $reserve2 = AddReserve($branch->{branchcode},$borrower->{borrowernumber},$biblio->{biblionumber});
Lines 154-169 subtest cancel_hold => sub { Link Here
154
        library       => $library->branchcode,
159
        library       => $library->branchcode,
155
    });
160
    });
156
161
157
    Koha::IssuingRule->new({
162
    Koha::CirculationRules->set_rules(
158
        categorycode     => $patron->categorycode,
163
        {
159
        itemtype         => $item->effective_itemtype,
164
            categorycode => $patron->categorycode,
160
        branchcode       => $library->branchcode,
165
            branchcode   => $library->branchcode,
161
        onshelfholds     => 1,
166
            itemtype     => $item->effective_itemtype,
162
        reservesallowed  => 3,
167
            rules        => {
163
        holds_per_record => 3,
168
                onshelfholds     => 1,
164
        issuelength      => 5,
169
                reservesallowed  => 3,
165
        lengthunit       => 'days',
170
                holds_per_record => 3,
166
    })->store;
171
                issuelength      => 5,
172
                lengthunit       => 'days',
173
            }
174
        }
175
    );
167
176
168
    my $reserve1 =
177
    my $reserve1 =
169
      AddReserve( $library->branchcode, $patron->borrowernumber,
178
      AddReserve( $library->branchcode, $patron->borrowernumber,
170
- 

Return to bug 18936