Sonde lambda avec code moteur DV6UC Usagé

Fournisseur Van Gils Automotive

Sonde lambda avec code moteur DV6UC Usagé

Fournisseur Van Gils Automotive
6 mois de garantie

Levering geschiedt volgens de algemene voorwaarden van Van Gils Automotive B.V.

Sur demande


DescriptionTotal
Usagé Sonde lambda Fiat Scudo (270) 1.6 D Multijet DPF   ↪ 6 mois de garantie Levering geschiedt volgens de algemene voorwaarden van Van Gils Automotive B.V.Sur demande
DescriptionPropertyIdMaxScoreScore
Motorcode1086464
Media583434
Motortype173232
Cilinderinhoud181616
Prijs14160
Aantal Draden16688
Plaats10540
Garantie13533
Aldoc15322
Soort1311
Tellerstand2600
Totaal 180160

Donneur véhicule

Démontée de Fiat Scudo (270) 1.6 D Multijet DPFCamionnette , Diesel, 1.560cc, 66kW (90pk), FWD, DV6UC; 9H07; 9HM, 2011-02 / 2016-07, 270ZXH

Contacter le vendeur

van Gils AutomotiveNuméro de CDC: 27103495Numéro de TVA: NL810304119B01
Spiegelstraat 6, 2631 RS, NootdorpZuid-Holland, Pays-Bas

Heures d'ouverture

JoursOuvert (GMT+2)Pause (GMT+2)
lundi10 août08:30 - 17:15-
mardi11 août08:30 - 17:15-
mercredi12 août08:30 - 17:15-
jeudi13 août08:30 - 17:15-
vendredi14 août08:30 - 17:15-
samedi15 août08:30 - 13:00-
dimanche16 aoûtFermé
JoursOuvert (GMT+2)Pause (GMT+2)
lundi17 août08:30 - 17:15-
mardi18 août08:30 - 17:15-
mercredi19 août08:30 - 17:15-
jeudi20 août08:30 - 17:15-
vendredi21 août08:30 - 17:15-
samedi22 août08:30 - 13:00-
dimanche23 aoûtFermé
JoursOuvert (GMT+2)Pause (GMT+2)
lundi24 août08:30 - 17:15-
mardi25 août08:30 - 17:15-
mercredi26 août08:30 - 17:15-
jeudi27 août08:30 - 17:15-
vendredi28 août08:30 - 17:15-
samedi29 août08:30 - 13:00-
dimanche30 aoûtFermé

Posez une question à Van Gils Automotive

Renseignez vos coordonnées et informations de livraison le plus complètement possible et contactez le vendeur.


Avez-vous plus d'informations sur la pièce que vous recherchez?


Votre message à Van Gils Automotive

*champ obligatoire
**au minimum un champ est obligatoire

Init

{ "Data": { "SessionId": 10, "Match": null, "Timestamp": "0001-01-01T00:00:00", "UrlRawCurrent": "/stock-de-pieces-auto/composante/code-moteur/dv6uc/piece/sonde-lambda/id-piece/22414482/", "UrlAbsoluteCurrent": "/url_voorraad/stock-de-pieces-auto/composante/code-moteur/dv6uc/piece/sonde-lambda/id-piece/22414482/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/stock-de-pieces-auto/composante/code-moteur/dv6uc/piece/sonde-lambda/id-piece/22414482/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 0, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 0, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }

All sessions

{ "Data": { "SessionId": 1, "Match": null, "Timestamp": "2026-08-14T22:55:12.5984792+02:00", "UrlRawCurrent": "/stock-de-pieces-auto/recherche/code-boite-de-vitesse/tl4k9k/", "UrlAbsoluteCurrent": "/url_voorraad/stock-de-pieces-auto/recherche/code-boite-de-vitesse/tl4k9k/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/stock-de-pieces-auto/recherche/code-boite-de-vitesse/tl4k9k/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }
{ "Data": { "SessionId": 2, "Match": null, "Timestamp": "2026-08-14T22:55:17.4890979+02:00", "UrlRawCurrent": "/stock-de-pieces-auto/entrepot/code-moteur/eigen/piece/pompe-d'injection/", "UrlAbsoluteCurrent": "/url_voorraad/stock-de-pieces-auto/entrepot/code-moteur/eigen/piece/pompe-d'injection/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/stock-de-pieces-auto/entrepot/code-moteur/eigen/piece/pompe-d'injection/" ], "UrlSet": false, "Query": "SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; DECLARE @RM TABLE ([RecordId] BIGINT NOT NULL, [xPR] DECIMAL(9, 2), [xPS] BIT NOT NULL, [xPD] INT, [xTP] DECIMAL(5, 2) NOT NULL, [xTT] INT NOT NULL, [xShopState] INT, [xShippingState] TINYINT, [Match] INT, [XChange] BIT, [xPF] DECIMAL(9, 2), [xPE] DECIMAL(9, 2), [xPI] DECIMAL(9, 2) PRIMARY KEY CLUSTERED (RecordId ASC)) INSERT INTO @RM ([RecordId], [xPR], [xPS], [xPD], [xTP], [xTT], [xShopState], [xShippingState], [Match], [XChange], [xPF], [xPE], [xPI]) SELECT  *,  CASE WHEN [xPF] IS NOT NULL THEN CASE WHEN [xTT] = 1 THEN CAST([xPF] / ((100 + [xTP]) / 100) AS DECIMAL(9, 2)) ELSE [xPF] END END AS [xPE],  CASE WHEN [xPF] IS NOT NULL THEN CASE WHEN [xTT] = 0 THEN CAST([xPF] * ((100 + [xTP]) / 100) AS DECIMAL(9, 2)) ELSE [xPF] END END AS [xPI]     FROM (SELECT  *,  CASE WHEN [xPS] = 1 AND [xPR] IS NOT NULL THEN CAST(CASE WHEN [xPD] IS NOT NULL THEN (CAST((100 - ISNULL([xPD], 0)) AS DECIMAL) / 100) * [xPR] ELSE [xPR] END AS DECIMAL(10, 2)) END AS [xPF]     FROM (SELECT  [R].[RecordId],  (ISNULL(CASE WHEN [R].[Shop] = 1 THEN ISNULL([R].[PriceShop],ROUND ( [R].[Prijs] * ((100 + ISNULL([D].[ShopPricePercentage], 0)) / 100), 2)) END, [R].[Prijs])) AS [xPR],  CASE WHEN [R].[PrijsTonen] IS NOT NULL THEN [R].[PrijsTonen] WHEN [R].[SoortId] = 0 THEN [D].[OOLPrijzenG] WHEN [R].[SoortId] = 1 THEN [D].[OOLPrijzenR] WHEN [R].[SoortId] = 2 THEN [D].[OOLPrijzenN] ELSE 1 END AS [xPS],  (SELECT [T].[Discount] FROM dbo.[AutomatePartDiscount] [T] WHERE [T].[SupplierId] = [R].[DebiteurId] AND [T].[StateId] = [R].[SoortId] AND [T].[PartAutomateId] = [R].[DeelId]) AS [xPD],  ISNULL([VT].[General], 21) AS [xTP],  CASE WHEN [R].[SoortId] = 0 AND NOT ISNULL([R].[PrijsSoort], 0) = 1 THEN 2 WHEN [D].[OOLPrijzenExcl] = 0 THEN 1 ELSE 0 END AS [xTT],  CASE WHEN NOT [D].[ShopActive] = 1 THEN 11 ELSE dbo.fnGetOOLShopStateQuick([R].[RecordId], 1, 5, xShippingState) END AS [xShopState],  xShippingState AS [xShippingState],  NULL AS [Match],  CASE WHEN [RM].[xPM] = 4 THEN 1 END AS [XChange]     FROM (SELECT  [RM].[RecordId],  MAX([RM].[xPM]) AS [xPM]     FROM (SELECT  [R].[RecordId],  10 AS [xPM]     FROM dbo.[OOLInternet] [R] WITH (NOLOCK)     WHERE [R].[DeelId] IN ('8091A') AND [R].[RecordId] IN (SELECT  [OT].[RecordId]     FROM dbo.[OOLEnginecodes] [OT] WITH (NOLOCK)     WHERE [OT].[CodeId] IN (SELECT  [CT].[Id]     FROM dbo.[CodeEngine] [CT]     WHERE [CT].[Code] LIKE 'EIGEN%')) AND [R].[DebiteurId] IN (100001, 100003, 100007, 100008, 100012, 100019, 100022, 100029, 100034, 100044, 100045, 100056, 100062, 100081, 100085, 100086, 100107, 100109, 100110, 100116, 100119, 100120, 100121, 100124, 100129, 100131, 100139, 100141, 100145, 100152, 100153, 100155, 100159, 100160, 100161, 100177, 100178, 100180, 100181, 100184, 100187, 100189, 100191, 100194, 100197, 100208, 100209, 100216, 100219, 100232, 100238, 100248, 100249, 100251, 100255, 100261, 100278, 100282, 100283, 100284, 100291, 100294, 100305, 100307, 100315, 100324, 100327, 100328, 100336, 100345, 100353, 100358, 100359, 100378, 100385, 100386, 100414, 100417, 100426, 100433, 100457, 100471, 100473, 100480, 100493, 100509, 100512, 100515, 100617, 100727, 100771, 100803, 100805, 100883, 100886, 100997, 101112, 101113, 101114, 101115, 101117, 101118, 101119, 101120, 101121, 101122, 101175, 101185, 101186, 101205, 101209, 101221, 101222, 101232, 101234, 101237, 101238, 101239, 101240, 101249, 101255, 101257, 101262, 101268, 101269, 101271, 101273, 101275, 101276, 101277, 101279, 101280, 101285, 101293, 101300, 101301, 101302, 101304, 101305, 101309, 101311, 101313, 101314, 101315, 101317, 101319, 101321, 101328, 101331, 101332, 101334, 101335, 101337, 101340, 101342, 101343, 101344, 101345, 101348, 101349, 101352, 101353, 101355, 101356, 101361, 101362, 101363, 101365, 101366, 101368, 101369, 101370, 101371, 101374, 101385, 101387, 101390, 101391, 101394, 101395, 101396, 101397, 101398, 101400, 101401, 101403, 101405, 101406, 101407, 101408, 101412, 101413, 101414, 101415, 101417, 101418, 101420, 101422, 101423, 101424, 101425, 101429, 101432, 101433, 101434, 101436, 101438, 101441, 101442, 111111, 123456, 123457, 123462) UNION SELECT  [R].[RecordId],  4 AS [xPM]     FROM dbo.[OOLInternet] [R] WITH (NOLOCK)     WHERE [R].[DebiteurId] IN (100001, 100003, 100007, 100008, 100012, 100019, 100022, 100029, 100034, 100044, 100045, 100056, 100062, 100081, 100085, 100086, 100107, 100109, 100110, 100116, 100119, 100120, 100121, 100124, 100129, 100131, 100139, 100141, 100145, 100152, 100153, 100155, 100159, 100160, 100161, 100177, 100178, 100180, 100181, 100184, 100187, 100189, 100191, 100194, 100197, 100208, 100209, 100216, 100219, 100232, 100238, 100248, 100249, 100251, 100255, 100261, 100278, 100282, 100283, 100284, 100291, 100294, 100305, 100307, 100315, 100324, 100327, 100328, 100336, 100345, 100353, 100358, 100359, 100378, 100385, 100386, 100414, 100417, 100426, 100433, 100457, 100471, 100473, 100480, 100493, 100509, 100512, 100515, 100617, 100727, 100771, 100803, 100805, 100883, 100886, 100997, 101112, 101113, 101114, 101115, 101117, 101118, 101119, 101120, 101121, 101122, 101175, 101185, 101186, 101205, 101209, 101221, 101222, 101232, 101234, 101237, 101238, 101239, 101240, 101249, 101255, 101257, 101262, 101268, 101269, 101271, 101273, 101275, 101276, 101277, 101279, 101280, 101285, 101293, 101300, 101301, 101302, 101304, 101305, 101309, 101311, 101313, 101314, 101315, 101317, 101319, 101321, 101328, 101331, 101332, 101334, 101335, 101337, 101340, 101342, 101343, 101344, 101345, 101348, 101349, 101352, 101353, 101355, 101356, 101361, 101362, 101363, 101365, 101366, 101368, 101369, 101370, 101371, 101374, 101385, 101387, 101390, 101391, 101394, 101395, 101396, 101397, 101398, 101400, 101401, 101403, 101405, 101406, 101407, 101408, 101412, 101413, 101414, 101415, 101417, 101418, 101420, 101422, 101423, 101424, 101425, 101429, 101432, 101433, 101434, 101436, 101438, 101441, 101442, 111111, 123456, 123457, 123462) AND [R].[DeelId] = '8091A' AND ([R].[RecordId] IN (SELECT  [OX].[RecordId]     FROM dbo.[OOLXchg] [OX] WITH (NOLOCK)     WHERE [OX].[CollectionId] IN (SELECT  [DX].[CollectionId]     FROM dbo.[DebtorXchgEnginecode] [DX]     WHERE [DX].[CodeId] IN (SELECT  [CT].[Id]     FROM dbo.[CodeEngine] [CT]     WHERE [CT].[Code] LIKE 'EIGEN%'))))) [RM]  GROUP BY [RM].[RecordId]) [RM]  LEFT JOIN dbo.[OOLInternet] [R] ON [R].[RecordId] = [RM].[RecordId]   LEFT JOIN dbo.[DebiteurLocatieData] [D] ON [D].[DebiteurId] = [R].[DebiteurId] AND [D].[LocatieId] = ISNULL([R].[DebiteurLocatieId], 1)   LEFT JOIN [Basis].dbo.[CountryVatRate] [VT] ON [VT].[CountryId] = [D].[LandId] AND [VT].[Active] = 1  OUTER APPLY (SELECT dbo.fnGetOOLShippingStateExtended([R].[DebiteurId], [R].[DebiteurLocatieId], [R].[DeelNr], 250, NULL) [xShippingState]) [SHS]) [R]) [R]; SELECT  [R].[DeelId],  [R].[SoortId],  COUNT(*) AS [Aantal]     FROM (SELECT  [R].[DeelId],  [R].[SoortId],  [R].[RecordId],  [R].[DebiteurId],  [xPR],  [xPF],  [xPD],  [xPS],  [xPE],  [xPI],  [xTP],  [xTT],  [xShopState],  [xShippingState],  [XChange]     FROM @RM [RM]  LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) On [R].[RecordId] = [RM].[RecordId]) [R]  GROUP BY [R].[DeelId], [R].[SoortId]; SELECT  [R].*,  [xTP] AS [PrijsTaxPerc],  [xPD] AS [PrijsKorting],  (SELECT [VIBM].[Bouwmaand] FROM dbo.[VOLInternet] [VIBM] WHERE [VIBM].[RecordId] = [R].[AutoRecordId]) AS [ConstructionMonth],  [xPE] AS [PrijsAlt],  STUFF((SELECT '|' + CAST([V].[VeldId] AS VARCHAR(10)) + '^' + [V].[Waarde] FROM (SELECT [V].[VeldId], [V].[Waarde], [V].[OrderId] FROM dbo.[OOLVelden] [V] WHERE [V].[RecordId] = [R].[RecordId] AND [V].[VeldId] IN (26)) [V] ORDER BY [V].[VeldId], [V].[OrderId] FOR XML PATH('')), 1, 1, '') AS [Automate2Velden],  CASE WHEN [R].[GarantieToelichting] IS NOT NULL THEN (SELECT TOP 1 [TV].[Translation] FROM [Storage].dbo.[TranslateTextResult] [TV] WHERE [TV].[TextId] = (SELECT [TR].[TextId] FROM [Storage].dbo.[TranslateTextRecord] [TR] WHERE [TR].[RecordId] = [R].[RecordId] AND [TR].[TextTypeId] = 2) AND [TV].[LanguageId] IN (5, 2, 1) ORDER BY [TV].[LanguageId] DESC) END AS [GarantieTranslated],  CASE WHEN [R].[BijzonderheidInet] IS NOT NULL THEN (SELECT TOP 1 [TV].[Translation] FROM [Storage].dbo.[TranslateTextResult] [TV] WHERE [TV].[TextId] = (SELECT [TR].[TextId] FROM [Storage].dbo.[TranslateTextRecord] [TR] WHERE [TR].[RecordId] = [R].[RecordId] AND [TR].[TextTypeId] = 1) AND [TV].[LanguageId] IN (5, 2, 1) ORDER BY [TV].[LanguageId] DESC) END AS [BijzonderheidInetTranslated],  [xShopState] AS [ShopState],  CASE WHEN [R].[AldocModelCode] IS NOT NULL THEN (SELECT ISNULL((STUFF((SELECT '^' + [T3].[NaamInternet] + '~' + [T2].[NaamInternet] FROM [Basis].dbo.[AutomateModellenTranslated] [T2] LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [T3] ON [T3].[MerkId] = [T2].[MerkId] AND [T3].[LanguageId] = 5 WHERE [T2].[ModelId] IN (SELECT [T].[ModelId] FROM [Basis].dbo.[AldocModelKoppelingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode]) AND [T2].[LanguageId] = 5 AND [T2].[Synoniem] = 0 FOR XML PATH('')), 1, 1,'')), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocModelOmschrijvingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode] AND [T].[LanguageId] = 5), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocTypeOmschrijvingen] [T] WHERE [T].[TypeId] = [R].[AldocTypeId] AND [T].[LanguageId] = 5), '')) END AS [AldocDescription]     FROM (SELECT  [R].*,  ROW_NUMBER() OVER (PARTITION BY R.SortId, R.DebiteurId ORDER BY SortId + CASE WHEN [R].[xShopState] = 1 THEN 1 ELSE 0 END DESC, CASE WHEN [12] IS NULL THEN 1 END ASC, [12] DESC, CASE WHEN [14] IS NULL THEN 1 END ASC, [14] ASC, RIGHT([RecordId], 2)%(DATEPART(WEEKDAY, GETDATE()) + 3) ASC, [RecordId] ASC) AS [RowId]     FROM (SELECT  [R].[SortId],  [R].[RecordId],  [R].[DebiteurId],  [R].[ExternalId],  [R].[ReferenceId],  [R].[Youtube] AS [181],  [184],  [190],  ISNULL([R].[Fotos], (SELECT 'G^' + CAST([G].[GroupId] AS VARCHAR(20)) + '^' + [G].[Images] FROM dbo.[OOLFotoGroups] [G] WHERE [G].[DebiteurId] = [R].[DebiteurId] AND [G].[SModelId] = [R].[SModelId] AND [G].[DeelId] = [R].[DeelId])) AS [58],  [R].[SoortId] AS [StateId],  CASE WHEN SUBSTRING([R].[ModelId], 1, 3) IN ('00X', '0XX') THEN NULL ELSE [MET].[NaamInternet] + '^' + [MOT].[NaamInternet] END AS [MakeModel],  [xPS] AS [PrijsTonen],  CASE WHEN [xTT] IN (0, 1) THEN 1 ELSE [xTT] END AS [PrijsTaxType],  [xPI] AS [14],  [R].[Bouwjaar] AS [12],  [R].[AutoRecordId],  CASE WHEN [135] IS NULL THEN CASE WHEN [R].[SoortId] = 0 THEN [D].[OOLGarantieG] WHEN [R].[SoortId] = 1 THEN [D].[OOLGarantieR] WHEN [R].[SoortId] = 2 THEN [D].[OOLGarantieN] ELSE NULL END ELSE [135] END AS [135],  [37],  STUFF((SELECT '|' + [XVT].[NaamLang] FROM dbo.[OOLVelden] [XOV] LEFT JOIN [Basis].dbo.[AutomateVeldWaardenTranslated] [XVT] ON [XVT].[VeldId] = [XOV].[VeldId] AND [XVT].[LanguageId] = 5 AND [XVT].[Waarde] = [XOV].[Waarde] WHERE [XOV].[RecordId] = [R].[RecordId] AND [XOV].[VeldId] = 17 ORDER BY [XOV].[OrderId] FOR XML PATH('')), 1, 1, '') AS [17],  CASE WHEN [102] = 'E' THEN 'E85' WHEN [102] = 'L' THEN 'G.P.L.' WHEN [102] = 'G' THEN 'G3 G.P.L.' WHEN [102] = 'C' THEN 'Gaz naturel ' WHEN [102] = 'H' THEN 'Hybride' WHEN ISNULL([102], '') = '' THEN NULL ELSE [102] END AS [102],  TRY_CAST([18] AS INT) AS [18],  CASE WHEN [XChange] = 1 THEN ISNULL([R].[Motorcodes] + '|', '') + ISNULL((SELECT TOP 1 [CT].[Code] FROM dbo.[OOLXchg] [X] LEFT JOIN dbo.[DebtorXchgEnginecode] [XP] ON [XP].[CollectionId] = [X].[CollectionId] LEFT JOIN dbo.[CodeEngine] [CT] ON [CT].[Id] = [XP].[CodeId] WHERE [X].[RecordId] = [R].[RecordId] AND [CT].[Code] LIKE 'EIGEN%'), 'EIGEN') ELSE [R].[Motorcodes] END AS [108],  [25],  (SELECT TOP 1 [XOV].[Waarde] FROM dbo.[OOLVelden] [XOV] WHERE [XOV].[RecordId] = [R].[RecordId] AND [XOV].[VeldId] = 241 ORDER BY [XOV].[OrderId]) AS [241],  TRY_CAST([26] AS INT) AS [26],  [R].[Artikelnummers] AS [21],  ISNULL([D].[Bedrijfsnaam], '') + '|' + ISNULL([D].[BedrijfKort], '') AS [Leverancier],  [R].[BijzonderheidInet],  [R].[WarrantyText] AS [GarantieToelichting],  [R].[Shop],  [R].[Created],  [xShippingState] AS [ShippingState],  [R].[WarrantyConstruction] AS [WarrantyInstallation],  [R].[DeelId],  [R].[DebiteurRecordId],  [R].[AldocModelCode],  [R].[AldocTypeId],  [xPR],  [xPF],  [xPD],  [xPS],  [xPE],  [xPI],  [xTP],  [xTT],  [xShopState],  [xShippingState],  [XChange],  [R].[SModelId],  [R].[ModelId],  [R].[PrijsSoort],  [R].[PriceShop]     FROM (SELECT  *     FROM (SELECT  [R].*,  [OV].[VeldId],  [OV].[Waarde]     FROM (SELECT  [R].[SortId],  [R].[RecordId],  [R].[DebiteurId],  [R].[ExternalId],  [R].[ReferenceId],  [R].[Youtube],  [R].[Fotos],  [R].[SoortId],  [R].[PrijsTonen],  [R].[Prijs],  [R].[Bouwjaar],  [R].[AutoRecordId],  [R].[Motorcodes],  [R].[Artikelnummers],  [R].[BijzonderheidInet],  [R].[WarrantyText],  [R].[Shop],  [R].[Created],  [R].[WarrantyConstruction],  [R].[DeelId],  [R].[DebiteurRecordId],  [R].[AldocModelCode],  [R].[AldocTypeId],  [R].[DebiteurLocatieId],  [R].[SModelId],  [R].[ModelId],  [R].[PrijsSoort],  [R].[PriceShop],  [xPR],  [xPF],  [xPD],  [xPS],  [xPE],  [xPI],  [xTP],  [xTT],  [xShopState],  [xShippingState],  [XChange]     FROM @RM [RM]  LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) On [R].[RecordId] = [RM].[RecordId]) AS [R]  LEFT JOIN dbo.[OOLVelden] [OV] WITH (INDEX(PK_OOLVelden)) ON [OV].[RecordId] = [R].[RecordId] AND [OV].[VeldId] IN (184, 190, 135, 37, 102, 18, 25, 241, 26)) [R]  PIVOT (MAX([Waarde]) FOR [VeldId] IN ([184], [190], [135], [37], [102], [18], [25], [241], [26])) AS [R]) [R]  LEFT JOIN [Basis].dbo.[AutomateModellenTranslated] [MOT] ON [MOT].[ModelId] = [R].[ModelID] AND [MOT].[LanguageId] = 5 AND [MOT].[Synoniem] = 0   LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [MET] ON [MET].[MerkId] = [MOT].[MerkId] AND [MET].[LanguageId] = 5   LEFT JOIN dbo.[DebiteurLocatieData] [D] ON [D].[DebiteurId] = [R].[DebiteurId] AND [D].[LocatieId] = ISNULL([R].[DebiteurLocatieId], 1)) [R]  ORDER BY [SortId] DESC,  + CASE WHEN [R].[xShopState] = 1 THEN 1 ELSE 0 END DESC, [RowId] ASC     OFFSET 0 ROWS FETCH NEXT 10 ROWS ONLY) [R]; WITH [R] AS (SELECT  [R].[RecordId],  [xPR],  [xPF],  [xPD],  [xPS],  [xPE],  [xPI],  [xTP],  [xTT],  [xShopState],  [xShippingState],  [XChange],  [Bouwjaar],  [xPI] AS [Prijs],  [ModelId]     FROM @RM [RM]  LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) On [R].[RecordId] = [RM].[RecordId]   LEFT JOIN dbo.[DebiteurLocatieData] [D] ON [D].[DebiteurId] = [R].[DebiteurId] AND [D].[LocatieId] = ISNULL([R].[DebiteurLocatieId], 1)) SELECT  [VeldId],  [Waarde] AS [Value],  NULL AS [ValueMIN],  NULL AS [ValueMAX]     FROM dbo.[OOLVelden] [OV]     WHERE [RecordId] IN (SELECT [R].[RecordId] FROM [R]) AND [VeldId] IN (184,190,37,17,102,25,241)  GROUP BY [VeldId], [Waarde] UNION SELECT  [VeldId],  NULL AS [Value],  MIN([Waarde]) AS [ValueMIN],  MAX([Waarde]) AS [ValueMAX]     FROM (SELECT  [VeldId],  TRY_CAST([Waarde] AS INT) AS [Waarde]     FROM dbo.[OOLVelden] [OV]     WHERE [RecordId] IN (SELECT [R].[RecordId] FROM [R]) AND [VeldId] IN (135,18,26)) [OV]  GROUP BY [VeldId] UNION SELECT  12,  NULL AS [Value],  MIN([R].[Bouwjaar]) AS [ValueMIN],  MAX([R].[Bouwjaar]) AS [ValueMAX]     FROM [R] UNION SELECT  14,  NULL AS [Value],  MIN(CAST([Prijs] AS INT)) AS [ValueMIN],  MAX(CAST([Prijs] AS INT)) AS [ValueMAX]     FROM [R] UNION SELECT  1,  [ModelId],  NULL AS [ValueMIN],  NULL AS [ValueMAX]     FROM [R] ORDER BY 1, 2; SELECT  DISTINCT  [R].[DebiteurId]     FROM (SELECT  DISTINCT  [DebiteurId]     FROM dbo.[OOLInternet] [R] WITH (NOLOCK)     WHERE [R].[RecordId] In (Select [RM].[RecordId] FROM @RM [RM])) [R]; SELECT  [R].[DeelId],  [R].[SoortId],  COUNT(*) AS [Aantal]     FROM (SELECT  [R].[DeelId],  [R].[SoortId],  [R].[RecordId],  [R].[DebiteurId]     FROM dbo.[OOLInternet] [R] WITH (NOLOCK FORCESEEK)     WHERE [R].[DebiteurId] IN (100001, 100003, 100007, 100008, 100012, 100019, 100022, 100029, 100034, 100044, 100045, 100056, 100062, 100081, 100085, 100086, 100107, 100109, 100110, 100116, 100119, 100120, 100121, 100124, 100129, 100131, 100139, 100141, 100145, 100152, 100153, 100155, 100159, 100160, 100161, 100177, 100178, 100180, 100181, 100184, 100187, 100189, 100191, 100194, 100197, 100208, 100209, 100216, 100219, 100232, 100238, 100248, 100249, 100251, 100255, 100261, 100278, 100282, 100283, 100284, 100291, 100294, 100305, 100307, 100315, 100324, 100327, 100328, 100336, 100345, 100353, 100358, 100359, 100378, 100385, 100386, 100414, 100417, 100426, 100433, 100457, 100471, 100473, 100480, 100493, 100509, 100512, 100515, 100617, 100727, 100771, 100803, 100805, 100883, 100886, 100997, 101112, 101113, 101114, 101115, 101117, 101118, 101119, 101120, 101121, 101122, 101175, 101185, 101186, 101205, 101209, 101221, 101222, 101232, 101234, 101237, 101238, 101239, 101240, 101249, 101255, 101257, 101262, 101268, 101269, 101271, 101273, 101275, 101276, 101277, 101279, 101280, 101285, 101293, 101300, 101301, 101302, 101304, 101305, 101309, 101311, 101313, 101314, 101315, 101317, 101319, 101321, 101328, 101331, 101332, 101334, 101335, 101337, 101340, 101342, 101343, 101344, 101345, 101348, 101349, 101352, 101353, 101355, 101356, 101361, 101362, 101363, 101365, 101366, 101368, 101369, 101370, 101371, 101374, 101385, 101387, 101390, 101391, 101394, 101395, 101396, 101397, 101398, 101400, 101401, 101403, 101405, 101406, 101407, 101408, 101412, 101413, 101414, 101415, 101417, 101418, 101420, 101422, 101423, 101424, 101425, 101429, 101432, 101433, 101434, 101436, 101438, 101441, 101442, 111111, 123456, 123457, 123462) AND [R].[DeelId] IN ('8091X', '8092X', '8093X') AND [R].[RecordId] IN (SELECT  [OT].[RecordId]     FROM dbo.[OOLEnginecodes] [OT] WITH (NOLOCK)     WHERE [OT].[CodeId] IN (SELECT  [CT].[Id]     FROM dbo.[CodeEngine] [CT]     WHERE [CT].[Code] LIKE 'EIGEN%'))) [R]  GROUP BY [R].[DeelId], [R].[SoortId]" }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 2, "SizeMax": 150, "SetMax": false, "GetIndexMax": 1, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": { "16476347": 1, "15651116": 1 }, "Sort": "", "SortDirection": "Ascending", "CountryName": "France", "CountryId": 250, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }
{ "Data": { "SessionId": 3, "Match": null, "Timestamp": "2026-08-14T22:55:19.0359976+02:00", "UrlRawCurrent": "/stock-de-pieces-auto/recherche/code-boite-de-vitesse/jc5106/", "UrlAbsoluteCurrent": "/url_voorraad/stock-de-pieces-auto/recherche/code-boite-de-vitesse/jc5106/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/stock-de-pieces-auto/recherche/code-boite-de-vitesse/jc5106/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }
{ "Data": { "SessionId": 4, "Match": null, "Timestamp": "2026-08-14T22:55:22.0255932+02:00", "UrlRawCurrent": "/stock-de-pieces-auto/entrepot/code-moteur/cbd/piece/boitier-arbre-a-cames/", "UrlAbsoluteCurrent": "/url_voorraad/stock-de-pieces-auto/entrepot/code-moteur/cbd/piece/boitier-arbre-a-cames/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/stock-de-pieces-auto/entrepot/code-moteur/cbd/piece/boitier-arbre-a-cames/" ], "UrlSet": false, "Query": "SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; DECLARE @RM TABLE ([RecordId] BIGINT NOT NULL, [xPR] DECIMAL(9, 2), [xPS] BIT NOT NULL, [xPD] INT, [xTP] DECIMAL(5, 2) NOT NULL, [xTT] INT NOT NULL, [xShopState] INT, [xShippingState] TINYINT, [Match] INT, [XChange] BIT, [xPF] DECIMAL(9, 2), [xPE] DECIMAL(9, 2), [xPI] DECIMAL(9, 2) PRIMARY KEY CLUSTERED (RecordId ASC)) INSERT INTO @RM ([RecordId], [xPR], [xPS], [xPD], [xTP], [xTT], [xShopState], [xShippingState], [Match], [XChange], [xPF], [xPE], [xPI]) SELECT  *,  CASE WHEN [xPF] IS NOT NULL THEN CASE WHEN [xTT] = 1 THEN CAST([xPF] / ((100 + [xTP]) / 100) AS DECIMAL(9, 2)) ELSE [xPF] END END AS [xPE],  CASE WHEN [xPF] IS NOT NULL THEN CASE WHEN [xTT] = 0 THEN CAST([xPF] * ((100 + [xTP]) / 100) AS DECIMAL(9, 2)) ELSE [xPF] END END AS [xPI]     FROM (SELECT  *,  CASE WHEN [xPS] = 1 AND [xPR] IS NOT NULL THEN CAST(CASE WHEN [xPD] IS NOT NULL THEN (CAST((100 - ISNULL([xPD], 0)) AS DECIMAL) / 100) * [xPR] ELSE [xPR] END AS DECIMAL(10, 2)) END AS [xPF]     FROM (SELECT  [R].[RecordId],  (ISNULL(CASE WHEN [R].[Shop] = 1 THEN ISNULL([R].[PriceShop],ROUND ( [R].[Prijs] * ((100 + ISNULL([D].[ShopPricePercentage], 0)) / 100), 2)) END, [R].[Prijs])) AS [xPR],  CASE WHEN [R].[PrijsTonen] IS NOT NULL THEN [R].[PrijsTonen] WHEN [R].[SoortId] = 0 THEN [D].[OOLPrijzenG] WHEN [R].[SoortId] = 1 THEN [D].[OOLPrijzenR] WHEN [R].[SoortId] = 2 THEN [D].[OOLPrijzenN] ELSE 1 END AS [xPS],  (SELECT [T].[Discount] FROM dbo.[AutomatePartDiscount] [T] WHERE [T].[SupplierId] = [R].[DebiteurId] AND [T].[StateId] = [R].[SoortId] AND [T].[PartAutomateId] = [R].[DeelId]) AS [xPD],  ISNULL([VT].[General], 21) AS [xTP],  CASE WHEN [R].[SoortId] = 0 AND NOT ISNULL([R].[PrijsSoort], 0) = 1 THEN 2 WHEN [D].[OOLPrijzenExcl] = 0 THEN 1 ELSE 0 END AS [xTT],  CASE WHEN NOT [D].[ShopActive] = 1 THEN 11 ELSE dbo.fnGetOOLShopStateQuick([R].[RecordId], 1, 5, xShippingState) END AS [xShopState],  xShippingState AS [xShippingState],  NULL AS [Match],  CASE WHEN [RM].[xPM] = 4 THEN 1 END AS [XChange]     FROM (SELECT  [RM].[RecordId],  MAX([RM].[xPM]) AS [xPM]     FROM (SELECT  [R].[RecordId],  10 AS [xPM]     FROM dbo.[OOLInternet] [R] WITH (NOLOCK)     WHERE [R].[DeelId] IN ('7903A') AND [R].[RecordId] IN (SELECT  [OT].[RecordId]     FROM dbo.[OOLEnginecodes] [OT] WITH (NOLOCK)     WHERE [OT].[CodeId] IN (SELECT  [CT].[Id]     FROM dbo.[CodeEngine] [CT]     WHERE [CT].[Code] LIKE 'CBD%')) AND [R].[DebiteurId] IN (100001, 100003, 100007, 100008, 100012, 100019, 100022, 100029, 100034, 100044, 100045, 100056, 100062, 100081, 100085, 100086, 100107, 100109, 100110, 100116, 100119, 100120, 100121, 100124, 100129, 100131, 100139, 100141, 100145, 100152, 100153, 100155, 100159, 100160, 100161, 100177, 100178, 100180, 100181, 100184, 100187, 100189, 100191, 100194, 100197, 100208, 100209, 100216, 100219, 100232, 100238, 100248, 100249, 100251, 100255, 100261, 100278, 100282, 100283, 100284, 100291, 100294, 100305, 100307, 100315, 100324, 100327, 100328, 100336, 100345, 100353, 100358, 100359, 100378, 100385, 100386, 100414, 100417, 100426, 100433, 100457, 100471, 100473, 100480, 100493, 100509, 100512, 100515, 100617, 100727, 100771, 100803, 100805, 100883, 100886, 100997, 101112, 101113, 101114, 101115, 101117, 101118, 101119, 101120, 101121, 101122, 101175, 101185, 101186, 101205, 101209, 101221, 101222, 101232, 101234, 101237, 101238, 101239, 101240, 101249, 101255, 101257, 101262, 101268, 101269, 101271, 101273, 101275, 101276, 101277, 101279, 101280, 101285, 101293, 101300, 101301, 101302, 101304, 101305, 101309, 101311, 101313, 101314, 101315, 101317, 101319, 101321, 101328, 101331, 101332, 101334, 101335, 101337, 101340, 101342, 101343, 101344, 101345, 101348, 101349, 101352, 101353, 101355, 101356, 101361, 101362, 101363, 101365, 101366, 101368, 101369, 101370, 101371, 101374, 101385, 101387, 101390, 101391, 101394, 101395, 101396, 101397, 101398, 101400, 101401, 101403, 101405, 101406, 101407, 101408, 101412, 101413, 101414, 101415, 101417, 101418, 101420, 101422, 101423, 101424, 101425, 101429, 101432, 101433, 101434, 101436, 101438, 101441, 101442, 111111, 123456, 123457, 123462) UNION SELECT  [R].[RecordId],  4 AS [xPM]     FROM dbo.[OOLInternet] [R] WITH (NOLOCK)     WHERE [R].[DebiteurId] IN (100001, 100003, 100007, 100008, 100012, 100019, 100022, 100029, 100034, 100044, 100045, 100056, 100062, 100081, 100085, 100086, 100107, 100109, 100110, 100116, 100119, 100120, 100121, 100124, 100129, 100131, 100139, 100141, 100145, 100152, 100153, 100155, 100159, 100160, 100161, 100177, 100178, 100180, 100181, 100184, 100187, 100189, 100191, 100194, 100197, 100208, 100209, 100216, 100219, 100232, 100238, 100248, 100249, 100251, 100255, 100261, 100278, 100282, 100283, 100284, 100291, 100294, 100305, 100307, 100315, 100324, 100327, 100328, 100336, 100345, 100353, 100358, 100359, 100378, 100385, 100386, 100414, 100417, 100426, 100433, 100457, 100471, 100473, 100480, 100493, 100509, 100512, 100515, 100617, 100727, 100771, 100803, 100805, 100883, 100886, 100997, 101112, 101113, 101114, 101115, 101117, 101118, 101119, 101120, 101121, 101122, 101175, 101185, 101186, 101205, 101209, 101221, 101222, 101232, 101234, 101237, 101238, 101239, 101240, 101249, 101255, 101257, 101262, 101268, 101269, 101271, 101273, 101275, 101276, 101277, 101279, 101280, 101285, 101293, 101300, 101301, 101302, 101304, 101305, 101309, 101311, 101313, 101314, 101315, 101317, 101319, 101321, 101328, 101331, 101332, 101334, 101335, 101337, 101340, 101342, 101343, 101344, 101345, 101348, 101349, 101352, 101353, 101355, 101356, 101361, 101362, 101363, 101365, 101366, 101368, 101369, 101370, 101371, 101374, 101385, 101387, 101390, 101391, 101394, 101395, 101396, 101397, 101398, 101400, 101401, 101403, 101405, 101406, 101407, 101408, 101412, 101413, 101414, 101415, 101417, 101418, 101420, 101422, 101423, 101424, 101425, 101429, 101432, 101433, 101434, 101436, 101438, 101441, 101442, 111111, 123456, 123457, 123462) AND [R].[DeelId] = '7903A' AND ([R].[RecordId] IN (SELECT  [OX].[RecordId]     FROM dbo.[OOLXchg] [OX] WITH (NOLOCK)     WHERE [OX].[CollectionId] IN (SELECT  [DX].[CollectionId]     FROM dbo.[DebtorXchgEnginecode] [DX]     WHERE [DX].[CodeId] IN (SELECT  [CT].[Id]     FROM dbo.[CodeEngine] [CT]     WHERE [CT].[Code] LIKE 'CBD%'))))) [RM]  GROUP BY [RM].[RecordId]) [RM]  LEFT JOIN dbo.[OOLInternet] [R] ON [R].[RecordId] = [RM].[RecordId]   LEFT JOIN dbo.[DebiteurLocatieData] [D] ON [D].[DebiteurId] = [R].[DebiteurId] AND [D].[LocatieId] = ISNULL([R].[DebiteurLocatieId], 1)   LEFT JOIN [Basis].dbo.[CountryVatRate] [VT] ON [VT].[CountryId] = [D].[LandId] AND [VT].[Active] = 1  OUTER APPLY (SELECT dbo.fnGetOOLShippingStateExtended([R].[DebiteurId], [R].[DebiteurLocatieId], [R].[DeelNr], 250, NULL) [xShippingState]) [SHS]) [R]) [R]; SELECT  [R].[DeelId],  [R].[SoortId],  COUNT(*) AS [Aantal]     FROM (SELECT  [R].[DeelId],  [R].[SoortId],  [R].[RecordId],  [R].[DebiteurId],  [xPR],  [xPF],  [xPD],  [xPS],  [xPE],  [xPI],  [xTP],  [xTT],  [xShopState],  [xShippingState],  [XChange]     FROM @RM [RM]  LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) On [R].[RecordId] = [RM].[RecordId]) [R]  GROUP BY [R].[DeelId], [R].[SoortId]; SELECT  [R].*,  [xTP] AS [PrijsTaxPerc],  [xPD] AS [PrijsKorting],  (SELECT [VIBM].[Bouwmaand] FROM dbo.[VOLInternet] [VIBM] WHERE [VIBM].[RecordId] = [R].[AutoRecordId]) AS [ConstructionMonth],  [xPE] AS [PrijsAlt],  STUFF((SELECT '|' + CAST([V].[VeldId] AS VARCHAR(10)) + '^' + [V].[Waarde] FROM (SELECT [V].[VeldId], [V].[Waarde], [V].[OrderId] FROM dbo.[OOLVelden] [V] WHERE [V].[RecordId] = [R].[RecordId] AND [V].[VeldId] IN (26, 230, 231)) [V] ORDER BY [V].[VeldId], [V].[OrderId] FOR XML PATH('')), 1, 1, '') AS [Automate2Velden],  CASE WHEN [R].[GarantieToelichting] IS NOT NULL THEN (SELECT TOP 1 [TV].[Translation] FROM [Storage].dbo.[TranslateTextResult] [TV] WHERE [TV].[TextId] = (SELECT [TR].[TextId] FROM [Storage].dbo.[TranslateTextRecord] [TR] WHERE [TR].[RecordId] = [R].[RecordId] AND [TR].[TextTypeId] = 2) AND [TV].[LanguageId] IN (5, 2, 1) ORDER BY [TV].[LanguageId] DESC) END AS [GarantieTranslated],  CASE WHEN [R].[BijzonderheidInet] IS NOT NULL THEN (SELECT TOP 1 [TV].[Translation] FROM [Storage].dbo.[TranslateTextResult] [TV] WHERE [TV].[TextId] = (SELECT [TR].[TextId] FROM [Storage].dbo.[TranslateTextRecord] [TR] WHERE [TR].[RecordId] = [R].[RecordId] AND [TR].[TextTypeId] = 1) AND [TV].[LanguageId] IN (5, 2, 1) ORDER BY [TV].[LanguageId] DESC) END AS [BijzonderheidInetTranslated],  [xShopState] AS [ShopState],  CASE WHEN [R].[AldocModelCode] IS NOT NULL THEN (SELECT ISNULL((STUFF((SELECT '^' + [T3].[NaamInternet] + '~' + [T2].[NaamInternet] FROM [Basis].dbo.[AutomateModellenTranslated] [T2] LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [T3] ON [T3].[MerkId] = [T2].[MerkId] AND [T3].[LanguageId] = 5 WHERE [T2].[ModelId] IN (SELECT [T].[ModelId] FROM [Basis].dbo.[AldocModelKoppelingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode]) AND [T2].[LanguageId] = 5 AND [T2].[Synoniem] = 0 FOR XML PATH('')), 1, 1,'')), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocModelOmschrijvingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode] AND [T].[LanguageId] = 5), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocTypeOmschrijvingen] [T] WHERE [T].[TypeId] = [R].[AldocTypeId] AND [T].[LanguageId] = 5), '')) END AS [AldocDescription]     FROM (SELECT  [R].*,  ROW_NUMBER() OVER (PARTITION BY R.SortId, R.DebiteurId ORDER BY SortId + CASE WHEN [R].[xShopState] = 1 THEN 1 ELSE 0 END DESC, CASE WHEN [12] IS NULL THEN 1 END ASC, [12] DESC, CASE WHEN [14] IS NULL THEN 1 END ASC, [14] ASC, RIGHT([RecordId], 2)%(DATEPART(WEEKDAY, GETDATE()) + 3) ASC, [RecordId] ASC) AS [RowId]     FROM (SELECT  [R].[SortId],  [R].[RecordId],  [R].[DebiteurId],  [R].[ExternalId],  [R].[ReferenceId],  [R].[Youtube] AS [181],  [184],  [190],  ISNULL([R].[Fotos], (SELECT 'G^' + CAST([G].[GroupId] AS VARCHAR(20)) + '^' + [G].[Images] FROM dbo.[OOLFotoGroups] [G] WHERE [G].[DebiteurId] = [R].[DebiteurId] AND [G].[SModelId] = [R].[SModelId] AND [G].[DeelId] = [R].[DeelId])) AS [58],  [R].[SoortId] AS [StateId],  CASE WHEN SUBSTRING([R].[ModelId], 1, 3) IN ('00X', '0XX') THEN NULL ELSE [MET].[NaamInternet] + '^' + [MOT].[NaamInternet] END AS [MakeModel],  [xPS] AS [PrijsTonen],  CASE WHEN [xTT] IN (0, 1) THEN 1 ELSE [xTT] END AS [PrijsTaxType],  [xPI] AS [14],  [R].[Bouwjaar] AS [12],  [R].[AutoRecordId],  CASE WHEN [135] IS NULL THEN CASE WHEN [R].[SoortId] = 0 THEN [D].[OOLGarantieG] WHEN [R].[SoortId] = 1 THEN [D].[OOLGarantieR] WHEN [R].[SoortId] = 2 THEN [D].[OOLGarantieN] ELSE NULL END ELSE [135] END AS [135],  [37],  STUFF((SELECT '|' + [XVT].[NaamLang] FROM dbo.[OOLVelden] [XOV] LEFT JOIN [Basis].dbo.[AutomateVeldWaardenTranslated] [XVT] ON [XVT].[VeldId] = [XOV].[VeldId] AND [XVT].[LanguageId] = 5 AND [XVT].[Waarde] = [XOV].[Waarde] WHERE [XOV].[RecordId] = [R].[RecordId] AND [XOV].[VeldId] = 17 ORDER BY [XOV].[OrderId] FOR XML PATH('')), 1, 1, '') AS [17],  CASE WHEN [101] = 'I' THEN 'Intercooler' WHEN [101] = 'N' THEN 'Non' WHEN ISNULL([101], '') = '' THEN NULL ELSE [101] END AS [101],  TRY_CAST([18] AS INT) AS [18],  CASE WHEN [XChange] = 1 THEN ISNULL([R].[Motorcodes] + '|', '') + ISNULL((SELECT TOP 1 [CT].[Code] FROM dbo.[OOLXchg] [X] LEFT JOIN dbo.[DebtorXchgEnginecode] [XP] ON [XP].[CollectionId] = [X].[CollectionId] LEFT JOIN dbo.[CodeEngine] [CT] ON [CT].[Id] = [XP].[CodeId] WHERE [X].[RecordId] = [R].[RecordId] AND [CT].[Code] LIKE 'CBD%'), 'CBD') ELSE [R].[Motorcodes] END AS [108],  (SELECT TOP 1 [XOV].[Waarde] FROM dbo.[OOLVelden] [XOV] WHERE [XOV].[RecordId] = [R].[RecordId] AND [XOV].[VeldId] = 241 ORDER BY [XOV].[OrderId]) AS [241],  TRY_CAST([26] AS INT) AS [26],  [V19].[NaamLang] AS [19],  [25],  [R].[Artikelnummers] AS [21],  ISNULL([D].[Bedrijfsnaam], '') + '|' + ISNULL([D].[BedrijfKort], '') AS [Leverancier],  [R].[BijzonderheidInet],  [R].[WarrantyText] AS [GarantieToelichting],  [R].[Shop],  [R].[Created],  [xShippingState] AS [ShippingState],  [R].[WarrantyConstruction] AS [WarrantyInstallation],  [R].[DeelId],  [R].[DebiteurRecordId],  [R].[AldocModelCode],  [R].[AldocTypeId],  [xPR],  [xPF],  [xPD],  [xPS],  [xPE],  [xPI],  [xTP],  [xTT],  [xShopState],  [xShippingState],  [XChange],  [R].[SModelId],  [R].[ModelId],  [R].[PrijsSoort],  [R].[PriceShop]     FROM (SELECT  *     FROM (SELECT  [R].*,  [OV].[VeldId],  [OV].[Waarde]     FROM (SELECT  [R].[SortId],  [R].[RecordId],  [R].[DebiteurId],  [R].[ExternalId],  [R].[ReferenceId],  [R].[Youtube],  [R].[Fotos],  [R].[SoortId],  [R].[PrijsTonen],  [R].[Prijs],  [R].[Bouwjaar],  [R].[AutoRecordId],  [R].[Motorcodes],  [R].[Artikelnummers],  [R].[BijzonderheidInet],  [R].[WarrantyText],  [R].[Shop],  [R].[Created],  [R].[WarrantyConstruction],  [R].[DeelId],  [R].[DebiteurRecordId],  [R].[AldocModelCode],  [R].[AldocTypeId],  [R].[DebiteurLocatieId],  [R].[SModelId],  [R].[ModelId],  [R].[PrijsSoort],  [R].[PriceShop],  [xPR],  [xPF],  [xPD],  [xPS],  [xPE],  [xPI],  [xTP],  [xTT],  [xShopState],  [xShippingState],  [XChange]     FROM @RM [RM]  LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) On [R].[RecordId] = [RM].[RecordId]) AS [R]  LEFT JOIN dbo.[OOLVelden] [OV] WITH (INDEX(PK_OOLVelden)) ON [OV].[RecordId] = [R].[RecordId] AND [OV].[VeldId] IN (184, 190, 135, 37, 101, 18, 241, 26, 19, 25)) [R]  PIVOT (MAX([Waarde]) FOR [VeldId] IN ([184], [190], [135], [37], [101], [18], [241], [26], [19], [25])) AS [R]) [R]  LEFT JOIN [Basis].dbo.[AutomateVeldWaardenTranslated] [V19] ON [V19].[VeldId] = 19 AND [V19].[Waarde] = [19] AND [V19].[LanguageId] = 5   LEFT JOIN [Basis].dbo.[AutomateModellenTranslated] [MOT] ON [MOT].[ModelId] = [R].[ModelID] AND [MOT].[LanguageId] = 5 AND [MOT].[Synoniem] = 0   LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [MET] ON [MET].[MerkId] = [MOT].[MerkId] AND [MET].[LanguageId] = 5   LEFT JOIN dbo.[DebiteurLocatieData] [D] ON [D].[DebiteurId] = [R].[DebiteurId] AND [D].[LocatieId] = ISNULL([R].[DebiteurLocatieId], 1)) [R]  ORDER BY [SortId] DESC,  + CASE WHEN [R].[xShopState] = 1 THEN 1 ELSE 0 END DESC, [RowId] ASC     OFFSET 0 ROWS FETCH NEXT 10 ROWS ONLY) [R]; WITH [R] AS (SELECT  [R].[RecordId],  [xPR],  [xPF],  [xPD],  [xPS],  [xPE],  [xPI],  [xTP],  [xTT],  [xShopState],  [xShippingState],  [XChange],  [Bouwjaar],  [xPI] AS [Prijs],  [ModelId]     FROM @RM [RM]  LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) On [R].[RecordId] = [RM].[RecordId]   LEFT JOIN dbo.[DebiteurLocatieData] [D] ON [D].[DebiteurId] = [R].[DebiteurId] AND [D].[LocatieId] = ISNULL([R].[DebiteurLocatieId], 1)) SELECT  [VeldId],  [Waarde] AS [Value],  NULL AS [ValueMIN],  NULL AS [ValueMAX]     FROM dbo.[OOLVelden] [OV]     WHERE [RecordId] IN (SELECT [R].[RecordId] FROM [R]) AND [VeldId] IN (184,190,37,17,101,241,19,25)  GROUP BY [VeldId], [Waarde] UNION SELECT  [VeldId],  NULL AS [Value],  MIN([Waarde]) AS [ValueMIN],  MAX([Waarde]) AS [ValueMAX]     FROM (SELECT  [VeldId],  TRY_CAST([Waarde] AS INT) AS [Waarde]     FROM dbo.[OOLVelden] [OV]     WHERE [RecordId] IN (SELECT [R].[RecordId] FROM [R]) AND [VeldId] IN (135,18,26)) [OV]  GROUP BY [VeldId] UNION SELECT  12,  NULL AS [Value],  MIN([R].[Bouwjaar]) AS [ValueMIN],  MAX([R].[Bouwjaar]) AS [ValueMAX]     FROM [R] UNION SELECT  14,  NULL AS [Value],  MIN(CAST([Prijs] AS INT)) AS [ValueMIN],  MAX(CAST([Prijs] AS INT)) AS [ValueMAX]     FROM [R] UNION SELECT  1,  [ModelId],  NULL AS [ValueMIN],  NULL AS [ValueMAX]     FROM [R] ORDER BY 1, 2; SELECT  DISTINCT  [R].[DebiteurId]     FROM (SELECT  DISTINCT  [DebiteurId]     FROM dbo.[OOLInternet] [R] WITH (NOLOCK)     WHERE [R].[RecordId] In (Select [RM].[RecordId] FROM @RM [RM])) [R]" }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 1, "SizeMax": 150, "SetMax": false, "GetIndexMax": 1, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": { "21569303": 1 }, "Sort": "", "SortDirection": "Ascending", "CountryName": "France", "CountryId": 250, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }
{ "Data": { "SessionId": 5, "Match": null, "Timestamp": "2026-08-14T22:55:24.3380932+02:00", "UrlRawCurrent": "/stock-de-pieces-auto/entrepot/code-moteur/hr10de/piece/couvercle-carter/", "UrlAbsoluteCurrent": "/url_voorraad/stock-de-pieces-auto/entrepot/code-moteur/hr10de/piece/couvercle-carter/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/stock-de-pieces-auto/entrepot/code-moteur/hr10de/piece/couvercle-carter/" ], "UrlSet": false, "Query": "SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; DECLARE @RM TABLE ([RecordId] BIGINT NOT NULL, [xPR] DECIMAL(9, 2), [xPS] BIT NOT NULL, [xPD] INT, [xTP] DECIMAL(5, 2) NOT NULL, [xTT] INT NOT NULL, [xShopState] INT, [xShippingState] TINYINT, [Match] INT, [XChange] BIT, [xPF] DECIMAL(9, 2), [xPE] DECIMAL(9, 2), [xPI] DECIMAL(9, 2) PRIMARY KEY CLUSTERED (RecordId ASC)) INSERT INTO @RM ([RecordId], [xPR], [xPS], [xPD], [xTP], [xTT], [xShopState], [xShippingState], [Match], [XChange], [xPF], [xPE], [xPI]) SELECT  *,  CASE WHEN [xPF] IS NOT NULL THEN CASE WHEN [xTT] = 1 THEN CAST([xPF] / ((100 + [xTP]) / 100) AS DECIMAL(9, 2)) ELSE [xPF] END END AS [xPE],  CASE WHEN [xPF] IS NOT NULL THEN CASE WHEN [xTT] = 0 THEN CAST([xPF] * ((100 + [xTP]) / 100) AS DECIMAL(9, 2)) ELSE [xPF] END END AS [xPI]     FROM (SELECT  *,  CASE WHEN [xPS] = 1 AND [xPR] IS NOT NULL THEN CAST(CASE WHEN [xPD] IS NOT NULL THEN (CAST((100 - ISNULL([xPD], 0)) AS DECIMAL) / 100) * [xPR] ELSE [xPR] END AS DECIMAL(10, 2)) END AS [xPF]     FROM (SELECT  [R].[RecordId],  (ISNULL(CASE WHEN [R].[Shop] = 1 THEN ISNULL([R].[PriceShop],ROUND ( [R].[Prijs] * ((100 + ISNULL([D].[ShopPricePercentage], 0)) / 100), 2)) END, [R].[Prijs])) AS [xPR],  CASE WHEN [R].[PrijsTonen] IS NOT NULL THEN [R].[PrijsTonen] WHEN [R].[SoortId] = 0 THEN [D].[OOLPrijzenG] WHEN [R].[SoortId] = 1 THEN [D].[OOLPrijzenR] WHEN [R].[SoortId] = 2 THEN [D].[OOLPrijzenN] ELSE 1 END AS [xPS],  (SELECT [T].[Discount] FROM dbo.[AutomatePartDiscount] [T] WHERE [T].[SupplierId] = [R].[DebiteurId] AND [T].[StateId] = [R].[SoortId] AND [T].[PartAutomateId] = [R].[DeelId]) AS [xPD],  ISNULL([VT].[General], 21) AS [xTP],  CASE WHEN [R].[SoortId] = 0 AND NOT ISNULL([R].[PrijsSoort], 0) = 1 THEN 2 WHEN [D].[OOLPrijzenExcl] = 0 THEN 1 ELSE 0 END AS [xTT],  CASE WHEN NOT [D].[ShopActive] = 1 THEN 11 ELSE dbo.fnGetOOLShopStateQuick([R].[RecordId], 1, 5, xShippingState) END AS [xShopState],  xShippingState AS [xShippingState],  NULL AS [Match],  CASE WHEN [RM].[xPM] = 4 THEN 1 END AS [XChange]     FROM (SELECT  [RM].[RecordId],  MAX([RM].[xPM]) AS [xPM]     FROM (SELECT  [R].[RecordId],  10 AS [xPM]     FROM dbo.[OOLInternet] [R] WITH (NOLOCK)     WHERE [R].[DeelId] IN ('8065A') AND [R].[RecordId] IN (SELECT  [OT].[RecordId]     FROM dbo.[OOLEnginecodes] [OT] WITH (NOLOCK)     WHERE [OT].[CodeId] IN (SELECT  [CT].[Id]     FROM dbo.[CodeEngine] [CT]     WHERE [CT].[Code] LIKE 'HR10DE%')) AND [R].[DebiteurId] IN (100001, 100003, 100007, 100008, 100012, 100019, 100022, 100029, 100034, 100044, 100045, 100056, 100062, 100081, 100085, 100086, 100107, 100109, 100110, 100116, 100119, 100120, 100121, 100124, 100129, 100131, 100139, 100141, 100145, 100152, 100153, 100155, 100159, 100160, 100161, 100177, 100178, 100180, 100181, 100184, 100187, 100189, 100191, 100194, 100197, 100208, 100209, 100216, 100219, 100232, 100238, 100248, 100249, 100251, 100255, 100261, 100278, 100282, 100283, 100284, 100291, 100294, 100305, 100307, 100315, 100324, 100327, 100328, 100336, 100345, 100353, 100358, 100359, 100378, 100385, 100386, 100414, 100417, 100426, 100433, 100457, 100471, 100473, 100480, 100493, 100509, 100512, 100515, 100617, 100727, 100771, 100803, 100805, 100883, 100886, 100997, 101112, 101113, 101114, 101115, 101117, 101118, 101119, 101120, 101121, 101122, 101175, 101185, 101186, 101205, 101209, 101221, 101222, 101232, 101234, 101237, 101238, 101239, 101240, 101249, 101255, 101257, 101262, 101268, 101269, 101271, 101273, 101275, 101276, 101277, 101279, 101280, 101285, 101293, 101300, 101301, 101302, 101304, 101305, 101309, 101311, 101313, 101314, 101315, 101317, 101319, 101321, 101328, 101331, 101332, 101334, 101335, 101337, 101340, 101342, 101343, 101344, 101345, 101348, 101349, 101352, 101353, 101355, 101356, 101361, 101362, 101363, 101365, 101366, 101368, 101369, 101370, 101371, 101374, 101385, 101387, 101390, 101391, 101394, 101395, 101396, 101397, 101398, 101400, 101401, 101403, 101405, 101406, 101407, 101408, 101412, 101413, 101414, 101415, 101417, 101418, 101420, 101422, 101423, 101424, 101425, 101429, 101432, 101433, 101434, 101436, 101438, 101441, 101442, 111111, 123456, 123457, 123462) UNION SELECT  [R].[RecordId],  4 AS [xPM]     FROM dbo.[OOLInternet] [R] WITH (NOLOCK)     WHERE [R].[DebiteurId] IN (100001, 100003, 100007, 100008, 100012, 100019, 100022, 100029, 100034, 100044, 100045, 100056, 100062, 100081, 100085, 100086, 100107, 100109, 100110, 100116, 100119, 100120, 100121, 100124, 100129, 100131, 100139, 100141, 100145, 100152, 100153, 100155, 100159, 100160, 100161, 100177, 100178, 100180, 100181, 100184, 100187, 100189, 100191, 100194, 100197, 100208, 100209, 100216, 100219, 100232, 100238, 100248, 100249, 100251, 100255, 100261, 100278, 100282, 100283, 100284, 100291, 100294, 100305, 100307, 100315, 100324, 100327, 100328, 100336, 100345, 100353, 100358, 100359, 100378, 100385, 100386, 100414, 100417, 100426, 100433, 100457, 100471, 100473, 100480, 100493, 100509, 100512, 100515, 100617, 100727, 100771, 100803, 100805, 100883, 100886, 100997, 101112, 101113, 101114, 101115, 101117, 101118, 101119, 101120, 101121, 101122, 101175, 101185, 101186, 101205, 101209, 101221, 101222, 101232, 101234, 101237, 101238, 101239, 101240, 101249, 101255, 101257, 101262, 101268, 101269, 101271, 101273, 101275, 101276, 101277, 101279, 101280, 101285, 101293, 101300, 101301, 101302, 101304, 101305, 101309, 101311, 101313, 101314, 101315, 101317, 101319, 101321, 101328, 101331, 101332, 101334, 101335, 101337, 101340, 101342, 101343, 101344, 101345, 101348, 101349, 101352, 101353, 101355, 101356, 101361, 101362, 101363, 101365, 101366, 101368, 101369, 101370, 101371, 101374, 101385, 101387, 101390, 101391, 101394, 101395, 101396, 101397, 101398, 101400, 101401, 101403, 101405, 101406, 101407, 101408, 101412, 101413, 101414, 101415, 101417, 101418, 101420, 101422, 101423, 101424, 101425, 101429, 101432, 101433, 101434, 101436, 101438, 101441, 101442, 111111, 123456, 123457, 123462) AND [R].[DeelId] = '8065A' AND ([R].[RecordId] IN (SELECT  [OX].[RecordId]     FROM dbo.[OOLXchg] [OX] WITH (NOLOCK)     WHERE [OX].[CollectionId] IN (SELECT  [DX].[CollectionId]     FROM dbo.[DebtorXchgEnginecode] [DX]     WHERE [DX].[CodeId] IN (SELECT  [CT].[Id]     FROM dbo.[CodeEngine] [CT]     WHERE [CT].[Code] LIKE 'HR10DE%'))))) [RM]  GROUP BY [RM].[RecordId]) [RM]  LEFT JOIN dbo.[OOLInternet] [R] ON [R].[RecordId] = [RM].[RecordId]   LEFT JOIN dbo.[DebiteurLocatieData] [D] ON [D].[DebiteurId] = [R].[DebiteurId] AND [D].[LocatieId] = ISNULL([R].[DebiteurLocatieId], 1)   LEFT JOIN [Basis].dbo.[CountryVatRate] [VT] ON [VT].[CountryId] = [D].[LandId] AND [VT].[Active] = 1  OUTER APPLY (SELECT dbo.fnGetOOLShippingStateExtended([R].[DebiteurId], [R].[DebiteurLocatieId], [R].[DeelNr], 250, NULL) [xShippingState]) [SHS]) [R]) [R]; SELECT  [R].[DeelId],  [R].[SoortId],  COUNT(*) AS [Aantal]     FROM (SELECT  [R].[DeelId],  [R].[SoortId],  [R].[RecordId],  [R].[DebiteurId],  [xPR],  [xPF],  [xPD],  [xPS],  [xPE],  [xPI],  [xTP],  [xTT],  [xShopState],  [xShippingState],  [XChange]     FROM @RM [RM]  LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) On [R].[RecordId] = [RM].[RecordId]) [R]  GROUP BY [R].[DeelId], [R].[SoortId]; SELECT  [R].*,  [xTP] AS [PrijsTaxPerc],  [xPD] AS [PrijsKorting],  (SELECT [VIBM].[Bouwmaand] FROM dbo.[VOLInternet] [VIBM] WHERE [VIBM].[RecordId] = [R].[AutoRecordId]) AS [ConstructionMonth],  [xPE] AS [PrijsAlt],  STUFF((SELECT '|' + CAST([V].[VeldId] AS VARCHAR(10)) + '^' + [V].[Waarde] FROM (SELECT [V].[VeldId], [V].[Waarde], [V].[OrderId] FROM dbo.[OOLVelden] [V] WHERE [V].[RecordId] = [R].[RecordId] AND [V].[VeldId] IN (26)) [V] ORDER BY [V].[VeldId], [V].[OrderId] FOR XML PATH('')), 1, 1, '') AS [Automate2Velden],  CASE WHEN [R].[GarantieToelichting] IS NOT NULL THEN (SELECT TOP 1 [TV].[Translation] FROM [Storage].dbo.[TranslateTextResult] [TV] WHERE [TV].[TextId] = (SELECT [TR].[TextId] FROM [Storage].dbo.[TranslateTextRecord] [TR] WHERE [TR].[RecordId] = [R].[RecordId] AND [TR].[TextTypeId] = 2) AND [TV].[LanguageId] IN (5, 2, 1) ORDER BY [TV].[LanguageId] DESC) END AS [GarantieTranslated],  CASE WHEN [R].[BijzonderheidInet] IS NOT NULL THEN (SELECT TOP 1 [TV].[Translation] FROM [Storage].dbo.[TranslateTextResult] [TV] WHERE [TV].[TextId] = (SELECT [TR].[TextId] FROM [Storage].dbo.[TranslateTextRecord] [TR] WHERE [TR].[RecordId] = [R].[RecordId] AND [TR].[TextTypeId] = 1) AND [TV].[LanguageId] IN (5, 2, 1) ORDER BY [TV].[LanguageId] DESC) END AS [BijzonderheidInetTranslated],  [xShopState] AS [ShopState],  CASE WHEN [R].[AldocModelCode] IS NOT NULL THEN (SELECT ISNULL((STUFF((SELECT '^' + [T3].[NaamInternet] + '~' + [T2].[NaamInternet] FROM [Basis].dbo.[AutomateModellenTranslated] [T2] LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [T3] ON [T3].[MerkId] = [T2].[MerkId] AND [T3].[LanguageId] = 5 WHERE [T2].[ModelId] IN (SELECT [T].[ModelId] FROM [Basis].dbo.[AldocModelKoppelingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode]) AND [T2].[LanguageId] = 5 AND [T2].[Synoniem] = 0 FOR XML PATH('')), 1, 1,'')), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocModelOmschrijvingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode] AND [T].[LanguageId] = 5), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocTypeOmschrijvingen] [T] WHERE [T].[TypeId] = [R].[AldocTypeId] AND [T].[LanguageId] = 5), '')) END AS [AldocDescription]     FROM (SELECT  [R].*,  ROW_NUMBER() OVER (PARTITION BY R.SortId, R.DebiteurId ORDER BY SortId + CASE WHEN [R].[xShopState] = 1 THEN 1 ELSE 0 END DESC, CASE WHEN [12] IS NULL THEN 1 END ASC, [12] DESC, CASE WHEN [14] IS NULL THEN 1 END ASC, [14] ASC, RIGHT([RecordId], 2)%(DATEPART(WEEKDAY, GETDATE()) + 3) ASC, [RecordId] ASC) AS [RowId]     FROM (SELECT  [R].[SortId],  [R].[RecordId],  [R].[DebiteurId],  [R].[ExternalId],  [R].[ReferenceId],  [R].[Youtube] AS [181],  [184],  [190],  ISNULL([R].[Fotos], (SELECT 'G^' + CAST([G].[GroupId] AS VARCHAR(20)) + '^' + [G].[Images] FROM dbo.[OOLFotoGroups] [G] WHERE [G].[DebiteurId] = [R].[DebiteurId] AND [G].[SModelId] = [R].[SModelId] AND [G].[DeelId] = [R].[DeelId])) AS [58],  [R].[SoortId] AS [StateId],  CASE WHEN SUBSTRING([R].[ModelId], 1, 3) IN ('00X', '0XX') THEN NULL ELSE [MET].[NaamInternet] + '^' + [MOT].[NaamInternet] END AS [MakeModel],  [xPS] AS [PrijsTonen],  CASE WHEN [xTT] IN (0, 1) THEN 1 ELSE [xTT] END AS [PrijsTaxType],  [xPI] AS [14],  [R].[Bouwjaar] AS [12],  [R].[AutoRecordId],  CASE WHEN [135] IS NULL THEN CASE WHEN [R].[SoortId] = 0 THEN [D].[OOLGarantieG] WHEN [R].[SoortId] = 1 THEN [D].[OOLGarantieR] WHEN [R].[SoortId] = 2 THEN [D].[OOLGarantieN] ELSE NULL END ELSE [135] END AS [135],  [37],  STUFF((SELECT '|' + [XVT].[NaamLang] FROM dbo.[OOLVelden] [XOV] LEFT JOIN [Basis].dbo.[AutomateVeldWaardenTranslated] [XVT] ON [XVT].[VeldId] = [XOV].[VeldId] AND [XVT].[LanguageId] = 5 AND [XVT].[Waarde] = [XOV].[Waarde] WHERE [XOV].[RecordId] = [R].[RecordId] AND [XOV].[VeldId] = 17 ORDER BY [XOV].[OrderId] FOR XML PATH('')), 1, 1, '') AS [17],  CASE WHEN [101] = 'I' THEN 'Intercooler' WHEN [101] = 'N' THEN 'Non' WHEN ISNULL([101], '') = '' THEN NULL ELSE [101] END AS [101],  TRY_CAST([18] AS INT) AS [18],  CASE WHEN [XChange] = 1 THEN ISNULL([R].[Motorcodes] + '|', '') + ISNULL((SELECT TOP 1 [CT].[Code] FROM dbo.[OOLXchg] [X] LEFT JOIN dbo.[DebtorXchgEnginecode] [XP] ON [XP].[CollectionId] = [X].[CollectionId] LEFT JOIN dbo.[CodeEngine] [CT] ON [CT].[Id] = [XP].[CodeId] WHERE [X].[RecordId] = [R].[RecordId] AND [CT].[Code] LIKE 'HR10DE%'), 'HR10DE') ELSE [R].[Motorcodes] END AS [108],  CASE WHEN [29] = 'ST' THEN 'Acier  / Tôle' WHEN [29] = 'LM' THEN 'Alliage léger' WHEN [29] = 'KN' THEN 'Matière plastique / synthétique' WHEN ISNULL([29], '') = '' THEN NULL ELSE [29] END AS [29],  CASE WHEN [132] = 'N' THEN 'Non ' WHEN [132] = 'J' THEN 'Oui ' WHEN ISNULL([132], '') = '' THEN NULL ELSE [132] END AS [132],  [25],  [R].[Artikelnummers] AS [21],  ISNULL([D].[Bedrijfsnaam], '') + '|' + ISNULL([D].[BedrijfKort], '') AS [Leverancier],  [R].[BijzonderheidInet],  [R].[WarrantyText] AS [GarantieToelichting],  [R].[Shop],  [R].[Created],  [xShippingState] AS [ShippingState],  [R].[WarrantyConstruction] AS [WarrantyInstallation],  [R].[DeelId],  [R].[DebiteurRecordId],  [R].[AldocModelCode],  [R].[AldocTypeId],  [xPR],  [xPF],  [xPD],  [xPS],  [xPE],  [xPI],  [xTP],  [xTT],  [xShopState],  [xShippingState],  [XChange],  [R].[SModelId],  [R].[ModelId],  [R].[PrijsSoort],  [R].[PriceShop]     FROM (SELECT  *     FROM (SELECT  [R].*,  [OV].[VeldId],  [OV].[Waarde]     FROM (SELECT  [R].[SortId],  [R].[RecordId],  [R].[DebiteurId],  [R].[ExternalId],  [R].[ReferenceId],  [R].[Youtube],  [R].[Fotos],  [R].[SoortId],  [R].[PrijsTonen],  [R].[Prijs],  [R].[Bouwjaar],  [R].[AutoRecordId],  [R].[Motorcodes],  [R].[Artikelnummers],  [R].[BijzonderheidInet],  [R].[WarrantyText],  [R].[Shop],  [R].[Created],  [R].[WarrantyConstruction],  [R].[DeelId],  [R].[DebiteurRecordId],  [R].[AldocModelCode],  [R].[AldocTypeId],  [R].[DebiteurLocatieId],  [R].[SModelId],  [R].[ModelId],  [R].[PrijsSoort],  [R].[PriceShop],  [xPR],  [xPF],  [xPD],  [xPS],  [xPE],  [xPI],  [xTP],  [xTT],  [xShopState],  [xShippingState],  [XChange]     FROM @RM [RM]  LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) On [R].[RecordId] = [RM].[RecordId]) AS [R]  LEFT JOIN dbo.[OOLVelden] [OV] WITH (INDEX(PK_OOLVelden)) ON [OV].[RecordId] = [R].[RecordId] AND [OV].[VeldId] IN (184, 190, 135, 37, 101, 18, 29, 132, 25)) [R]  PIVOT (MAX([Waarde]) FOR [VeldId] IN ([184], [190], [135], [37], [101], [18], [29], [132], [25])) AS [R]) [R]  LEFT JOIN [Basis].dbo.[AutomateModellenTranslated] [MOT] ON [MOT].[ModelId] = [R].[ModelID] AND [MOT].[LanguageId] = 5 AND [MOT].[Synoniem] = 0   LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [MET] ON [MET].[MerkId] = [MOT].[MerkId] AND [MET].[LanguageId] = 5   LEFT JOIN dbo.[DebiteurLocatieData] [D] ON [D].[DebiteurId] = [R].[DebiteurId] AND [D].[LocatieId] = ISNULL([R].[DebiteurLocatieId], 1)) [R]  ORDER BY [SortId] DESC,  + CASE WHEN [R].[xShopState] = 1 THEN 1 ELSE 0 END DESC, [RowId] ASC     OFFSET 0 ROWS FETCH NEXT 10 ROWS ONLY) [R]; WITH [R] AS (SELECT  [R].[RecordId],  [xPR],  [xPF],  [xPD],  [xPS],  [xPE],  [xPI],  [xTP],  [xTT],  [xShopState],  [xShippingState],  [XChange],  [Bouwjaar],  [xPI] AS [Prijs],  [ModelId]     FROM @RM [RM]  LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) On [R].[RecordId] = [RM].[RecordId]   LEFT JOIN dbo.[DebiteurLocatieData] [D] ON [D].[DebiteurId] = [R].[DebiteurId] AND [D].[LocatieId] = ISNULL([R].[DebiteurLocatieId], 1)) SELECT  [VeldId],  [Waarde] AS [Value],  NULL AS [ValueMIN],  NULL AS [ValueMAX]     FROM dbo.[OOLVelden] [OV]     WHERE [RecordId] IN (SELECT [R].[RecordId] FROM [R]) AND [VeldId] IN (184,190,37,17,101,29,132,25)  GROUP BY [VeldId], [Waarde] UNION SELECT  [VeldId],  NULL AS [Value],  MIN([Waarde]) AS [ValueMIN],  MAX([Waarde]) AS [ValueMAX]     FROM (SELECT  [VeldId],  TRY_CAST([Waarde] AS INT) AS [Waarde]     FROM dbo.[OOLVelden] [OV]     WHERE [RecordId] IN (SELECT [R].[RecordId] FROM [R]) AND [VeldId] IN (135,18)) [OV]  GROUP BY [VeldId] UNION SELECT  12,  NULL AS [Value],  MIN([R].[Bouwjaar]) AS [ValueMIN],  MAX([R].[Bouwjaar]) AS [ValueMAX]     FROM [R] UNION SELECT  14,  NULL AS [Value],  MIN(CAST([Prijs] AS INT)) AS [ValueMIN],  MAX(CAST([Prijs] AS INT)) AS [ValueMAX]     FROM [R] UNION SELECT  1,  [ModelId],  NULL AS [ValueMIN],  NULL AS [ValueMAX]     FROM [R] ORDER BY 1, 2; SELECT  DISTINCT  [R].[DebiteurId]     FROM (SELECT  DISTINCT  [DebiteurId]     FROM dbo.[OOLInternet] [R] WITH (NOLOCK)     WHERE [R].[RecordId] In (Select [RM].[RecordId] FROM @RM [RM])) [R]" }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 3, "SizeMax": 150, "SetMax": false, "GetIndexMax": 1, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": { "19763100": 1, "19763067": 2, "21176082": 1 }, "Sort": "", "SortDirection": "Ascending", "CountryName": "France", "CountryId": 250, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }
{ "Data": { "SessionId": 6, "Match": null, "Timestamp": "2026-08-14T22:55:27.719629+02:00", "UrlRawCurrent": "/stock-de-pieces-auto/entrepot/code-moteur/a13/piece/filtre-huile/", "UrlAbsoluteCurrent": "/url_voorraad/stock-de-pieces-auto/entrepot/code-moteur/a13/piece/filtre-huile/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/stock-de-pieces-auto/entrepot/code-moteur/a13/piece/filtre-huile/" ], "UrlSet": false, "Query": "SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; DECLARE @RM TABLE ([RecordId] BIGINT NOT NULL, [xPR] DECIMAL(9, 2), [xPS] BIT NOT NULL, [xPD] INT, [xTP] DECIMAL(5, 2) NOT NULL, [xTT] INT NOT NULL, [xShopState] INT, [xShippingState] TINYINT, [Match] INT, [XChange] BIT, [xPF] DECIMAL(9, 2), [xPE] DECIMAL(9, 2), [xPI] DECIMAL(9, 2) PRIMARY KEY CLUSTERED (RecordId ASC)) INSERT INTO @RM ([RecordId], [xPR], [xPS], [xPD], [xTP], [xTT], [xShopState], [xShippingState], [Match], [XChange], [xPF], [xPE], [xPI]) SELECT  *,  CASE WHEN [xPF] IS NOT NULL THEN CASE WHEN [xTT] = 1 THEN CAST([xPF] / ((100 + [xTP]) / 100) AS DECIMAL(9, 2)) ELSE [xPF] END END AS [xPE],  CASE WHEN [xPF] IS NOT NULL THEN CASE WHEN [xTT] = 0 THEN CAST([xPF] * ((100 + [xTP]) / 100) AS DECIMAL(9, 2)) ELSE [xPF] END END AS [xPI]     FROM (SELECT  *,  CASE WHEN [xPS] = 1 AND [xPR] IS NOT NULL THEN CAST(CASE WHEN [xPD] IS NOT NULL THEN (CAST((100 - ISNULL([xPD], 0)) AS DECIMAL) / 100) * [xPR] ELSE [xPR] END AS DECIMAL(10, 2)) END AS [xPF]     FROM (SELECT  [R].[RecordId],  (ISNULL(CASE WHEN [R].[Shop] = 1 THEN ISNULL([R].[PriceShop],ROUND ( [R].[Prijs] * ((100 + ISNULL([D].[ShopPricePercentage], 0)) / 100), 2)) END, [R].[Prijs])) AS [xPR],  CASE WHEN [R].[PrijsTonen] IS NOT NULL THEN [R].[PrijsTonen] WHEN [R].[SoortId] = 0 THEN [D].[OOLPrijzenG] WHEN [R].[SoortId] = 1 THEN [D].[OOLPrijzenR] WHEN [R].[SoortId] = 2 THEN [D].[OOLPrijzenN] ELSE 1 END AS [xPS],  (SELECT [T].[Discount] FROM dbo.[AutomatePartDiscount] [T] WHERE [T].[SupplierId] = [R].[DebiteurId] AND [T].[StateId] = [R].[SoortId] AND [T].[PartAutomateId] = [R].[DeelId]) AS [xPD],  ISNULL([VT].[General], 21) AS [xTP],  CASE WHEN [R].[SoortId] = 0 AND NOT ISNULL([R].[PrijsSoort], 0) = 1 THEN 2 WHEN [D].[OOLPrijzenExcl] = 0 THEN 1 ELSE 0 END AS [xTT],  CASE WHEN NOT [D].[ShopActive] = 1 THEN 11 ELSE dbo.fnGetOOLShopStateQuick([R].[RecordId], 1, 5, xShippingState) END AS [xShopState],  xShippingState AS [xShippingState],  NULL AS [Match],  CASE WHEN [RM].[xPM] = 4 THEN 1 END AS [XChange]     FROM (SELECT  [RM].[RecordId],  MAX([RM].[xPM]) AS [xPM]     FROM (SELECT  [R].[RecordId],  10 AS [xPM]     FROM dbo.[OOLInternet] [R] WITH (NOLOCK)     WHERE [R].[DeelId] IN ('7943B') AND [R].[RecordId] IN (SELECT  [OT].[RecordId]     FROM dbo.[OOLEnginecodes] [OT] WITH (NOLOCK)     WHERE [OT].[CodeId] IN (SELECT  [CT].[Id]     FROM dbo.[CodeEngine] [CT]     WHERE [CT].[Code] LIKE 'A13%')) AND [R].[DebiteurId] IN (100001, 100003, 100007, 100008, 100012, 100019, 100022, 100029, 100034, 100044, 100045, 100056, 100062, 100081, 100085, 100086, 100107, 100109, 100110, 100116, 100119, 100120, 100121, 100124, 100129, 100131, 100139, 100141, 100145, 100152, 100153, 100155, 100159, 100160, 100161, 100177, 100178, 100180, 100181, 100184, 100187, 100189, 100191, 100194, 100197, 100208, 100209, 100216, 100219, 100232, 100238, 100248, 100249, 100251, 100255, 100261, 100278, 100282, 100283, 100284, 100291, 100294, 100305, 100307, 100315, 100324, 100327, 100328, 100336, 100345, 100353, 100358, 100359, 100378, 100385, 100386, 100414, 100417, 100426, 100433, 100457, 100471, 100473, 100480, 100493, 100509, 100512, 100515, 100617, 100727, 100771, 100803, 100805, 100883, 100886, 100997, 101112, 101113, 101114, 101115, 101117, 101118, 101119, 101120, 101121, 101122, 101175, 101185, 101186, 101205, 101209, 101221, 101222, 101232, 101234, 101237, 101238, 101239, 101240, 101249, 101255, 101257, 101262, 101268, 101269, 101271, 101273, 101275, 101276, 101277, 101279, 101280, 101285, 101293, 101300, 101301, 101302, 101304, 101305, 101309, 101311, 101313, 101314, 101315, 101317, 101319, 101321, 101328, 101331, 101332, 101334, 101335, 101337, 101340, 101342, 101343, 101344, 101345, 101348, 101349, 101352, 101353, 101355, 101356, 101361, 101362, 101363, 101365, 101366, 101368, 101369, 101370, 101371, 101374, 101385, 101387, 101390, 101391, 101394, 101395, 101396, 101397, 101398, 101400, 101401, 101403, 101405, 101406, 101407, 101408, 101412, 101413, 101414, 101415, 101417, 101418, 101420, 101422, 101423, 101424, 101425, 101429, 101432, 101433, 101434, 101436, 101438, 101441, 101442, 111111, 123456, 123457, 123462) UNION SELECT  [R].[RecordId],  4 AS [xPM]     FROM dbo.[OOLInternet] [R] WITH (NOLOCK)     WHERE [R].[DebiteurId] IN (100001, 100003, 100007, 100008, 100012, 100019, 100022, 100029, 100034, 100044, 100045, 100056, 100062, 100081, 100085, 100086, 100107, 100109, 100110, 100116, 100119, 100120, 100121, 100124, 100129, 100131, 100139, 100141, 100145, 100152, 100153, 100155, 100159, 100160, 100161, 100177, 100178, 100180, 100181, 100184, 100187, 100189, 100191, 100194, 100197, 100208, 100209, 100216, 100219, 100232, 100238, 100248, 100249, 100251, 100255, 100261, 100278, 100282, 100283, 100284, 100291, 100294, 100305, 100307, 100315, 100324, 100327, 100328, 100336, 100345, 100353, 100358, 100359, 100378, 100385, 100386, 100414, 100417, 100426, 100433, 100457, 100471, 100473, 100480, 100493, 100509, 100512, 100515, 100617, 100727, 100771, 100803, 100805, 100883, 100886, 100997, 101112, 101113, 101114, 101115, 101117, 101118, 101119, 101120, 101121, 101122, 101175, 101185, 101186, 101205, 101209, 101221, 101222, 101232, 101234, 101237, 101238, 101239, 101240, 101249, 101255, 101257, 101262, 101268, 101269, 101271, 101273, 101275, 101276, 101277, 101279, 101280, 101285, 101293, 101300, 101301, 101302, 101304, 101305, 101309, 101311, 101313, 101314, 101315, 101317, 101319, 101321, 101328, 101331, 101332, 101334, 101335, 101337, 101340, 101342, 101343, 101344, 101345, 101348, 101349, 101352, 101353, 101355, 101356, 101361, 101362, 101363, 101365, 101366, 101368, 101369, 101370, 101371, 101374, 101385, 101387, 101390, 101391, 101394, 101395, 101396, 101397, 101398, 101400, 101401, 101403, 101405, 101406, 101407, 101408, 101412, 101413, 101414, 101415, 101417, 101418, 101420, 101422, 101423, 101424, 101425, 101429, 101432, 101433, 101434, 101436, 101438, 101441, 101442, 111111, 123456, 123457, 123462) AND [R].[DeelId] = '7943B' AND ([R].[RecordId] IN (SELECT  [OX].[RecordId]     FROM dbo.[OOLXchg] [OX] WITH (NOLOCK)     WHERE [OX].[CollectionId] IN (SELECT  [DX].[CollectionId]     FROM dbo.[DebtorXchgEnginecode] [DX]     WHERE [DX].[CodeId] IN (SELECT  [CT].[Id]     FROM dbo.[CodeEngine] [CT]     WHERE [CT].[Code] LIKE 'A13%'))))) [RM]  GROUP BY [RM].[RecordId]) [RM]  LEFT JOIN dbo.[OOLInternet] [R] ON [R].[RecordId] = [RM].[RecordId]   LEFT JOIN dbo.[DebiteurLocatieData] [D] ON [D].[DebiteurId] = [R].[DebiteurId] AND [D].[LocatieId] = ISNULL([R].[DebiteurLocatieId], 1)   LEFT JOIN [Basis].dbo.[CountryVatRate] [VT] ON [VT].[CountryId] = [D].[LandId] AND [VT].[Active] = 1  OUTER APPLY (SELECT dbo.fnGetOOLShippingStateExtended([R].[DebiteurId], [R].[DebiteurLocatieId], [R].[DeelNr], 250, NULL) [xShippingState]) [SHS]) [R]) [R]; SELECT  [R].[DeelId],  [R].[SoortId],  COUNT(*) AS [Aantal]     FROM (SELECT  [R].[DeelId],  [R].[SoortId],  [R].[RecordId],  [R].[DebiteurId],  [xPR],  [xPF],  [xPD],  [xPS],  [xPE],  [xPI],  [xTP],  [xTT],  [xShopState],  [xShippingState],  [XChange]     FROM @RM [RM]  LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) On [R].[RecordId] = [RM].[RecordId]) [R]  GROUP BY [R].[DeelId], [R].[SoortId]; SELECT  [R].*,  [xTP] AS [PrijsTaxPerc],  [xPD] AS [PrijsKorting],  (SELECT [VIBM].[Bouwmaand] FROM dbo.[VOLInternet] [VIBM] WHERE [VIBM].[RecordId] = [R].[AutoRecordId]) AS [ConstructionMonth],  [xPE] AS [PrijsAlt],  STUFF((SELECT '|' + CAST([V].[VeldId] AS VARCHAR(10)) + '^' + [V].[Waarde] FROM (SELECT [V].[VeldId], [V].[Waarde], [V].[OrderId] FROM dbo.[OOLVelden] [V] WHERE [V].[RecordId] = [R].[RecordId] AND [V].[VeldId] IN (26, 125, 230, 231)) [V] ORDER BY [V].[VeldId], [V].[OrderId] FOR XML PATH('')), 1, 1, '') AS [Automate2Velden],  CASE WHEN [R].[GarantieToelichting] IS NOT NULL THEN (SELECT TOP 1 [TV].[Translation] FROM [Storage].dbo.[TranslateTextResult] [TV] WHERE [TV].[TextId] = (SELECT [TR].[TextId] FROM [Storage].dbo.[TranslateTextRecord] [TR] WHERE [TR].[RecordId] = [R].[RecordId] AND [TR].[TextTypeId] = 2) AND [TV].[LanguageId] IN (5, 2, 1) ORDER BY [TV].[LanguageId] DESC) END AS [GarantieTranslated],  CASE WHEN [R].[BijzonderheidInet] IS NOT NULL THEN (SELECT TOP 1 [TV].[Translation] FROM [Storage].dbo.[TranslateTextResult] [TV] WHERE [TV].[TextId] = (SELECT [TR].[TextId] FROM [Storage].dbo.[TranslateTextRecord] [TR] WHERE [TR].[RecordId] = [R].[RecordId] AND [TR].[TextTypeId] = 1) AND [TV].[LanguageId] IN (5, 2, 1) ORDER BY [TV].[LanguageId] DESC) END AS [BijzonderheidInetTranslated],  [xShopState] AS [ShopState],  CASE WHEN [R].[AldocModelCode] IS NOT NULL THEN (SELECT ISNULL((STUFF((SELECT '^' + [T3].[NaamInternet] + '~' + [T2].[NaamInternet] FROM [Basis].dbo.[AutomateModellenTranslated] [T2] LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [T3] ON [T3].[MerkId] = [T2].[MerkId] AND [T3].[LanguageId] = 5 WHERE [T2].[ModelId] IN (SELECT [T].[ModelId] FROM [Basis].dbo.[AldocModelKoppelingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode]) AND [T2].[LanguageId] = 5 AND [T2].[Synoniem] = 0 FOR XML PATH('')), 1, 1,'')), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocModelOmschrijvingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode] AND [T].[LanguageId] = 5), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocTypeOmschrijvingen] [T] WHERE [T].[TypeId] = [R].[AldocTypeId] AND [T].[LanguageId] = 5), '')) END AS [AldocDescription]     FROM (SELECT  [R].*,  ROW_NUMBER() OVER (PARTITION BY R.SortId, R.DebiteurId ORDER BY SortId + CASE WHEN [R].[xShopState] = 1 THEN 1 ELSE 0 END DESC, CASE WHEN [12] IS NULL THEN 1 END ASC, [12] DESC, CASE WHEN [14] IS NULL THEN 1 END ASC, [14] ASC, RIGHT([RecordId], 2)%(DATEPART(WEEKDAY, GETDATE()) + 3) ASC, [RecordId] ASC) AS [RowId]     FROM (SELECT  [R].[SortId],  [R].[RecordId],  [R].[DebiteurId],  [R].[ExternalId],  [R].[ReferenceId],  [R].[Youtube] AS [181],  [184],  [190],  ISNULL([R].[Fotos], (SELECT 'G^' + CAST([G].[GroupId] AS VARCHAR(20)) + '^' + [G].[Images] FROM dbo.[OOLFotoGroups] [G] WHERE [G].[DebiteurId] = [R].[DebiteurId] AND [G].[SModelId] = [R].[SModelId] AND [G].[DeelId] = [R].[DeelId])) AS [58],  [R].[SoortId] AS [StateId],  CASE WHEN SUBSTRING([R].[ModelId], 1, 3) IN ('00X', '0XX') THEN NULL ELSE [MET].[NaamInternet] + '^' + [MOT].[NaamInternet] END AS [MakeModel],  [xPS] AS [PrijsTonen],  CASE WHEN [xTT] IN (0, 1) THEN 1 ELSE [xTT] END AS [PrijsTaxType],  [xPI] AS [14],  [R].[Bouwjaar] AS [12],  [R].[AutoRecordId],  CASE WHEN [135] IS NULL THEN CASE WHEN [R].[SoortId] = 0 THEN [D].[OOLGarantieG] WHEN [R].[SoortId] = 1 THEN [D].[OOLGarantieR] WHEN [R].[SoortId] = 2 THEN [D].[OOLGarantieN] ELSE NULL END ELSE [135] END AS [135],  [37],  STUFF((SELECT '|' + [XVT].[NaamLang] FROM dbo.[OOLVelden] [XOV] LEFT JOIN [Basis].dbo.[AutomateVeldWaardenTranslated] [XVT] ON [XVT].[VeldId] = [XOV].[VeldId] AND [XVT].[LanguageId] = 5 AND [XVT].[Waarde] = [XOV].[Waarde] WHERE [XOV].[RecordId] = [R].[RecordId] AND [XOV].[VeldId] = 17 ORDER BY [XOV].[OrderId] FOR XML PATH('')), 1, 1, '') AS [17],  CASE WHEN [XChange] = 1 THEN ISNULL([R].[Motorcodes] + '|', '') + ISNULL((SELECT TOP 1 [CT].[Code] FROM dbo.[OOLXchg] [X] LEFT JOIN dbo.[DebtorXchgEnginecode] [XP] ON [XP].[CollectionId] = [X].[CollectionId] LEFT JOIN dbo.[CodeEngine] [CT] ON [CT].[Id] = [XP].[CodeId] WHERE [X].[RecordId] = [R].[RecordId] AND [CT].[Code] LIKE 'A13%'), 'A13') ELSE [R].[Motorcodes] END AS [108],  CASE WHEN [101] = 'I' THEN 'Intercooler' WHEN [101] = 'N' THEN 'Non' WHEN ISNULL([101], '') = '' THEN NULL ELSE [101] END AS [101],  TRY_CAST([18] AS INT) AS [18],  [V19].[NaamLang] AS [19],  [R].[Versnellingsbakcodes] AS [114],  (SELECT TOP 1 [XOV].[Waarde] FROM dbo.[OOLVelden] [XOV] WHERE [XOV].[RecordId] = [R].[RecordId] AND [XOV].[VeldId] = 241 ORDER BY [XOV].[OrderId]) AS [241],  TRY_CAST([26] AS INT) AS [26],  [25],  [R].[Artikelnummers] AS [21],  ISNULL([D].[Bedrijfsnaam], '') + '|' + ISNULL([D].[BedrijfKort], '') AS [Leverancier],  [R].[BijzonderheidInet],  [R].[WarrantyText] AS [GarantieToelichting],  [R].[Shop],  [R].[Created],  [xShippingState] AS [ShippingState],  [R].[WarrantyConstruction] AS [WarrantyInstallation],  [R].[DeelId],  [R].[DebiteurRecordId],  [R].[AldocModelCode],  [R].[AldocTypeId],  [xPR],  [xPF],  [xPD],  [xPS],  [xPE],  [xPI],  [xTP],  [xTT],  [xShopState],  [xShippingState],  [XChange],  [R].[SModelId],  [R].[ModelId],  [R].[PrijsSoort],  [R].[PriceShop]     FROM (SELECT  *     FROM (SELECT  [R].*,  [OV].[VeldId],  [OV].[Waarde]     FROM (SELECT  [R].[SortId],  [R].[RecordId],  [R].[DebiteurId],  [R].[ExternalId],  [R].[ReferenceId],  [R].[Youtube],  [R].[Fotos],  [R].[SoortId],  [R].[PrijsTonen],  [R].[Prijs],  [R].[Bouwjaar],  [R].[AutoRecordId],  [R].[Motorcodes],  [R].[Versnellingsbakcodes],  [R].[Artikelnummers],  [R].[BijzonderheidInet],  [R].[WarrantyText],  [R].[Shop],  [R].[Created],  [R].[WarrantyConstruction],  [R].[DeelId],  [R].[DebiteurRecordId],  [R].[AldocModelCode],  [R].[AldocTypeId],  [R].[DebiteurLocatieId],  [R].[SModelId],  [R].[ModelId],  [R].[PrijsSoort],  [R].[PriceShop],  [xPR],  [xPF],  [xPD],  [xPS],  [xPE],  [xPI],  [xTP],  [xTT],  [xShopState],  [xShippingState],  [XChange]     FROM @RM [RM]  LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) On [R].[RecordId] = [RM].[RecordId]) AS [R]  LEFT JOIN dbo.[OOLVelden] [OV] WITH (INDEX(PK_OOLVelden)) ON [OV].[RecordId] = [R].[RecordId] AND [OV].[VeldId] IN (184, 190, 135, 37, 101, 18, 19, 241, 26, 25)) [R]  PIVOT (MAX([Waarde]) FOR [VeldId] IN ([184], [190], [135], [37], [101], [18], [19], [241], [26], [25])) AS [R]) [R]  LEFT JOIN [Basis].dbo.[AutomateVeldWaardenTranslated] [V19] ON [V19].[VeldId] = 19 AND [V19].[Waarde] = [19] AND [V19].[LanguageId] = 5   LEFT JOIN [Basis].dbo.[AutomateModellenTranslated] [MOT] ON [MOT].[ModelId] = [R].[ModelID] AND [MOT].[LanguageId] = 5 AND [MOT].[Synoniem] = 0   LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [MET] ON [MET].[MerkId] = [MOT].[MerkId] AND [MET].[LanguageId] = 5   LEFT JOIN dbo.[DebiteurLocatieData] [D] ON [D].[DebiteurId] = [R].[DebiteurId] AND [D].[LocatieId] = ISNULL([R].[DebiteurLocatieId], 1)) [R]  ORDER BY [SortId] DESC,  + CASE WHEN [R].[xShopState] = 1 THEN 1 ELSE 0 END DESC, [RowId] ASC     OFFSET 0 ROWS FETCH NEXT 10 ROWS ONLY) [R]; WITH [R] AS (SELECT  [R].[RecordId],  [xPR],  [xPF],  [xPD],  [xPS],  [xPE],  [xPI],  [xTP],  [xTT],  [xShopState],  [xShippingState],  [XChange],  [Bouwjaar],  [xPI] AS [Prijs],  [ModelId]     FROM @RM [RM]  LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) On [R].[RecordId] = [RM].[RecordId]   LEFT JOIN dbo.[DebiteurLocatieData] [D] ON [D].[DebiteurId] = [R].[DebiteurId] AND [D].[LocatieId] = ISNULL([R].[DebiteurLocatieId], 1)) SELECT  [VeldId],  [Waarde] AS [Value],  NULL AS [ValueMIN],  NULL AS [ValueMAX]     FROM dbo.[OOLVelden] [OV]     WHERE [RecordId] IN (SELECT [R].[RecordId] FROM [R]) AND [VeldId] IN (184,190,37,17,101,19,241,25)  GROUP BY [VeldId], [Waarde] UNION SELECT  [VeldId],  NULL AS [Value],  MIN([Waarde]) AS [ValueMIN],  MAX([Waarde]) AS [ValueMAX]     FROM (SELECT  [VeldId],  TRY_CAST([Waarde] AS INT) AS [Waarde]     FROM dbo.[OOLVelden] [OV]     WHERE [RecordId] IN (SELECT [R].[RecordId] FROM [R]) AND [VeldId] IN (135,18,26)) [OV]  GROUP BY [VeldId] UNION SELECT  12,  NULL AS [Value],  MIN([R].[Bouwjaar]) AS [ValueMIN],  MAX([R].[Bouwjaar]) AS [ValueMAX]     FROM [R] UNION SELECT  14,  NULL AS [Value],  MIN(CAST([Prijs] AS INT)) AS [ValueMIN],  MAX(CAST([Prijs] AS INT)) AS [ValueMAX]     FROM [R] UNION SELECT  1,  [ModelId],  NULL AS [ValueMIN],  NULL AS [ValueMAX]     FROM [R] ORDER BY 1, 2; SELECT  DISTINCT  [R].[DebiteurId]     FROM (SELECT  DISTINCT  [DebiteurId]     FROM dbo.[OOLInternet] [R] WITH (NOLOCK)     WHERE [R].[RecordId] In (Select [RM].[RecordId] FROM @RM [RM])) [R]" }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 9, "SizeMax": 150, "SetMax": false, "GetIndexMax": 1, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": { "17147822": 1, "14038777": 1, "17722432": 1, "11418441": 1, "18130709": 2, "19052605": 3, "19712404": 1, "17620154": 1, "19300604": 1 }, "Sort": "", "SortDirection": "Ascending", "CountryName": "France", "CountryId": 250, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }
{ "Data": { "SessionId": 7, "Match": null, "Timestamp": "2026-08-14T22:55:29.1727529+02:00", "UrlRawCurrent": "/stock-de-pieces-auto/entrepot/code-moteur/ah/piece/capteur-nox/", "UrlAbsoluteCurrent": "/url_voorraad/stock-de-pieces-auto/entrepot/code-moteur/ah/piece/capteur-nox/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/stock-de-pieces-auto/entrepot/code-moteur/ah/piece/capteur-nox/" ], "UrlSet": false, "Query": "SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; DECLARE @RM TABLE ([RecordId] BIGINT NOT NULL, [xPR] DECIMAL(9, 2), [xPS] BIT NOT NULL, [xPD] INT, [xTP] DECIMAL(5, 2) NOT NULL, [xTT] INT NOT NULL, [xShopState] INT, [xShippingState] TINYINT, [Match] INT, [XChange] BIT, [xPF] DECIMAL(9, 2), [xPE] DECIMAL(9, 2), [xPI] DECIMAL(9, 2) PRIMARY KEY CLUSTERED (RecordId ASC)) INSERT INTO @RM ([RecordId], [xPR], [xPS], [xPD], [xTP], [xTT], [xShopState], [xShippingState], [Match], [XChange], [xPF], [xPE], [xPI]) SELECT  *,  CASE WHEN [xPF] IS NOT NULL THEN CASE WHEN [xTT] = 1 THEN CAST([xPF] / ((100 + [xTP]) / 100) AS DECIMAL(9, 2)) ELSE [xPF] END END AS [xPE],  CASE WHEN [xPF] IS NOT NULL THEN CASE WHEN [xTT] = 0 THEN CAST([xPF] * ((100 + [xTP]) / 100) AS DECIMAL(9, 2)) ELSE [xPF] END END AS [xPI]     FROM (SELECT  *,  CASE WHEN [xPS] = 1 AND [xPR] IS NOT NULL THEN CAST(CASE WHEN [xPD] IS NOT NULL THEN (CAST((100 - ISNULL([xPD], 0)) AS DECIMAL) / 100) * [xPR] ELSE [xPR] END AS DECIMAL(10, 2)) END AS [xPF]     FROM (SELECT  [R].[RecordId],  (ISNULL(CASE WHEN [R].[Shop] = 1 THEN ISNULL([R].[PriceShop],ROUND ( [R].[Prijs] * ((100 + ISNULL([D].[ShopPricePercentage], 0)) / 100), 2)) END, [R].[Prijs])) AS [xPR],  CASE WHEN [R].[PrijsTonen] IS NOT NULL THEN [R].[PrijsTonen] WHEN [R].[SoortId] = 0 THEN [D].[OOLPrijzenG] WHEN [R].[SoortId] = 1 THEN [D].[OOLPrijzenR] WHEN [R].[SoortId] = 2 THEN [D].[OOLPrijzenN] ELSE 1 END AS [xPS],  (SELECT [T].[Discount] FROM dbo.[AutomatePartDiscount] [T] WHERE [T].[SupplierId] = [R].[DebiteurId] AND [T].[StateId] = [R].[SoortId] AND [T].[PartAutomateId] = [R].[DeelId]) AS [xPD],  ISNULL([VT].[General], 21) AS [xTP],  CASE WHEN [R].[SoortId] = 0 AND NOT ISNULL([R].[PrijsSoort], 0) = 1 THEN 2 WHEN [D].[OOLPrijzenExcl] = 0 THEN 1 ELSE 0 END AS [xTT],  CASE WHEN NOT [D].[ShopActive] = 1 THEN 11 ELSE dbo.fnGetOOLShopStateQuick([R].[RecordId], 1, 5, xShippingState) END AS [xShopState],  xShippingState AS [xShippingState],  NULL AS [Match],  CASE WHEN [RM].[xPM] = 4 THEN 1 END AS [XChange]     FROM (SELECT  [RM].[RecordId],  MAX([RM].[xPM]) AS [xPM]     FROM (SELECT  [R].[RecordId],  10 AS [xPM]     FROM dbo.[OOLInternet] [R] WITH (NOLOCK)     WHERE [R].[DeelId] IN ('8751X') AND [R].[RecordId] IN (SELECT  [OT].[RecordId]     FROM dbo.[OOLEnginecodes] [OT] WITH (NOLOCK)     WHERE [OT].[CodeId] IN (SELECT  [CT].[Id]     FROM dbo.[CodeEngine] [CT]     WHERE [CT].[Code] LIKE 'AH%')) AND [R].[DebiteurId] IN (100001, 100003, 100007, 100008, 100012, 100019, 100022, 100029, 100034, 100044, 100045, 100056, 100062, 100081, 100085, 100086, 100107, 100109, 100110, 100116, 100119, 100120, 100121, 100124, 100129, 100131, 100139, 100141, 100145, 100152, 100153, 100155, 100159, 100160, 100161, 100177, 100178, 100180, 100181, 100184, 100187, 100189, 100191, 100194, 100197, 100208, 100209, 100216, 100219, 100232, 100238, 100248, 100249, 100251, 100255, 100261, 100278, 100282, 100283, 100284, 100291, 100294, 100305, 100307, 100315, 100324, 100327, 100328, 100336, 100345, 100353, 100358, 100359, 100378, 100385, 100386, 100414, 100417, 100426, 100433, 100457, 100471, 100473, 100480, 100493, 100509, 100512, 100515, 100617, 100727, 100771, 100803, 100805, 100883, 100886, 100997, 101112, 101113, 101114, 101115, 101117, 101118, 101119, 101120, 101121, 101122, 101175, 101185, 101186, 101205, 101209, 101221, 101222, 101232, 101234, 101237, 101238, 101239, 101240, 101249, 101255, 101257, 101262, 101268, 101269, 101271, 101273, 101275, 101276, 101277, 101279, 101280, 101285, 101293, 101300, 101301, 101302, 101304, 101305, 101309, 101311, 101313, 101314, 101315, 101317, 101319, 101321, 101328, 101331, 101332, 101334, 101335, 101337, 101340, 101342, 101343, 101344, 101345, 101348, 101349, 101352, 101353, 101355, 101356, 101361, 101362, 101363, 101365, 101366, 101368, 101369, 101370, 101371, 101374, 101385, 101387, 101390, 101391, 101394, 101395, 101396, 101397, 101398, 101400, 101401, 101403, 101405, 101406, 101407, 101408, 101412, 101413, 101414, 101415, 101417, 101418, 101420, 101422, 101423, 101424, 101425, 101429, 101432, 101433, 101434, 101436, 101438, 101441, 101442, 111111, 123456, 123457, 123462) UNION SELECT  [R].[RecordId],  4 AS [xPM]     FROM dbo.[OOLInternet] [R] WITH (NOLOCK)     WHERE [R].[DebiteurId] IN (100001, 100003, 100007, 100008, 100012, 100019, 100022, 100029, 100034, 100044, 100045, 100056, 100062, 100081, 100085, 100086, 100107, 100109, 100110, 100116, 100119, 100120, 100121, 100124, 100129, 100131, 100139, 100141, 100145, 100152, 100153, 100155, 100159, 100160, 100161, 100177, 100178, 100180, 100181, 100184, 100187, 100189, 100191, 100194, 100197, 100208, 100209, 100216, 100219, 100232, 100238, 100248, 100249, 100251, 100255, 100261, 100278, 100282, 100283, 100284, 100291, 100294, 100305, 100307, 100315, 100324, 100327, 100328, 100336, 100345, 100353, 100358, 100359, 100378, 100385, 100386, 100414, 100417, 100426, 100433, 100457, 100471, 100473, 100480, 100493, 100509, 100512, 100515, 100617, 100727, 100771, 100803, 100805, 100883, 100886, 100997, 101112, 101113, 101114, 101115, 101117, 101118, 101119, 101120, 101121, 101122, 101175, 101185, 101186, 101205, 101209, 101221, 101222, 101232, 101234, 101237, 101238, 101239, 101240, 101249, 101255, 101257, 101262, 101268, 101269, 101271, 101273, 101275, 101276, 101277, 101279, 101280, 101285, 101293, 101300, 101301, 101302, 101304, 101305, 101309, 101311, 101313, 101314, 101315, 101317, 101319, 101321, 101328, 101331, 101332, 101334, 101335, 101337, 101340, 101342, 101343, 101344, 101345, 101348, 101349, 101352, 101353, 101355, 101356, 101361, 101362, 101363, 101365, 101366, 101368, 101369, 101370, 101371, 101374, 101385, 101387, 101390, 101391, 101394, 101395, 101396, 101397, 101398, 101400, 101401, 101403, 101405, 101406, 101407, 101408, 101412, 101413, 101414, 101415, 101417, 101418, 101420, 101422, 101423, 101424, 101425, 101429, 101432, 101433, 101434, 101436, 101438, 101441, 101442, 111111, 123456, 123457, 123462) AND [R].[DeelId] = '8751X' AND ([R].[RecordId] IN (SELECT  [OX].[RecordId]     FROM dbo.[OOLXchg] [OX] WITH (NOLOCK)     WHERE [OX].[CollectionId] IN (SELECT  [DX].[CollectionId]     FROM dbo.[DebtorXchgEnginecode] [DX]     WHERE [DX].[CodeId] IN (SELECT  [CT].[Id]     FROM dbo.[CodeEngine] [CT]     WHERE [CT].[Code] LIKE 'AH%'))))) [RM]  GROUP BY [RM].[RecordId]) [RM]  LEFT JOIN dbo.[OOLInternet] [R] ON [R].[RecordId] = [RM].[RecordId]   LEFT JOIN dbo.[DebiteurLocatieData] [D] ON [D].[DebiteurId] = [R].[DebiteurId] AND [D].[LocatieId] = ISNULL([R].[DebiteurLocatieId], 1)   LEFT JOIN [Basis].dbo.[CountryVatRate] [VT] ON [VT].[CountryId] = [D].[LandId] AND [VT].[Active] = 1  OUTER APPLY (SELECT dbo.fnGetOOLShippingStateExtended([R].[DebiteurId], [R].[DebiteurLocatieId], [R].[DeelNr], 250, NULL) [xShippingState]) [SHS]) [R]) [R]; SELECT  [R].[DeelId],  [R].[SoortId],  COUNT(*) AS [Aantal]     FROM (SELECT  [R].[DeelId],  [R].[SoortId],  [R].[RecordId],  [R].[DebiteurId],  [xPR],  [xPF],  [xPD],  [xPS],  [xPE],  [xPI],  [xTP],  [xTT],  [xShopState],  [xShippingState],  [XChange]     FROM @RM [RM]  LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) On [R].[RecordId] = [RM].[RecordId]) [R]  GROUP BY [R].[DeelId], [R].[SoortId]; SELECT  [R].*,  [xTP] AS [PrijsTaxPerc],  [xPD] AS [PrijsKorting],  (SELECT [VIBM].[Bouwmaand] FROM dbo.[VOLInternet] [VIBM] WHERE [VIBM].[RecordId] = [R].[AutoRecordId]) AS [ConstructionMonth],  [xPE] AS [PrijsAlt],  STUFF((SELECT '|' + CAST([V].[VeldId] AS VARCHAR(10)) + '^' + [V].[Waarde] FROM (SELECT [V].[VeldId], [V].[Waarde], [V].[OrderId] FROM dbo.[OOLVelden] [V] WHERE [V].[RecordId] = [R].[RecordId] AND [V].[VeldId] IN (26)) [V] ORDER BY [V].[VeldId], [V].[OrderId] FOR XML PATH('')), 1, 1, '') AS [Automate2Velden],  CASE WHEN [R].[GarantieToelichting] IS NOT NULL THEN (SELECT TOP 1 [TV].[Translation] FROM [Storage].dbo.[TranslateTextResult] [TV] WHERE [TV].[TextId] = (SELECT [TR].[TextId] FROM [Storage].dbo.[TranslateTextRecord] [TR] WHERE [TR].[RecordId] = [R].[RecordId] AND [TR].[TextTypeId] = 2) AND [TV].[LanguageId] IN (5, 2, 1) ORDER BY [TV].[LanguageId] DESC) END AS [GarantieTranslated],  CASE WHEN [R].[BijzonderheidInet] IS NOT NULL THEN (SELECT TOP 1 [TV].[Translation] FROM [Storage].dbo.[TranslateTextResult] [TV] WHERE [TV].[TextId] = (SELECT [TR].[TextId] FROM [Storage].dbo.[TranslateTextRecord] [TR] WHERE [TR].[RecordId] = [R].[RecordId] AND [TR].[TextTypeId] = 1) AND [TV].[LanguageId] IN (5, 2, 1) ORDER BY [TV].[LanguageId] DESC) END AS [BijzonderheidInetTranslated],  [xShopState] AS [ShopState],  CASE WHEN [R].[AldocModelCode] IS NOT NULL THEN (SELECT ISNULL((STUFF((SELECT '^' + [T3].[NaamInternet] + '~' + [T2].[NaamInternet] FROM [Basis].dbo.[AutomateModellenTranslated] [T2] LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [T3] ON [T3].[MerkId] = [T2].[MerkId] AND [T3].[LanguageId] = 5 WHERE [T2].[ModelId] IN (SELECT [T].[ModelId] FROM [Basis].dbo.[AldocModelKoppelingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode]) AND [T2].[LanguageId] = 5 AND [T2].[Synoniem] = 0 FOR XML PATH('')), 1, 1,'')), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocModelOmschrijvingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode] AND [T].[LanguageId] = 5), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocTypeOmschrijvingen] [T] WHERE [T].[TypeId] = [R].[AldocTypeId] AND [T].[LanguageId] = 5), '')) END AS [AldocDescription]     FROM (SELECT  [R].*,  ROW_NUMBER() OVER (PARTITION BY R.SortId, R.DebiteurId ORDER BY SortId + CASE WHEN [R].[xShopState] = 1 THEN 1 ELSE 0 END DESC, CASE WHEN [12] IS NULL THEN 1 END ASC, [12] DESC, CASE WHEN [14] IS NULL THEN 1 END ASC, [14] ASC, RIGHT([RecordId], 2)%(DATEPART(WEEKDAY, GETDATE()) + 3) ASC, [RecordId] ASC) AS [RowId]     FROM (SELECT  [R].[SortId],  [R].[RecordId],  [R].[DebiteurId],  [R].[ExternalId],  [R].[ReferenceId],  [R].[Youtube] AS [181],  [184],  [190],  ISNULL([R].[Fotos], (SELECT 'G^' + CAST([G].[GroupId] AS VARCHAR(20)) + '^' + [G].[Images] FROM dbo.[OOLFotoGroups] [G] WHERE [G].[DebiteurId] = [R].[DebiteurId] AND [G].[SModelId] = [R].[SModelId] AND [G].[DeelId] = [R].[DeelId])) AS [58],  [R].[SoortId] AS [StateId],  CASE WHEN SUBSTRING([R].[ModelId], 1, 3) IN ('00X', '0XX') THEN NULL ELSE [MET].[NaamInternet] + '^' + [MOT].[NaamInternet] END AS [MakeModel],  [xPS] AS [PrijsTonen],  CASE WHEN [xTT] IN (0, 1) THEN 1 ELSE [xTT] END AS [PrijsTaxType],  [xPI] AS [14],  [R].[Bouwjaar] AS [12],  [R].[AutoRecordId],  CASE WHEN [135] IS NULL THEN CASE WHEN [R].[SoortId] = 0 THEN [D].[OOLGarantieG] WHEN [R].[SoortId] = 1 THEN [D].[OOLGarantieR] WHEN [R].[SoortId] = 2 THEN [D].[OOLGarantieN] ELSE NULL END ELSE [135] END AS [135],  [37],  STUFF((SELECT '|' + [XVT].[NaamLang] FROM dbo.[OOLVelden] [XOV] LEFT JOIN [Basis].dbo.[AutomateVeldWaardenTranslated] [XVT] ON [XVT].[VeldId] = [XOV].[VeldId] AND [XVT].[LanguageId] = 5 AND [XVT].[Waarde] = [XOV].[Waarde] WHERE [XOV].[RecordId] = [R].[RecordId] AND [XOV].[VeldId] = 17 ORDER BY [XOV].[OrderId] FOR XML PATH('')), 1, 1, '') AS [17],  CASE WHEN [102] = 'E' THEN 'E85' WHEN [102] = 'L' THEN 'G.P.L.' WHEN [102] = 'G' THEN 'G3 G.P.L.' WHEN [102] = 'C' THEN 'Gaz naturel ' WHEN [102] = 'H' THEN 'Hybride' WHEN ISNULL([102], '') = '' THEN NULL ELSE [102] END AS [102],  TRY_CAST([18] AS INT) AS [18],  CASE WHEN [XChange] = 1 THEN ISNULL([R].[Motorcodes] + '|', '') + ISNULL((SELECT TOP 1 [CT].[Code] FROM dbo.[OOLXchg] [X] LEFT JOIN dbo.[DebtorXchgEnginecode] [XP] ON [XP].[CollectionId] = [X].[CollectionId] LEFT JOIN dbo.[CodeEngine] [CT] ON [CT].[Id] = [XP].[CodeId] WHERE [X].[RecordId] = [R].[RecordId] AND [CT].[Code] LIKE 'AH%'), 'AH') ELSE [R].[Motorcodes] END AS [108],  (SELECT TOP 1 [XOV].[Waarde] FROM dbo.[OOLVelden] [XOV] WHERE [XOV].[RecordId] = [R].[RecordId] AND [XOV].[VeldId] = 241 ORDER BY [XOV].[OrderId]) AS [241],  TRY_CAST([26] AS INT) AS [26],  [25],  [R].[Artikelnummers] AS [21],  ISNULL([D].[Bedrijfsnaam], '') + '|' + ISNULL([D].[BedrijfKort], '') AS [Leverancier],  [R].[BijzonderheidInet],  [R].[WarrantyText] AS [GarantieToelichting],  [R].[Shop],  [R].[Created],  [xShippingState] AS [ShippingState],  [R].[WarrantyConstruction] AS [WarrantyInstallation],  [R].[DeelId],  [R].[DebiteurRecordId],  [R].[AldocModelCode],  [R].[AldocTypeId],  [xPR],  [xPF],  [xPD],  [xPS],  [xPE],  [xPI],  [xTP],  [xTT],  [xShopState],  [xShippingState],  [XChange],  [R].[SModelId],  [R].[ModelId],  [R].[PrijsSoort],  [R].[PriceShop]     FROM (SELECT  *     FROM (SELECT  [R].*,  [OV].[VeldId],  [OV].[Waarde]     FROM (SELECT  [R].[SortId],  [R].[RecordId],  [R].[DebiteurId],  [R].[ExternalId],  [R].[ReferenceId],  [R].[Youtube],  [R].[Fotos],  [R].[SoortId],  [R].[PrijsTonen],  [R].[Prijs],  [R].[Bouwjaar],  [R].[AutoRecordId],  [R].[Motorcodes],  [R].[Artikelnummers],  [R].[BijzonderheidInet],  [R].[WarrantyText],  [R].[Shop],  [R].[Created],  [R].[WarrantyConstruction],  [R].[DeelId],  [R].[DebiteurRecordId],  [R].[AldocModelCode],  [R].[AldocTypeId],  [R].[DebiteurLocatieId],  [R].[SModelId],  [R].[ModelId],  [R].[PrijsSoort],  [R].[PriceShop],  [xPR],  [xPF],  [xPD],  [xPS],  [xPE],  [xPI],  [xTP],  [xTT],  [xShopState],  [xShippingState],  [XChange]     FROM @RM [RM]  LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) On [R].[RecordId] = [RM].[RecordId]) AS [R]  LEFT JOIN dbo.[OOLVelden] [OV] WITH (INDEX(PK_OOLVelden)) ON [OV].[RecordId] = [R].[RecordId] AND [OV].[VeldId] IN (184, 190, 135, 37, 102, 18, 241, 26, 25)) [R]  PIVOT (MAX([Waarde]) FOR [VeldId] IN ([184], [190], [135], [37], [102], [18], [241], [26], [25])) AS [R]) [R]  LEFT JOIN [Basis].dbo.[AutomateModellenTranslated] [MOT] ON [MOT].[ModelId] = [R].[ModelID] AND [MOT].[LanguageId] = 5 AND [MOT].[Synoniem] = 0   LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [MET] ON [MET].[MerkId] = [MOT].[MerkId] AND [MET].[LanguageId] = 5   LEFT JOIN dbo.[DebiteurLocatieData] [D] ON [D].[DebiteurId] = [R].[DebiteurId] AND [D].[LocatieId] = ISNULL([R].[DebiteurLocatieId], 1)) [R]  ORDER BY [SortId] DESC,  + CASE WHEN [R].[xShopState] = 1 THEN 1 ELSE 0 END DESC, [RowId] ASC     OFFSET 0 ROWS FETCH NEXT 10 ROWS ONLY) [R]; WITH [R] AS (SELECT  [R].[RecordId],  [xPR],  [xPF],  [xPD],  [xPS],  [xPE],  [xPI],  [xTP],  [xTT],  [xShopState],  [xShippingState],  [XChange],  [Bouwjaar],  [xPI] AS [Prijs],  [ModelId]     FROM @RM [RM]  LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) On [R].[RecordId] = [RM].[RecordId]   LEFT JOIN dbo.[DebiteurLocatieData] [D] ON [D].[DebiteurId] = [R].[DebiteurId] AND [D].[LocatieId] = ISNULL([R].[DebiteurLocatieId], 1)) SELECT  [VeldId],  [Waarde] AS [Value],  NULL AS [ValueMIN],  NULL AS [ValueMAX]     FROM dbo.[OOLVelden] [OV]     WHERE [RecordId] IN (SELECT [R].[RecordId] FROM [R]) AND [VeldId] IN (184,190,37,17,102,241,25)  GROUP BY [VeldId], [Waarde] UNION SELECT  [VeldId],  NULL AS [Value],  MIN([Waarde]) AS [ValueMIN],  MAX([Waarde]) AS [ValueMAX]     FROM (SELECT  [VeldId],  TRY_CAST([Waarde] AS INT) AS [Waarde]     FROM dbo.[OOLVelden] [OV]     WHERE [RecordId] IN (SELECT [R].[RecordId] FROM [R]) AND [VeldId] IN (135,18,26)) [OV]  GROUP BY [VeldId] UNION SELECT  12,  NULL AS [Value],  MIN([R].[Bouwjaar]) AS [ValueMIN],  MAX([R].[Bouwjaar]) AS [ValueMAX]     FROM [R] UNION SELECT  14,  NULL AS [Value],  MIN(CAST([Prijs] AS INT)) AS [ValueMIN],  MAX(CAST([Prijs] AS INT)) AS [ValueMAX]     FROM [R] UNION SELECT  1,  [ModelId],  NULL AS [ValueMIN],  NULL AS [ValueMAX]     FROM [R] ORDER BY 1, 2; SELECT  DISTINCT  [R].[DebiteurId]     FROM (SELECT  DISTINCT  [DebiteurId]     FROM dbo.[OOLInternet] [R] WITH (NOLOCK)     WHERE [R].[RecordId] In (Select [RM].[RecordId] FROM @RM [RM])) [R]" }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 92, "SizeMax": 150, "SetMax": false, "GetIndexMax": 10, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": { "25654517": 1, "23300129": 1, "25497399": 1, "23466813": 1, "25364749": 1, "24259858": 1, "22992873": 1, "23925763": 1, "20781079": 1, "23117800": 1 }, "Sort": "", "SortDirection": "Ascending", "CountryName": "France", "CountryId": 250, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }
{ "Data": { "SessionId": 8, "Match": null, "Timestamp": "2026-08-14T22:55:31.0578573+02:00", "UrlRawCurrent": "/stock-de-pieces-auto/recherche/code-boite-de-vitesse/8872447/", "UrlAbsoluteCurrent": "/url_voorraad/stock-de-pieces-auto/recherche/code-boite-de-vitesse/8872447/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/stock-de-pieces-auto/recherche/code-boite-de-vitesse/8872447/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }
{ "Data": { "SessionId": 9, "Match": null, "Timestamp": "2026-08-14T22:55:36.1672437+02:00", "UrlRawCurrent": "/stock-de-pieces-auto/recherche/numero-de-piece/0aa/", "UrlAbsoluteCurrent": "/url_voorraad/stock-de-pieces-auto/recherche/numero-de-piece/0aa/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/stock-de-pieces-auto/recherche/numero-de-piece/0aa/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }


Load

{ "Data": { "SessionId": 10, "Match": null, "Timestamp": "0001-01-01T00:00:00", "UrlRawCurrent": "/stock-de-pieces-auto/composante/code-moteur/dv6uc/piece/sonde-lambda/id-piece/22414482/", "UrlAbsoluteCurrent": "/url_voorraad/stock-de-pieces-auto/composante/code-moteur/dv6uc/piece/sonde-lambda/id-piece/22414482/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/stock-de-pieces-auto/composante/code-moteur/dv6uc/piece/sonde-lambda/id-piece/22414482/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }



LoadAlternatives

{ "Data": { "SessionId": 10, "Match": null, "Timestamp": "0001-01-01T00:00:00", "UrlRawCurrent": "/stock-de-pieces-auto/composante/code-moteur/dv6uc/piece/sonde-lambda/id-piece/22414482/", "UrlAbsoluteCurrent": "/url_voorraad/stock-de-pieces-auto/composante/code-moteur/dv6uc/piece/sonde-lambda/id-piece/22414482/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/stock-de-pieces-auto/composante/code-moteur/dv6uc/piece/sonde-lambda/id-piece/22414482/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }



Complete

{ "Data": { "SessionId": 10, "Match": null, "Timestamp": "0001-01-01T00:00:00", "UrlRawCurrent": "/stock-de-pieces-auto/composante/code-moteur/dv6uc/piece/sonde-lambda/id-piece/22414482/", "UrlAbsoluteCurrent": "/url_voorraad/stock-de-pieces-auto/composante/code-moteur/dv6uc/piece/sonde-lambda/id-piece/22414482/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/stock-de-pieces-auto/composante/code-moteur/dv6uc/piece/sonde-lambda/id-piece/22414482/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }