diff --git a/LaaProductionWeb/LaaProductionWeb.Services/ShipmentsService.cs b/LaaProductionWeb/LaaProductionWeb.Services/ShipmentsService.cs index a94e305f..f7cffa2c 100644 --- a/LaaProductionWeb/LaaProductionWeb.Services/ShipmentsService.cs +++ b/LaaProductionWeb/LaaProductionWeb.Services/ShipmentsService.cs @@ -83,7 +83,7 @@ , REPLACE(RTRIM(LTRIM([AuftragPositionSerienNr].[KundeneigeneSerienNr])), ' ', '') -- 2 , [PalettenScan].[PalettenNr] -- 3 , CAST(CASE WHEN [PalettenScan].[ID] IS NULL THEN 0 ELSE 1 END AS BIT) -- 4 - , [PalettenScan].[PositionNr] -- 5 + , ISNULL([PalettenScan].[PositionNr], [AuftragPositionSerienNr].[PositionNr]) -- 5 FROM [AuftragPositionSerienNr] LEFT JOIN [PalettenScan] ON [PalettenScan].[AuftragNr] = [AuftragPositionSerienNr].[AuftragNr] @@ -105,6 +105,7 @@ PositionNr = reader.GetValue(5), }) .OrderByDescending(x => x.IsScaned) + .ThenBy(x => x.PositionNr) .ThenBy(x => x.ClientNr); public PalletsBatchModel LoadBatchModel(OrderScanModel model) @@ -122,7 +123,7 @@ , [Kunde].[Name] -- 3 , [Auftrag].[ZusatzText] -- 4 FROM [AlleAuftragPositionen] AS [Auftrag] - JOIN [Kunde] ON [Kunde].[KundenNr] = [Auftrag].[KundenNr] + JOIN [Kunde] ON [Kunde].[KundenNr] = [Auftrag].[KundenNr] WHERE [Auftrag].[AuftragNr] = @{orderNr} AND [Auftrag].[PositionNr] = @{posNr} ORDER BY [Auftrag].[FertigungsauftragNr] DESC", diff --git a/LaaProductionWeb/LaaProductionWeb/LaaProductionWeb.csproj b/LaaProductionWeb/LaaProductionWeb/LaaProductionWeb.csproj index 3a9a5922..2e3c0a8a 100644 --- a/LaaProductionWeb/LaaProductionWeb/LaaProductionWeb.csproj +++ b/LaaProductionWeb/LaaProductionWeb/LaaProductionWeb.csproj @@ -162,6 +162,7 @@ + Designer @@ -181,11 +182,11 @@ + - diff --git a/LaaProductionWeb/LaaProductionWeb/Views/Protocol/Body.cshtml b/LaaProductionWeb/LaaProductionWeb/Views/Protocol/Body.cshtml index 5723d0ff..58c26bc0 100644 --- a/LaaProductionWeb/LaaProductionWeb/Views/Protocol/Body.cshtml +++ b/LaaProductionWeb/LaaProductionWeb/Views/Protocol/Body.cshtml @@ -23,9 +23,6 @@ } - @{ - - } @@ -58,7 +55,7 @@ -
+ diff --git a/LaaProductionWeb/LaaProductionWeb/Views/Protocol/Index.cshtml b/LaaProductionWeb/LaaProductionWeb/Views/Protocol/Index.cshtml index 6e13b602..b12a1caf 100644 --- a/LaaProductionWeb/LaaProductionWeb/Views/Protocol/Index.cshtml +++ b/LaaProductionWeb/LaaProductionWeb/Views/Protocol/Index.cshtml @@ -3,7 +3,7 @@ @using LaaProductionWeb.Controllers @using LaaProductionWeb.Services.Models -
Legend:
+
diff --git a/LaaProductionWeb/LaaProductionWeb/Views/Shared/_Layout.cshtml b/LaaProductionWeb/LaaProductionWeb/Views/Shared/_Layout.cshtml index e1d811ea..a4474bc5 100644 --- a/LaaProductionWeb/LaaProductionWeb/Views/Shared/_Layout.cshtml +++ b/LaaProductionWeb/LaaProductionWeb/Views/Shared/_Layout.cshtml @@ -13,6 +13,8 @@ + + @Styles.Render("~/bootstrap_css") @Styles.Render("~/bootstrap_icons") @Styles.Render("~/styles_css") diff --git a/LaaProductionWeb/LaaProductionWeb/Views/Shipments/Batch.cshtml b/LaaProductionWeb/LaaProductionWeb/Views/Shipments/Batch.cshtml index 346da810..1e8ef70c 100644 --- a/LaaProductionWeb/LaaProductionWeb/Views/Shipments/Batch.cshtml +++ b/LaaProductionWeb/LaaProductionWeb/Views/Shipments/Batch.cshtml @@ -6,16 +6,16 @@