]> git.koha-community.org Git - koha.git/commit
Bug 18697: Fix date calculation for dayly frequencies in Serials
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tue, 30 May 2017 14:44:46 +0000 (16:44 +0200)
committerMason James <mtj@kohaaloha.com>
Sun, 30 Jul 2017 13:02:07 +0000 (01:02 +1200)
commitf82a77d0ff986a3fb512c74d66f79e40a354cb15
tree42f05a1dfda4bc4511ffde14dab8b80ef5e36fdf
parent735c59cd13042a4e43afb6222d47b55b53e4140d
Bug 18697: Fix date calculation for dayly frequencies in Serials

The changes in _get_next_date_day are actually only cosmetic. The sub
now reads exactly the same as its counterparts for other units, but
the results are exactly the same as before.

In GetFictiveIssueNumber we now call _delta_units for each type of unit.
The two Delta_Days calls are moved to _delta_units. Note that this also
is a cosmetic change; results should be exactly the same.

Test plan:
[1] Edit a subscription. Test predication pattern for some daily freq.
[2] Run t/db_dependent/GetNextDate.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Mason James <mtj@kohaaloha.com>
C4/Serials.pm