Koha-clms/t/db_dependent/Circulation
Jonathan Druart fe563f5911 Bug 16272: Specific case when switching an on-site checkout to a regular checkout
In the case on-site checkouts are considered as a regular checkout in issuing
rules (i.e. ConsiderOnSiteCheckoutsAsNormalCheckouts is on):
When after the on-site checkout the maximum limit of checkouts is
reached and the patron wants to switch an on-site checkout to a regular
checkout, the C4::Circulation::TooMany subroutine will return a
TOO_MANY_CHECKOUTS error.
To avoid that, we need to allow an extra checkout in this subroutine.

Test plan:
0/ Switch ConsiderOnSiteCheckoutsAsNormalCheckouts and
SwitchOnSiteCheckouts on
1/ In the issuing rules, set the total number of checkouts (maxissueqty)
to 2 and the number of on-site checkouts to 2 (maxonsiteissueqty)
2/ Check 2 items out ticking the 'on-site checkout' checkbox
3/ Check one of these items out, to automatically switch it to a regular
checkout
=> The checkout should be allowed.

Sponsored-by: BULAC - http://www.bulac.fr/
Signed-off-by: Nicolas Legrand <nicolas.legrand@bulac.fr>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2016-09-09 11:43:56 +00:00
..
IssuingRules Bug 15548: Move new patron related code to Patron* 2016-03-03 14:38:26 -07:00
AnonymiseIssueHistory.t Bug 16155: Adjust a few other tests 2016-05-04 13:47:58 +00:00
Branch.t Bug 16404: Fix Circulation/Branch.t (tests 8-11) 2016-05-03 15:21:31 +00:00
CalcDateDue.t Bug 12787: (QA followup) small QA fixes 2016-04-22 00:54:35 +00:00
CalcFine.t Bug 16155: Adjust a few other tests 2016-05-04 13:47:58 +00:00
CheckIfIssuedToPatron.t Bug 15407: Koha::Patron::Categories - replace C4::Category->all 2016-09-08 13:29:03 +00:00
CheckValidBarcode.t Bug 15629: Koha::Libraries - Remove ModBranch 2016-02-24 03:55:06 +00:00
GetHardDueDate.t Bug 14695: Fix GetHardDueDate.t tests 2016-09-08 12:44:16 +00:00
GetIssues.t Bug 15758: Koha::Libraries - Remove GetBranches 2016-09-08 14:36:03 +00:00
GetTopIssues.t Bug 11998: Use t::lib::Mocks::mock_preference in tests 2016-03-15 07:08:28 +00:00
IsItemIssued.t Bug 14504: Changes missed while fixing patches 2016-08-26 12:07:27 +00:00
MarkIssueReturned.t Bug 15629: Koha::Libraries - Remove ModBranch 2016-02-24 03:55:06 +00:00
NoIssuesChargeGuarantees.t Bug 16405: Fix Circulation/NoIssuesChargeGuarantees.t test 2 2016-05-04 14:23:34 +00:00
OfflineOperation.t Bug 12787: Reorganise t/db_dependent files 2016-04-22 00:54:35 +00:00
Returns.t Bug 11998: Use t::lib::Mocks::mock_preference in tests 2016-03-15 07:08:28 +00:00
SwitchOnSiteCheckouts.t Bug 16272: Specific case when switching an on-site checkout to a regular checkout 2016-09-09 11:43:56 +00:00
TooMany.t Bug 15758: Koha::Libraries - Ultimate duel for C4::Branch 2016-09-08 14:36:04 +00:00
dateexpiry.t Bug 12787: Reorganise t/db_dependent files 2016-04-22 00:54:35 +00:00
issue.t Bug 12787: Reorganise t/db_dependent files 2016-04-22 00:54:35 +00:00
transfers.t Bug 15758: Koha::Libraries - Ultimate duel for C4::Branch 2016-09-08 14:36:04 +00:00