[Koha-bugs] [Bug 18697] Fix date calculations for day/week frequencies in Serials
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jun 6 09:52:39 CEST 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18697
--- Comment #13 from Josef Moravec <josef.moravec at gmail.com> ---
Created attachment 64029
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=64029&action=edit
[SIGNED-OFF] Bug 18697: Final polishing
GetFictiveIssueNumber:
Returns undef instead of 0 for irregular frequencies. Also added to POD.
Removed unused variable $wkno.
Adding a return makes the if(unit) unneeded.
Replaced (a+b)/b by 1+a/b.
_delta_units:
Added a comment about its parameters.
GetFictiveIssueNumber.t:
Adjusted the tests for irregular frequencies accordingly.
Test plan:
[1] Run t/db_dependent/Serials/GetFictiveIssueNumber.t
[2] Run t/db_dependent/Serials/GetNextDate.t
Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Signed-off-by: Josef Moravec <josef.moravec at gmail.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list