diff --git a/lib/Utils.php b/lib/Utils.php index a6221e7..5d6bae6 100644 --- a/lib/Utils.php +++ b/lib/Utils.php @@ -108,7 +108,8 @@ class Utils AND acc_accounts.%s ) - GROUP BY services_fees.id,acc_accounts.id + GROUP BY services_fees.id, acc_accounts.code + ORDER BY acc_accounts.code ', '"%Y"', $annee, @@ -173,7 +174,7 @@ class Utils AND acc_accounts.%s ) - ORDER by %s, acc_accounts.id, acc_transactions.date', + ORDER by %s, acc_accounts.code, acc_transactions.date', '"%Y"', $annee, $db->where('code', $op, $comptes), @@ -225,7 +226,7 @@ class Utils AND acc_accounts.%s ) - ORDER by services_fees.id, %s, acc_accounts.id, acc_transactions.date', + ORDER by services_fees.id, %s, acc_accounts.code, acc_transactions.date', '"%Y"', $annee, $db->where('id', 'in', $tarifs), @@ -272,7 +273,7 @@ class Utils acc_accounts.%s ) - ORDER by %s, acc_accounts.id, acc_transactions.date + ORDER by %s, acc_accounts.code, acc_transactions.date ', '"%Y"', $annee,