Bug 17575: (followup) Remove missing fine type warnings

Sponsored-by: ByWater Solutions

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Mason James <mtj@kohaaloha.com>
This commit is contained in:
Tomas Cohen Arazi 2016-11-07 16:08:02 -03:00 committed by Mason James
parent ebaaf40e5f
commit 6c19b6dbc1
1 changed files with 4 additions and 1 deletions

View File

@ -764,7 +764,8 @@ C4::Context->dbh->do("DELETE FROM accountlines");
issue_id => $issue->id(),
itemnumber => $itemnumber,
borrowernumber => $borrowernumber,
amount => 0
amount => 0,
type => q{}
}
);
@ -931,6 +932,7 @@ C4::Context->dbh->do("DELETE FROM accountlines");
itemnumber => $itemnumber,
borrowernumber => $patron->{borrowernumber},
amount => 1,
type => q{}
}
);
UpdateFine(
@ -939,6 +941,7 @@ C4::Context->dbh->do("DELETE FROM accountlines");
itemnumber => $itemnumber,
borrowernumber => $patron->{borrowernumber},
amount => 2,
type => q{}
}
);
is( Koha::Account::Lines->search({ issue_id => $issue->id })->count, 1, 'UpdateFine should not create a new accountline when updating an existing fine');