Bugzilla – Attachment 10290 Details for
Bug 8251
Patrons are systematically debarred at checkin
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patrons systematically debarred at checkin
0001-Patrons-systematically-debarred-at-checkin.patch (text/plain), 1.06 KB, created by
Koha Team University Lyon 3
on 2012-06-15 14:04:11 UTC
(
hide
)
Description:
Patrons systematically debarred at checkin
Filename:
MIME Type:
Creator:
Koha Team University Lyon 3
Created:
2012-06-15 14:04:11 UTC
Size:
1.06 KB
patch
obsolete
>From 7584bea853cbd9a70d214a73023f0b47b1fc9007 Mon Sep 17 00:00:00 2001 >From: Lyon3 Team <koha@univ-lyon3.fr> >Date: Fri, 15 Jun 2012 15:49:02 +0200 >Subject: [PATCH] Patrons systematically debarred at checkin > >When fines in days are used in issuing rules, the patrons who were not late >were systematically debarred with a debarred date equal to the the initial due date >--- > Koha/Calendar.pm | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > >diff --git a/Koha/Calendar.pm b/Koha/Calendar.pm >index 75c5c9e..342d38e 100644 >--- a/Koha/Calendar.pm >+++ b/Koha/Calendar.pm >@@ -171,6 +171,10 @@ sub days_between { > > # start and end should not be closed days > my $duration = $end_dt->delta_days($start_dt); >+ # if borrower is not late, delta days must be negative >+ if(DateTime->compare( $start_dt, $end_dt ) > -1){ >+ $duration->{'days'} = - $duration->{'days'}; >+ } > $start_dt->truncate( to => 'days' ); > $end_dt->truncate( to => 'days' ); > while ( DateTime->compare( $start_dt, $end_dt ) == -1 ) { >-- >1.7.2.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8251
:
10289
|
10290
|
10308
|
10348
|
10418
|
10597
|
10767
|
10768
|
10914
|
11976
|
11979