Group by the right thing this time

This commit is contained in:
Tom Bloor 2019-07-15 04:52:55 +01:00
parent 43808f5510
commit 86d52e7bbc
No known key found for this signature in database
GPG Key ID: 4657C7EBE42CC5CC
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ sub post_supplier_history {
total_spend => { sum => 'sales.value' },
}
],
group_by => [ 'me.id', 'organisation.name' ],
group_by => [ 'me.id', 'organisation.id' ],
order_by => { '-asc' => 'organisation.name' },
}
);