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

(-)a/C4/Circulation.pm (-1 / +3 lines)
Lines 4230-4235 sub ProcessOfflineIssue { Link Here
4230
    my $operation = shift;
4230
    my $operation = shift;
4231
4231
4232
    my $patron = Koha::Patrons->find( { cardnumber => $operation->{cardnumber} } );
4232
    my $patron = Koha::Patrons->find( { cardnumber => $operation->{cardnumber} } );
4233
    $patron ||= Koha::Patrons->find( { userid => $operation->{cardnumber} } );
4233
4234
4234
    if ( $patron ) {
4235
    if ( $patron ) {
4235
        my $item = Koha::Items->find({ barcode => $operation->{barcode} });
4236
        my $item = Koha::Items->find({ barcode => $operation->{barcode} });
Lines 4263-4269 sub ProcessOfflineIssue { Link Here
4263
sub ProcessOfflinePayment {
4264
sub ProcessOfflinePayment {
4264
    my $operation = shift;
4265
    my $operation = shift;
4265
4266
4266
    my $patron = Koha::Patrons->find({ cardnumber => $operation->{cardnumber} });
4267
    my $patron = Koha::Patrons->find( { cardnumber => $operation->{cardnumber} } );
4268
    $patron ||= Koha::Patrons->find( { userid => $operation->{cardnumber} } );
4267
4269
4268
    $patron->account->pay(
4270
    $patron->account->pay(
4269
        {
4271
        {
(-)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