View | Details | Raw Unified | Return to bug 8841
Collapse All | Expand All

(-)a/C4/Circulation.pm (-1 / +1 lines)
Lines 3062-3067 sub CalcDateDue { Link Here
3062
    # if ReturnBeforeExpiry ON the datedue can't be after borrower expirydate
3062
    # if ReturnBeforeExpiry ON the datedue can't be after borrower expirydate
3063
    if ( C4::Context->preference('ReturnBeforeExpiry') ) {
3063
    if ( C4::Context->preference('ReturnBeforeExpiry') ) {
3064
        my $expiry_dt = dt_from_string( $borrower->{dateexpiry}, 'iso' );
3064
        my $expiry_dt = dt_from_string( $borrower->{dateexpiry}, 'iso' );
3065
        $expiry_dt->set( hour => 23, minute => 59);
3065
        if ( DateTime->compare( $datedue, $expiry_dt ) == 1 ) {
3066
        if ( DateTime->compare( $datedue, $expiry_dt ) == 1 ) {
3066
            $datedue = $expiry_dt->clone;
3067
            $datedue = $expiry_dt->clone;
3067
        }
3068
        }
3068
- 

Return to bug 8841