Group by the right thing this time

This commit is contained in:
Tom Bloor 2019-07-15 04:52:55 +01:00
parent d3933f53af
commit a84201305d

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' },
} }
); );