[Koha] Koha sets due date to current date when checking out

Michael Kuhn mik at adminkuhn.ch
Tue Dec 7 12:09:43 NZDT 2021


Hi Katrin

Today you wrote:

 > there are some mechanisms in Koha that can lead to a shortened due
 > date - maybe they could be a starting point for your investigation?
 >
 > * The patron is about to expire (system preference ReturnBeforeExpiry)

No, the expiry date of the patron is 3 August 2031. System preference 
"ReturnBeforeExpiry" is set to "Don't require".

 > * When there are holds on the item, the due date can be shortened
 > (system preference decreaseLoanHighHolds* and 'Decreased loan period
 > for high holds (day)' in circulation rules)

There are no holds on the item. This happens with any item in the 
catalog - none of them has any holds on them.

 > * Double/triple check the circulation rules. Was a hard due date set?
 > Is there any other rule with "0" that could be applied instead?

There is only one single circulation rule (for all patron categories and 
all item types) and this hasn't changed since the update. The option 
"Hard due date" is set to "none defined" and it cannot be changed to 0.

As said, when just entering the barcode, logfile "intranet-error.log" says:

  [Tue Dec 07 00:00:58.348990 2021] [cgi:error] [pid 19519] [client 
134.130.93.46:39194] AH01215: Argument "" isn't numeric in addition (+) 
at /usr/lib/x86_64-linux-gnu/perl5/5.28/DateTime/Duration.pm line 70.: 
/usr/share/koha/intranet/cgi-bin/circ/circulation.pl, referer: 
http://79.143.185.37:18080/cgi-bin/koha/circ/circulation.pl?borrowernumber=7
  [Tue Dec 07 00:00:58.440720 2021] [cgi:error] [pid 19519] [client 
134.130.93.46:39194] AH01215: Argument "" isn't numeric in addition (+) 
at /usr/lib/x86_64-linux-gnu/perl5/5.28/DateTime/Duration.pm line 70.: 
/usr/share/koha/intranet/cgi-bin/circ/circulation.pl, referer: 
http://79.143.185.37:18080/cgi-bin/koha/circ/circulation.pl?borrowernumber=7

As I found out it works if I set the due date manually before entering 
the barcode, and there is no message in logfile "intranet-error.log".

But of course, like before, it should also work when just entering the 
barcode and then use the defined circulation rule.

Best wishes: Michael
--
Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis
Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz
T 0041 (0)61 261 55 61 · E mik at adminkuhn.ch · W www.adminkuhn.ch




> On 06.12.21 12:14, Michael Kuhn wrote:
>> Hi
>>
>> Our library is working with Debian GNU/Linux 10 and Koha 21.05.05.
>>
>> Since the update the check out process does no more respect the
>> circulation conditons regarding the due date (the loan period is 1643
>> days) but instead sets the due date to the current date!
>>
>> So If I check out a book today the due date is today.
>>
>> In logfile "intranet-error.log" the following is reported:
>>
>> [Mon Dec 06 12:04:52.123486 2021] [cgi:error] [pid 21882] [client
>> 134.130.93.46:38068] AH01215: Argument "" isn't numeric in addition
>> (+) at /usr/lib/x86_64-linux-gnu/perl5/5.28/DateTime/Duration.pm line
>> 70.: /usr/share/koha/intranet/cgi-bin/circ/circulation.pl, referer:
>> http://79.143.185.37:18080/cgi-bin/koha/circ/circulation.pl
>> [Mon Dec 06 12:04:52.196908 2021] [cgi:error] [pid 21882] [client
>> 134.130.93.46:38068] AH01215: Argument "" isn't numeric in addition
>> (+) at /usr/lib/x86_64-linux-gnu/perl5/5.28/DateTime/Duration.pm line
>> 70.: /usr/share/koha/intranet/cgi-bin/circ/circulation.pl, referer:
>> http://79.143.185.37:18080/cgi-bin/koha/circ/circulation.pl
>>
>> There are no errors in Koha menu "About Koha > System information".
>>
>> Is this a bug that I should report?
>>
>> Best wishes: Michael
> _______________________________________________
> 
> Koha mailing list  http://koha-community.org
> Koha at lists.katipo.co.nz
> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha


-- 
Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis
Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz
T 0041 (0)61 261 55 61 · E mik at adminkuhn.ch · W www.adminkuhn.ch


More information about the Koha mailing list