From 0351013fdf7bec4df828962d16716135ceae1a9a Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 14 Oct 2020 17:14:47 +0100 Subject: [PATCH] Bug 26172: (QA follow-up) Fix order of summary Signed-off-by: Jonathan Druart --- Koha/Cash/Register/Action.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Koha/Cash/Register/Action.pm b/Koha/Cash/Register/Action.pm index 2836d4a32e..5ffdb4167f 100644 --- a/Koha/Cash/Register/Action.pm +++ b/Koha/Cash/Register/Action.pm @@ -112,6 +112,7 @@ sub cashup_summary { { join => { 'debit' => 'debit_type_code' }, group_by => [ 'debit.debit_type_code', 'debit_type_code.description' ], + order_by => { '-asc' => 'debit.debit_type_code' }, 'select' => [ { sum => 'me.amount' }, 'debit.debit_type_code', 'debit_type_code.description' ], 'as' => [ 'total', 'debit_type_code', 'debit_description' ], } @@ -126,6 +127,7 @@ sub cashup_summary { { join => { 'credit' => 'credit_type_code' }, group_by => [ 'credit.credit_type_code', 'credit_type_code.description' ], + order_by => { '-asc' => 'credit.credit_type_code' }, 'select' => [ { sum => 'me.amount' }, 'credit.credit_type_code', 'credit_type_code.description' ], 'as' => [ 'total', 'credit_type_code', 'credit_description' ], } -- 2.39.5