feat: refs #8007 Added country salesByWeek
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Guillermo Bonet 2024-11-12 14:06:34 +01:00
parent e1c16a498e
commit 8308bad100
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ BEGIN
SELECT YEAR(s.dated), WEEK(s.dated, 4), c.countryFk, SUM(s.amount)
FROM sale s
JOIN client c ON c.id = s.clientFk
GROUP BY YEAR(s.dated), WEEK(s.dated, 4), c.countryFk
GROUP BY YEAR(s.dated), WEEK(s.dated, 4), c.countryFk;
-- Indicador Ventas semana actual
UPDATE indicators i