From a19ec9810c766e2d44bd54c0b06ec49bd12b3969 Mon Sep 17 00:00:00 2001 From: "zaccaria.majid" Date: Mon, 5 Jun 2023 09:07:06 +0200 Subject: [PATCH] fix vista orderstatus (sempre problema con typeId) --- WebDoorCreator.Data/SqlScripts/View/OrderStatusView.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebDoorCreator.Data/SqlScripts/View/OrderStatusView.sql b/WebDoorCreator.Data/SqlScripts/View/OrderStatusView.sql index a5f36d8..94bea48 100644 --- a/WebDoorCreator.Data/SqlScripts/View/OrderStatusView.sql +++ b/WebDoorCreator.Data/SqlScripts/View/OrderStatusView.sql @@ -13,7 +13,7 @@ AS WITH cteDoorGroup AS ( SELECT OrderId - ,COUNT(DISTINCT TypeId) AS NumType + ,COUNT(DISTINCT DoorIdParent) AS NumType ,SUM(Quantity) AS NumDoors ,SUM(Quantity*UnitCost) AS TotCost FROM Door