Bug 25723: (QA follow-up) Silent POD warning
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 17 Jun 2020 13:04:14 +0000 (14:04 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 20 Jul 2020 15:45:31 +0000 (17:45 +0200)
I didn't introduce the method that is warned about, but adding POD for
it seemed reasonable and will silence the QA Script warning.

Signed-off-by: Emma Perks <Emma.Perks2@uhb.nhs.uk>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Koha/Calendar.pm

index d17989d..c0dcd8e 100644 (file)
@@ -500,6 +500,15 @@ representing the previous open day after subtracting the number of passed
 days. It is intended for use to calculate the due date when useDaysMode
 syspref is set to either 'Datedue', 'Calendar' or 'Dayweek'.
 
+=head2 days_forward
+
+$datetime = $calendar->days_forward($start_dt, $to_add)
+
+Passed a Datetime and number of days, returns another Datetime representing
+the next open day after adding the passed number of days. It is intended for
+use to calculate the due date when useDaysMode syspref is set to either
+'Datedue', 'Calendar' or 'Dayweek'.
+
 =head2 set_daysmode
 
 For testing only allows the calling script to change days mode