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

(-)a/C4/Circulation.pm (-1 / +3 lines)
Lines 4199-4204 sub ProcessOfflineIssue { Link Here
4199
    my $operation = shift;
4199
    my $operation = shift;
4200
4200
4201
    my $patron = Koha::Patrons->find( { cardnumber => $operation->{cardnumber} } );
4201
    my $patron = Koha::Patrons->find( { cardnumber => $operation->{cardnumber} } );
4202
    $patron ||= Koha::Patrons->find( { userid => $operation->{cardnumber} } );
4202
4203
4203
    if ( $patron ) {
4204
    if ( $patron ) {
4204
        my $item = Koha::Items->find({ barcode => $operation->{barcode} });
4205
        my $item = Koha::Items->find({ barcode => $operation->{barcode} });
Lines 4232-4238 sub ProcessOfflineIssue { Link Here
4232
sub ProcessOfflinePayment {
4233
sub ProcessOfflinePayment {
4233
    my $operation = shift;
4234
    my $operation = shift;
4234
4235
4235
    my $patron = Koha::Patrons->find({ cardnumber => $operation->{cardnumber} });
4236
    my $patron = Koha::Patrons->find( { cardnumber => $operation->{cardnumber} } );
4237
    $patron ||= Koha::Patrons->find( { userid => $operation->{cardnumber} } );
4236
4238
4237
    $patron->account->pay(
4239
    $patron->account->pay(
4238
        {
4240
        {
(-)a/offline_circ/list.pl (-2 / +7 lines)
Lines 48-54 for (@$operations) { Link Here
48
        $_->{'bibliotitle'}    = $biblio->title;
48
        $_->{'bibliotitle'}    = $biblio->title;
49
        $_->{'biblionumber'}   = $biblio->biblionumber;
49
        $_->{'biblionumber'}   = $biblio->biblionumber;
50
    }
50
    }
51
    my $patron             = $_->{cardnumber} ? Koha::Patrons->find( { cardnumber => $_->{cardnumber} } ) : undef;
51
52
    my $patron =
53
        $_->{cardnumber}
54
        ? Koha::Patrons->find( { cardnumber => $_->{cardnumber} } )
55
        || Koha::Patrons->find( { userid => $_->{cardnumber} } )
56
        : undef;
57
52
    if ($patron) {
58
    if ($patron) {
53
        $_->{'borrowernumber'} = $patron->borrowernumber;
59
        $_->{'borrowernumber'} = $patron->borrowernumber;
54
        $_->{'borrower'}       = ($patron->firstname ? $patron->firstname:'').' '.$patron->surname;
60
        $_->{'borrower'}       = ($patron->firstname ? $patron->firstname:'').' '.$patron->surname;
55
- 

Return to bug 34529