Koha/t/db_dependent/Serials
Marcel de Rooy 4e9701c36a 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@rijksmuseum.nl>

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

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2017-06-19 15:35:51 -03:00
..
Claims.t Bug 13726: Make Koha::Acq::Bookseller using Koha::Object 2016-12-30 11:54:32 +00:00
Frequency.t Bug 15168: (followup) remove useless diags 2015-11-17 15:47:46 -03:00
GetFictiveIssueNumber.t Bug 18697: Final polishing 2017-06-19 15:35:51 -03:00
GetNextDate.t Bug 18697: Adjusting unit tests for weekly serial frequencies 2017-06-19 15:35:51 -03:00
GetNextSeq.t
Numberpattern.t Bug 15168: (followup) remove useless diags 2015-11-17 15:47:46 -03:00
ReNewSubscription.t Bug 18539: remove occurrence in ReNewSubscription.t 2017-06-15 16:02:39 -03:00