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

View file

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