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

(-)a/C4/Circulation.pm (-1 / +3 lines)
Lines 4148-4153 sub ProcessOfflineIssue { Link Here
4148
    my $operation = shift;
4148
    my $operation = shift;
4149
4149
4150
    my $patron = Koha::Patrons->find( { cardnumber => $operation->{cardnumber} } );
4150
    my $patron = Koha::Patrons->find( { cardnumber => $operation->{cardnumber} } );
4151
    $patron ||= Koha::Patrons->find( { userid => $operation->{cardnumber} } );
4151
4152
4152
    if ( $patron ) {
4153
    if ( $patron ) {
4153
        my $item = Koha::Items->find({ barcode => $operation->{barcode} });
4154
        my $item = Koha::Items->find({ barcode => $operation->{barcode} });
Lines 4181-4187 sub ProcessOfflineIssue { Link Here
4181
sub ProcessOfflinePayment {
4182
sub ProcessOfflinePayment {
4182
    my $operation = shift;
4183
    my $operation = shift;
4183
4184
4184
    my $patron = Koha::Patrons->find({ cardnumber => $operation->{cardnumber} });
4185
    my $patron = Koha::Patrons->find( { cardnumber => $operation->{cardnumber} } );
4186
    $patron ||= Koha::Patrons->find( { userid => $operation->{cardnumber} } );
4185
4187
4186
    $patron->account->pay(
4188
    $patron->account->pay(
4187
        {
4189
        {
(-)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