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

(-)a/C4/Accounts.pm (-2 / +1 lines)
Lines 163-169 sub manualinvoice { Link Here
163
          ? $checkouts->next
163
          ? $checkouts->next
164
          : Koha::Old::Checkouts->search(
164
          : Koha::Old::Checkouts->search(
165
            { itemnumber => $itemnum, borrowernumber => $borrowernumber },
165
            { itemnumber => $itemnum, borrowernumber => $borrowernumber },
166
            { order_by   => { 'DESC' => 'returndate' }, rows => 1 }
166
            { order_by   => { -desc => 'returndate' }, rows => 1 }
167
        )->next;
167
        )->next;
168
        $issue_id = $checkout ? $checkout->issue_id : undef;
168
        $issue_id = $checkout ? $checkout->issue_id : undef;
169
    }
169
    }
170
- 

Return to bug 22563