refactor: order by id
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2025-01-14 09:33:26 +01:00
parent b4686def94
commit e273733832
1 changed files with 2 additions and 1 deletions

View File

@ -74,7 +74,8 @@ module.exports = Self => {
AND t.companyFk = ?
AND NOT t.isDeleted
GROUP BY IF(c.hasToInvoiceByAddress, a.id, c.id)
HAVING SUM(t.totalWithVat) > 0;`;
HAVING SUM(t.totalWithVat) > 0
ORDER BY c.id`;
const addresses = await Self.rawSql(query, [
minShipped,