From 8308bad100fa98566c5c441164878814dbe9ae15 Mon Sep 17 00:00:00 2001 From: guillermo Date: Tue, 12 Nov 2024 14:06:34 +0100 Subject: [PATCH] feat: refs #8007 Added country salesByWeek --- db/routines/bs/procedures/indicatorsUpdate.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/routines/bs/procedures/indicatorsUpdate.sql b/db/routines/bs/procedures/indicatorsUpdate.sql index 7b5cd090d..35c9a822f 100644 --- a/db/routines/bs/procedures/indicatorsUpdate.sql +++ b/db/routines/bs/procedures/indicatorsUpdate.sql @@ -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