• joubu's avatar
    Bug 19204: Make the debarment date calculation depends on finesCalendar · 8d3eba6a
    joubu authored
    This patchs adds the ability to calculate the end of the suspension date
    (debarment date) using the finesCalendar syspref.
    Prior to this patch it was never calculating without taking into account
    the calendar.
    
    calculated without taking holidays into account.
    This was a problem because the restriction could end in the middle of a
    period the library is closed.
    
    Test plan:
    - Set finescalendar to 'not including days the library is closed'
    - Set a circulation condition with no fine/maxfine, but fine days and
    max fine days instead
    - Check out an item with a due date in the past
    - Check the item in and verify the restriction date
    - Clean the restriction
    
    - Add holidays to your calendar on the calculated restriction date
    - Check the item out again with the same due date in the past
    - Check in the item again
    - Verify the calculated restriction end date has changed, it's set to the day
    after the holiday.
    
    Fines in days restriction calculation is correctly taking calendar
    into account.
    
    Sponsored-by: Goethe-Institut
    Signed-off-by: default avatarClaire Gravely <claire.gravely@bsz-bw.de>
    Signed-off-by: Katrin Fischer's avatarKatrin Fischer <katrin.fischer.83@web.de>
    Signed-off-by: default avatarTomas Cohen Arazi <tomascohen@theke.io>
    Signed-off-by: joubu's avatarJonathan Druart <jonathan.druart@bugs.koha-community.org>
    8d3eba6a
Name
Last commit
Last update
..
AuthoritiesMarc Loading commit data...
Barcodes Loading commit data...
ClassSortRoutine Loading commit data...
Creators Loading commit data...
External Loading commit data...
Form Loading commit data...
Heading Loading commit data...
ILSDI Loading commit data...
Installer Loading commit data...
Labels Loading commit data...
Linker Loading commit data...
Members Loading commit data...
OAI Loading commit data...
Output Loading commit data...
Patroncards Loading commit data...
Reports Loading commit data...
SIP Loading commit data...
Search Loading commit data...
Serials Loading commit data...
Utils Loading commit data...
Accounts.pm Loading commit data...
Acquisition.pm Loading commit data...
Auth.pm Loading commit data...
Auth_cas_servers.yaml.sample Loading commit data...
Auth_with_cas.pm Loading commit data...
Auth_with_ldap.pm Loading commit data...
Auth_with_shibboleth.pm Loading commit data...
AuthoritiesMarc.pm Loading commit data...
BackgroundJob.pm Loading commit data...
Barcodes.pm Loading commit data...
Biblio.pm Loading commit data...
Bookseller.pm Loading commit data...
Boolean.pm Loading commit data...
Breeding.pm Loading commit data...
Budgets.pm Loading commit data...
Calendar.pm Loading commit data...
Charset.pm Loading commit data...
Circulation.pm Loading commit data...
ClassSortRoutine.pm Loading commit data...
ClassSource.pm Loading commit data...
Context.pm Loading commit data...
Contract.pm Loading commit data...
CourseReserves.pm Loading commit data...
Creators.pm Loading commit data...
Debug.pm Loading commit data...
HTML5Media.pm Loading commit data...
Heading.pm Loading commit data...
HoldsQueue.pm Loading commit data...
Images.pm Loading commit data...
ImportBatch.pm Loading commit data...
ImportExportFramework.pm Loading commit data...
InstallAuth.pm Loading commit data...
Installer.pm Loading commit data...
ItemCirculationAlertPreference.pm Loading commit data...
Items.pm Loading commit data...
Koha.pm Loading commit data...
Labels.pm Loading commit data...
Languages.pm Loading commit data...
Letters.pm Loading commit data...
Linker.pm Loading commit data...
Log.pm Loading commit data...
MarcModificationTemplates.pm Loading commit data...
Matcher.pm Loading commit data...
Members.pm Loading commit data...
Message.pm Loading commit data...
NewsChannels.pm Loading commit data...
Output.pm Loading commit data...
Overdues.pm Loading commit data...
Patroncards.pm Loading commit data...
Print.pm Loading commit data...
Record.pm Loading commit data...
Reports.pm Loading commit data...
Reserves.pm Loading commit data...
Ris.pm Loading commit data...
RotatingCollections.pm Loading commit data...
SMS.pm Loading commit data...
Scheduler.pm Loading commit data...
Scrubber.pm Loading commit data...
Search.pm Loading commit data...
Serials.pm Loading commit data...
Service.pm Loading commit data...
ShelfBrowser.pm Loading commit data...
SocialData.pm Loading commit data...
Stats.pm Loading commit data...
Suggestions.pm Loading commit data...
TTParser.pm Loading commit data...
Tags.pm Loading commit data...
Templates.pm Loading commit data...
TmplToken.pm Loading commit data...
TmplTokenType.pm Loading commit data...
UsageStats.pm Loading commit data...
XISBN.pm Loading commit data...
XSLT.pm Loading commit data...