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

(-)a/C4/SIP/Sip/MsgType.pm (-22 / +21 lines)
Lines 514-532 sub handle_checkout { Link Here
514
    my $fee_ack = $fields->{(FID_FEE_ACK)};
514
    my $fee_ack = $fields->{(FID_FEE_ACK)};
515
515
516
516
517
    if ($no_block eq 'Y') {
517
    if ( $no_block eq 'Y' ) {
518
	# Off-line transactions need to be recorded, but there's
518
519
	# not a lot we can do about it
519
        # Off-line transactions need to be recorded, but there's
520
	syslog("LOG_WARNING", "received no-block checkout from terminal '%s'",
520
        # not a lot we can do about it
521
	       $account->{id});
521
        syslog( "LOG_WARNING", "received no-block checkout from terminal '%s'", $account->{id} );
522
522
523
	$status = $ils->checkout_no_block($patron_id, $item_id,
523
        $status = $ils->checkout_no_block( $patron_id, $item_id, $sc_renewal_policy, $trans_date, $nb_due_date );
524
					  $sc_renewal_policy,
524
    }
525
					  $trans_date, $nb_due_date);
525
    else {
526
    } else {
526
        # Does the transaction date really matter for items that are
527
	# Does the transaction date really matter for items that are
527
        # checkout out while the terminal is online?  I'm guessing 'no'
528
	# checkout out while the terminal is online?  I'm guessing 'no'
528
        $status = $ils->checkout( $patron_id, $item_id, $sc_renewal_policy, $fee_ack );
529
		$status = $ils->checkout($patron_id, $item_id, $sc_renewal_policy, $fee_ack);
530
    }
529
    }
531
530
532
    $item = $status->item;
531
    $item = $status->item;
Lines 601-614 sub handle_checkout { Link Here
601
	    }
600
	    }
602
	}
601
	}
603
    }
602
    }
604
	if ($protocol_version >= 2) {
603
605
	    # Financials : return irrespective of ok status
604
    if ( $protocol_version >= 2 ) {
606
        if ($status->fee_amount) {
605
607
            $resp .= add_field(FID_FEE_AMT, $status->fee_amount);
606
        # Financials : return irrespective of ok status
608
            $resp .= maybe_add(FID_CURRENCY, $status->sip_currency);
607
        if ( $status->fee_amount ) {
609
            $resp .= maybe_add(FID_FEE_TYPE, $status->sip_fee_type);
608
            $resp .= add_field( FID_FEE_AMT, $status->fee_amount );
610
            $resp .= maybe_add(FID_TRANSACTION_ID,
609
            $resp .= maybe_add( FID_CURRENCY,       $status->sip_currency );
611
                $status->transaction_id);
610
            $resp .= maybe_add( FID_FEE_TYPE,       $status->sip_fee_type );
611
            $resp .= maybe_add( FID_TRANSACTION_ID, $status->transaction_id );
612
        }
612
        }
613
    }
613
    }
614
614
615
- 

Return to bug 12820