From: Tomas Cohen Arazi Date: Fri, 5 Jul 2019 17:47:09 +0000 (-0300) Subject: Bug 22563: Typo in query (manualinvoice) X-Git-Url: http://git.equinoxoli.org/?p=koha-equinox.git;a=commitdiff_plain;h=6f356cecc35fa3b1b2a730703fa2d7fbeaddf0d7 Bug 22563: Typo in query (manualinvoice) Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi Signed-off-by: Martin Renvoize --- diff --git a/C4/Accounts.pm b/C4/Accounts.pm index 3049116..34a3ef9 100644 --- a/C4/Accounts.pm +++ b/C4/Accounts.pm @@ -163,7 +163,7 @@ sub manualinvoice { ? $checkouts->next : Koha::Old::Checkouts->search( { itemnumber => $itemnum, borrowernumber => $borrowernumber }, - { order_by => { 'DESC' => 'returndate' }, rows => 1 } + { order_by => { -desc => 'returndate' }, rows => 1 } )->next; $issue_id = $checkout ? $checkout->issue_id : undef; }