Oliedoppen met motorcode 6FZ

Bent u op zoek naar een oliedop met motorcode 6FZ? Dan helpen wij u graag bij uw zoektocht naar dit onderdeel. Op ons platform worden op dit moment 2 oliedoppen met motorcode 6FZ aangeboden door 1 bedrijven. Het gaat hierbij om gebruikte oliedoppen. U kunt ons volledige aanbod gemakkelijk filteren op kenmerken zoals bouwjaar, garantie, motortype, motorcode, intercooler, cilinderinhoud en versnellingsbak.Lees meer

Filters


Bouwjaar

Direct te bestellen

Media

Prijs

Garantie

Motortype

Motorcode

Intercooler

Cilinderinhoud

Versnellingsbak

Tellerstand

Artikelnummer

Classificatiecode

Postcode & Straal

Aanbieders

KwaliteitsZorg Demontage (KZD) is een gecertificeerd kwaliteitsmanagementsysteem voor de voertuigdemontagebranche.

Demontagebedrijven die gecertificeerd zijn volgens KZD zijn getoetst op een aantal relevante wettelijke voorschriften en eisen die op ondernemingen in de voertuigdemontagebranche van toepassing zijn én op specifieke eisen op het gebied van afvalstoffen voor recycling. Deze bedrijven beschikken bovendien over een inzichtelijk en geordend bedrijfsproces.

De KZDPlus-normering heeft een aantal aanvullingen. Demontagebedrijven die onderdelen verkopen, kunnen met het verhoogde niveau van KZDPlus aantonen dat zij een betrouwbaar adres zijn om gecontroleerde herleidbare gebruikte onderdelen met garantie te kopen.

Bedrijven met aanvullend KZD-E zijn getoetst op een aantal extra noodzakelijke punten voor het veilig demonteren van elektrische en hybride voertuigen. KZD-E is een aanvulling op zowel de KZD- als KZDPlus-normering en is niet los verkrijgbaar.

Geen aanbieders gevonden

Zit uw oliedop met motorcode 6FZ er niet bij?

Het kan natuurlijk dat de specifieke oliedop die u zoekt op dit moment niet in ons aanbod vermeld staat. Daarom bieden wij u ook de mogelijkheid om een gratis aanvraag in te sturen, die wij vervolgens doorsturen naar de 152 bedrijven die bij ons platform zijn aangesloten. Zij gaan vervolgens na of zij het onderdeel voorradig hebben en zullen contact met u opnemen.

Plaats gratis een aanvraag
1

PreLoad

{ "Data": { "SessionId": 58, "Match": null, "Timestamp": "0001-01-01T00:00:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/magazijn/motorcode/6fz/onderdeel/oliedop/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/magazijn/motorcode/6fz/onderdeel/oliedop/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/magazijn/motorcode/6fz/onderdeel/oliedop/" ], "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": "Nederland", "CountryId": 528, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }

All sessions

{ "Data": { "SessionId": 1, "Match": null, "Timestamp": "2026-08-15T23:33:25.4687076+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/mgl/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/mgl/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/mgl/" ], "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-15T23:33:27.5775441+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/l31/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/l31/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/l31/" ], "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": 3, "Match": null, "Timestamp": "2026-08-15T23:33:28.9994005+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/magazijn/motorcode/n1/onderdeel/lambda-sonde/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/magazijn/motorcode/n1/onderdeel/lambda-sonde/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/magazijn/motorcode/n1/onderdeel/lambda-sonde/" ], "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, 1, 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 ('8750X') 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 'N1%')) 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] = '8750X' 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 'N1%'))))) [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], 528, 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],  [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] = 1 WHERE [T2].[ModelId] IN (SELECT [T].[ModelId] FROM [Basis].dbo.[AldocModelKoppelingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode]) AND [T2].[LanguageId] = 1 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] = 1), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocTypeOmschrijvingen] [T] WHERE [T].[TypeId] = [R].[AldocTypeId] AND [T].[LanguageId] = 1), '')) 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] = 1 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] = 'C' THEN 'Aardgas' WHEN [102] = 'E' THEN 'E85' WHEN [102] = 'G' THEN 'G3 LPG' WHEN [102] = 'H' THEN 'Hybride' WHEN [102] = 'L' THEN 'LPG' 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 'N1%'), 'N1') ELSE [R].[Motorcodes] END AS [108],  TRY_CAST([166] AS INT) AS [166],  CASE WHEN [105] = 'A' THEN 'Achter' WHEN [105] = 'V' THEN 'Voor' WHEN ISNULL([105], '') = '' THEN NULL ELSE [105] END AS [105],  (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, 166, 105, 241, 26, 25)) [R]  PIVOT (MAX([Waarde]) FOR [VeldId] IN ([184], [190], [135], [37], [102], [18], [166], [105], [241], [26], [25])) AS [R]) [R]  LEFT JOIN [Basis].dbo.[AutomateModellenTranslated] [MOT] ON [MOT].[ModelId] = [R].[ModelID] AND [MOT].[LanguageId] = 1 AND [MOT].[Synoniem] = 0   LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [MET] ON [MET].[MerkId] = [MOT].[MerkId] AND [MET].[LanguageId] = 1   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,105,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,166,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": 189, "SizeMax": 150, "SetMax": false, "GetIndexMax": 19, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": { "24706984": 1, "21682254": 1, "21486190": 1, "21568458": 1, "19863283": 1, "20360159": 1, "11719217": 1, "22987835": 1, "17207743": 1, "21733586": 1 }, "Sort": "", "SortDirection": "Ascending", "CountryName": "Nederland", "CountryId": 528, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }
{ "Data": { "SessionId": 4, "Match": null, "Timestamp": "2026-08-15T23:33:30.5931489+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/sme/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/sme/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/sme/" ], "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": 5, "Match": null, "Timestamp": "2026-08-15T23:33:30.9056485+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/dhl/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/dhl/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/dhl/" ], "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": 6, "Match": null, "Timestamp": "2026-08-15T23:33:31.9056563+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/magazijn/motorcode/ccz/onderdeel/klopsensor/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/magazijn/motorcode/ccz/onderdeel/klopsensor/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/magazijn/motorcode/ccz/onderdeel/klopsensor/" ], "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, 1, 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 ('7809X') 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 'CCZ%')) 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] = '7809X' 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 'CCZ%'))))) [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], 528, 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],  [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] = 1 WHERE [T2].[ModelId] IN (SELECT [T].[ModelId] FROM [Basis].dbo.[AldocModelKoppelingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode]) AND [T2].[LanguageId] = 1 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] = 1), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocTypeOmschrijvingen] [T] WHERE [T].[TypeId] = [R].[AldocTypeId] AND [T].[LanguageId] = 1), '')) 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] = 1 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 'Interc.' WHEN [101] = 'N' THEN 'Nee' 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 'CCZ%'), 'CCZ') ELSE [R].[Motorcodes] END AS [108],  TRY_CAST([122] AS INT) AS [122],  [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, 122, 25)) [R]  PIVOT (MAX([Waarde]) FOR [VeldId] IN ([184], [190], [135], [37], [101], [18], [122], [25])) AS [R]) [R]  LEFT JOIN [Basis].dbo.[AutomateModellenTranslated] [MOT] ON [MOT].[ModelId] = [R].[ModelID] AND [MOT].[LanguageId] = 1 AND [MOT].[Synoniem] = 0   LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [MET] ON [MET].[MerkId] = [MOT].[MerkId] AND [MET].[LanguageId] = 1   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,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,122)) [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": 25, "SizeMax": 150, "SetMax": false, "GetIndexMax": 3, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": { "21510561": 1, "17206116": 1, "21909541": 2, "22958581": 3, "23219932": 4, "20227069": 5, "16353150": 1, "19915312": 1, "16353151": 2, "20727052": 2 }, "Sort": "", "SortDirection": "Ascending", "CountryName": "Nederland", "CountryId": 528, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }
{ "Data": { "SessionId": 7, "Match": null, "Timestamp": "2026-08-15T23:33:33.6244147+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/d140903/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/d140903/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/d140903/" ], "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": 8, "Match": null, "Timestamp": "2026-08-15T23:33:34.2806443+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/magazijn/motorcode/mc/onderdeel/smart-entry-computer/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/magazijn/motorcode/mc/onderdeel/smart-entry-computer/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/magazijn/motorcode/mc/onderdeel/smart-entry-computer/" ], "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, 1, 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 ('0569X') 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 'MC%')) 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] = '0569X' 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 'MC%'))))) [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], 528, 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],  [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] = 1 WHERE [T2].[ModelId] IN (SELECT [T].[ModelId] FROM [Basis].dbo.[AldocModelKoppelingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode]) AND [T2].[LanguageId] = 1 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] = 1), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocTypeOmschrijvingen] [T] WHERE [T].[TypeId] = [R].[AldocTypeId] AND [T].[LanguageId] = 1), '')) 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] = 1 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] = 'C' THEN 'Aardgas' WHEN [102] = 'E' THEN 'E85' WHEN [102] = 'G' THEN 'G3 LPG' WHEN [102] = 'H' THEN 'Hybride' WHEN [102] = 'L' THEN 'LPG' 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 'MC%'), 'MC') 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] = 1 AND [MOT].[Synoniem] = 0   LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [MET] ON [MET].[MerkId] = [MOT].[MerkId] AND [MET].[LanguageId] = 1   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": 3, "SizeMax": 150, "SetMax": false, "GetIndexMax": 1, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": { "22873965": 1, "22482446": 1, "9414450": 1 }, "Sort": "", "SortDirection": "Ascending", "CountryName": "Nederland", "CountryId": 528, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }
{ "Data": { "SessionId": 9, "Match": null, "Timestamp": "2026-08-15T23:33:35.4849029+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/16k4/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/16k4/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/16k4/" ], "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": 10, "Match": null, "Timestamp": "2026-08-15T23:33:36.3363751+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/magazijn/motorcode/dch/onderdeel/abs-computer/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/magazijn/motorcode/dch/onderdeel/abs-computer/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/magazijn/motorcode/dch/onderdeel/abs-computer/" ], "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, 1, 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 ('7525X') 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 'DCH%')) 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] = '7525X' 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 'DCH%'))))) [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], 528, 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],  [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] = 1 WHERE [T2].[ModelId] IN (SELECT [T].[ModelId] FROM [Basis].dbo.[AldocModelKoppelingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode]) AND [T2].[LanguageId] = 1 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] = 1), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocTypeOmschrijvingen] [T] WHERE [T].[TypeId] = [R].[AldocTypeId] AND [T].[LanguageId] = 1), '')) 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] = 1 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] = 'C' THEN 'Aardgas' WHEN [102] = 'E' THEN 'E85' WHEN [102] = 'G' THEN 'G3 LPG' WHEN [102] = 'H' THEN 'Hybride' WHEN [102] = 'L' THEN 'LPG' 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 'DCH%'), 'DCH') 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] = 1 AND [MOT].[Synoniem] = 0   LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [MET] ON [MET].[MerkId] = [MOT].[MerkId] AND [MET].[LanguageId] = 1   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": 1, "SizeMax": 150, "SetMax": false, "GetIndexMax": 1, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": { "18202625": 1 }, "Sort": "", "SortDirection": "Ascending", "CountryName": "Nederland", "CountryId": 528, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }
{ "Data": { "SessionId": 11, "Match": null, "Timestamp": "2026-08-15T23:33:38.6019848+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/10jb/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/10jb/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/10jb/" ], "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": 12, "Match": null, "Timestamp": "2026-08-15T23:33:39.4926201+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/021648/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/021648/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/021648/" ], "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": 13, "Match": null, "Timestamp": "2026-08-15T23:33:41.0843881+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/llv/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/llv/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/llv/" ], "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": 14, "Match": null, "Timestamp": "2026-08-15T23:33:41.9124929+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/45642/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/45642/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/45642/" ], "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": 15, "Match": null, "Timestamp": "2026-08-15T23:33:42.3812529+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/5mt/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/5mt/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/5mt/" ], "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": 16, "Match": null, "Timestamp": "2026-08-15T23:33:42.8969368+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/davadav/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/davadav/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/davadav/" ], "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": 17, "Match": null, "Timestamp": "2026-08-15T23:33:44.271882+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/magazijn/motorcode/cge/onderdeel/lambda-sonde/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/magazijn/motorcode/cge/onderdeel/lambda-sonde/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/magazijn/motorcode/cge/onderdeel/lambda-sonde/" ], "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, 1, 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 ('8750X') 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 'CGE%')) 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] = '8750X' 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 'CGE%'))))) [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], 528, 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],  [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] = 1 WHERE [T2].[ModelId] IN (SELECT [T].[ModelId] FROM [Basis].dbo.[AldocModelKoppelingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode]) AND [T2].[LanguageId] = 1 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] = 1), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocTypeOmschrijvingen] [T] WHERE [T].[TypeId] = [R].[AldocTypeId] AND [T].[LanguageId] = 1), '')) 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] = 1 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] = 'C' THEN 'Aardgas' WHEN [102] = 'E' THEN 'E85' WHEN [102] = 'G' THEN 'G3 LPG' WHEN [102] = 'H' THEN 'Hybride' WHEN [102] = 'L' THEN 'LPG' 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 'CGE%'), 'CGE') ELSE [R].[Motorcodes] END AS [108],  TRY_CAST([166] AS INT) AS [166],  CASE WHEN [105] = 'A' THEN 'Achter' WHEN [105] = 'V' THEN 'Voor' WHEN ISNULL([105], '') = '' THEN NULL ELSE [105] END AS [105],  (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, 166, 105, 241, 26, 25)) [R]  PIVOT (MAX([Waarde]) FOR [VeldId] IN ([184], [190], [135], [37], [102], [18], [166], [105], [241], [26], [25])) AS [R]) [R]  LEFT JOIN [Basis].dbo.[AutomateModellenTranslated] [MOT] ON [MOT].[ModelId] = [R].[ModelID] AND [MOT].[LanguageId] = 1 AND [MOT].[Synoniem] = 0   LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [MET] ON [MET].[MerkId] = [MOT].[MerkId] AND [MET].[LanguageId] = 1   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,105,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,166,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": 22, "SizeMax": 150, "SetMax": false, "GetIndexMax": 3, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": { "25702989": 1, "10572954": 1, "19468622": 1, "10573011": 1, "19468623": 2, "10572993": 2, "10572965": 3, "7077439": 1, "7077548": 1, "25064680": 1 }, "Sort": "", "SortDirection": "Ascending", "CountryName": "Nederland", "CountryId": 528, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }
{ "Data": { "SessionId": 18, "Match": null, "Timestamp": "2026-08-15T23:33:45.1576371+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/k9kf7/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/k9kf7/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/k9kf7/" ], "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": 19, "Match": null, "Timestamp": "2026-08-15T23:33:46.5569287+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/etf/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/etf/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/etf/" ], "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": 20, "Match": null, "Timestamp": "2026-08-15T23:33:47.8225531+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/magazijn/motorcode/a2/onderdeel/computer-abs/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/magazijn/motorcode/a2/onderdeel/computer-abs/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/magazijn/motorcode/a2/onderdeel/computer-abs/" ], "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, 1, 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 ('7525X') 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 'A2%')) 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] = '7525X' 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 'A2%'))))) [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], 528, 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],  [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] = 1 WHERE [T2].[ModelId] IN (SELECT [T].[ModelId] FROM [Basis].dbo.[AldocModelKoppelingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode]) AND [T2].[LanguageId] = 1 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] = 1), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocTypeOmschrijvingen] [T] WHERE [T].[TypeId] = [R].[AldocTypeId] AND [T].[LanguageId] = 1), '')) 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] = 1 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] = 'C' THEN 'Aardgas' WHEN [102] = 'E' THEN 'E85' WHEN [102] = 'G' THEN 'G3 LPG' WHEN [102] = 'H' THEN 'Hybride' WHEN [102] = 'L' THEN 'LPG' 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 'A2%'), 'A2') 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] = 1 AND [MOT].[Synoniem] = 0   LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [MET] ON [MET].[MerkId] = [MOT].[MerkId] AND [MET].[LanguageId] = 1   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": 1, "SizeMax": 150, "SetMax": false, "GetIndexMax": 1, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": { "18890096": 1 }, "Sort": "", "SortDirection": "Ascending", "CountryName": "Nederland", "CountryId": 528, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }
{ "Data": { "SessionId": 21, "Match": null, "Timestamp": "2026-08-15T23:33:48.3850717+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/ymr6/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/ymr6/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/ymr6/" ], "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": 22, "Match": null, "Timestamp": "2026-08-15T23:33:49.2912962+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/d4fa546860/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/d4fa546860/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/d4fa546860/" ], "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": 23, "Match": null, "Timestamp": "2026-08-15T23:33:50.1194068+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/t4ec1/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/t4ec1/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/t4ec1/" ], "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": 24, "Match": null, "Timestamp": "2026-08-15T23:33:50.931912+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/99w/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/99w/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/99w/" ], "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": 25, "Match": null, "Timestamp": "2026-08-15T23:33:51.7756556+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/57j/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/57j/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/57j/" ], "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": 26, "Match": null, "Timestamp": "2026-08-15T23:33:52.3537745+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/mt5/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/mt5/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/mt5/" ], "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": 27, "Match": null, "Timestamp": "2026-08-15T23:33:52.8694195+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/306s3/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/306s3/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/306s3/" ], "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": 28, "Match": null, "Timestamp": "2026-08-15T23:33:53.7287876+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/6j01/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/6j01/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/6j01/" ], "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": 29, "Match": null, "Timestamp": "2026-08-15T23:33:54.2600226+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/z20net/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/z20net/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/z20net/" ], "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": 30, "Match": null, "Timestamp": "2026-08-15T23:33:55.2207268+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/28899/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/28899/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/28899/" ], "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": 31, "Match": null, "Timestamp": "2026-08-15T23:33:55.6113529+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/h4ba400/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/h4ba400/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/h4ba400/" ], "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": 32, "Match": null, "Timestamp": "2026-08-15T23:33:56.6058218+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/g6ba/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/g6ba/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/g6ba/" ], "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": 33, "Match": null, "Timestamp": "2026-08-15T23:33:57.0745925+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/674316/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/674316/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/674316/" ], "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": 34, "Match": null, "Timestamp": "2026-08-15T23:33:57.5746007+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/u18/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/u18/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/u18/" ], "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": 35, "Match": null, "Timestamp": "2026-08-15T23:33:59.4495786+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/ahv/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/ahv/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/ahv/" ], "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": 36, "Match": null, "Timestamp": "2026-08-15T23:34:00.1527059+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/magazijn/motorcode/bly/onderdeel/klopsensor/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/magazijn/motorcode/bly/onderdeel/klopsensor/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/magazijn/motorcode/bly/onderdeel/klopsensor/" ], "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, 1, 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 ('7809X') 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 'BLY%')) 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] = '7809X' 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 'BLY%'))))) [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], 528, 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],  [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] = 1 WHERE [T2].[ModelId] IN (SELECT [T].[ModelId] FROM [Basis].dbo.[AldocModelKoppelingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode]) AND [T2].[LanguageId] = 1 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] = 1), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocTypeOmschrijvingen] [T] WHERE [T].[TypeId] = [R].[AldocTypeId] AND [T].[LanguageId] = 1), '')) 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] = 1 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 'Interc.' WHEN [101] = 'N' THEN 'Nee' 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 'BLY%'), 'BLY') ELSE [R].[Motorcodes] END AS [108],  TRY_CAST([122] AS INT) AS [122],  [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, 122, 25)) [R]  PIVOT (MAX([Waarde]) FOR [VeldId] IN ([184], [190], [135], [37], [101], [18], [122], [25])) AS [R]) [R]  LEFT JOIN [Basis].dbo.[AutomateModellenTranslated] [MOT] ON [MOT].[ModelId] = [R].[ModelID] AND [MOT].[LanguageId] = 1 AND [MOT].[Synoniem] = 0   LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [MET] ON [MET].[MerkId] = [MOT].[MerkId] AND [MET].[LanguageId] = 1   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,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,122)) [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": { "12276813": 1, "17180356": 1, "17180241": 2 }, "Sort": "", "SortDirection": "Ascending", "CountryName": "Nederland", "CountryId": 528, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }
{ "Data": { "SessionId": 37, "Match": null, "Timestamp": "2026-08-15T23:34:00.6995665+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/pt02/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/pt02/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/pt02/" ], "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": 38, "Match": null, "Timestamp": "2026-08-15T23:34:01.4183351+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/magazijn/motorcode/cusb/onderdeel/subframe/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/magazijn/motorcode/cusb/onderdeel/subframe/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/magazijn/motorcode/cusb/onderdeel/subframe/" ], "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, 1, 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 ('7011A') 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 'CUSB%')) 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] = '7011A' 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 'CUSB%'))))) [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], 528, 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, 36, 248, 232)) [V] ORDER BY [V].[VeldId], [V].[OrderId] FOR XML PATH('')), 1, 1, '') AS [Automate2Velden],  [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] = 1 WHERE [T2].[ModelId] IN (SELECT [T].[ModelId] FROM [Basis].dbo.[AldocModelKoppelingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode]) AND [T2].[LanguageId] = 1 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] = 1), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocTypeOmschrijvingen] [T] WHERE [T].[TypeId] = [R].[AldocTypeId] AND [T].[LanguageId] = 1), '')) 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] = 1 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 'CUSB%'), 'CUSB') ELSE [R].[Motorcodes] END AS [108],  TRY_CAST([18] AS INT) AS [18],  [V19].[NaamLang] AS [19],  CASE WHEN [105] = 'A' THEN 'Achter' WHEN [105] = 'V' THEN 'Voor' WHEN ISNULL([105], '') = '' THEN NULL ELSE [105] END AS [105],  [V23].[NaamLang] AS [23],  (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, 18, 19, 105, 23, 241, 26, 25)) [R]  PIVOT (MAX([Waarde]) FOR [VeldId] IN ([184], [190], [135], [37], [18], [19], [105], [23], [241], [26], [25])) AS [R]) [R]  LEFT JOIN [Basis].dbo.[AutomateVeldWaardenTranslated] [V19] ON [V19].[VeldId] = 19 AND [V19].[Waarde] = [19] AND [V19].[LanguageId] = 1   LEFT JOIN [Basis].dbo.[AutomateVeldWaardenTranslated] [V23] ON [V23].[VeldId] = 23 AND [V23].[Waarde] = [23] AND [V23].[LanguageId] = 1   LEFT JOIN [Basis].dbo.[AutomateModellenTranslated] [MOT] ON [MOT].[ModelId] = [R].[ModelID] AND [MOT].[LanguageId] = 1 AND [MOT].[Synoniem] = 0   LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [MET] ON [MET].[MerkId] = [MOT].[MerkId] AND [MET].[LanguageId] = 1   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,19,105,23,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": 8, "SizeMax": 150, "SetMax": false, "GetIndexMax": 1, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": { "19984164": 1, "21067675": 1, "18834463": 1, "25101981": 1, "25583545": 1, "14366362": 1, "25568826": 1, "22714445": 1 }, "Sort": "", "SortDirection": "Ascending", "CountryName": "Nederland", "CountryId": 528, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }
{ "Data": { "SessionId": 39, "Match": null, "Timestamp": "2026-08-15T23:34:02.1370955+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/64286/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/64286/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/64286/" ], "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": 40, "Match": null, "Timestamp": "2026-08-15T23:34:02.7464617+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/dhf/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/dhf/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/dhf/" ], "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": 41, "Match": null, "Timestamp": "2026-08-15T23:34:03.3558611+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/mzrcd/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/mzrcd/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/mzrcd/" ], "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": 42, "Match": null, "Timestamp": "2026-08-15T23:34:04.1214714+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/psa9h02/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/psa9h02/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/psa9h02/" ], "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": 43, "Match": null, "Timestamp": "2026-08-15T23:34:04.9557429+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/cib/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/cib/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/cib/" ], "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": 44, "Match": null, "Timestamp": "2026-08-15T23:34:06.7022098+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/28td/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/28td/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/28td/" ], "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": 45, "Match": null, "Timestamp": "2026-08-15T23:34:07.0303319+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/c20ne/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/c20ne/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/c20ne/" ], "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": 46, "Match": null, "Timestamp": "2026-08-15T23:34:07.6553272+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/jt/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/jt/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/jt/" ], "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": 47, "Match": null, "Timestamp": "2026-08-15T23:34:08.499131+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/cjkb/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/cjkb/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/cjkb/" ], "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": 48, "Match": null, "Timestamp": "2026-08-15T23:34:09.4991124+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/magazijn/motorcode/204dty/onderdeel/lambda-sonde/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/magazijn/motorcode/204dty/onderdeel/lambda-sonde/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/magazijn/motorcode/204dty/onderdeel/lambda-sonde/" ], "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, 1, 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 ('8750X') 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 '204DTY%')) 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] = '8750X' 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 '204DTY%'))))) [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], 528, 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],  [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] = 1 WHERE [T2].[ModelId] IN (SELECT [T].[ModelId] FROM [Basis].dbo.[AldocModelKoppelingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode]) AND [T2].[LanguageId] = 1 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] = 1), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocTypeOmschrijvingen] [T] WHERE [T].[TypeId] = [R].[AldocTypeId] AND [T].[LanguageId] = 1), '')) 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] = 1 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] = 'C' THEN 'Aardgas' WHEN [102] = 'E' THEN 'E85' WHEN [102] = 'G' THEN 'G3 LPG' WHEN [102] = 'H' THEN 'Hybride' WHEN [102] = 'L' THEN 'LPG' 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 '204DTY%'), '204DTY') ELSE [R].[Motorcodes] END AS [108],  TRY_CAST([166] AS INT) AS [166],  CASE WHEN [105] = 'A' THEN 'Achter' WHEN [105] = 'V' THEN 'Voor' WHEN ISNULL([105], '') = '' THEN NULL ELSE [105] END AS [105],  (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, 166, 105, 241, 26, 25)) [R]  PIVOT (MAX([Waarde]) FOR [VeldId] IN ([184], [190], [135], [37], [102], [18], [166], [105], [241], [26], [25])) AS [R]) [R]  LEFT JOIN [Basis].dbo.[AutomateModellenTranslated] [MOT] ON [MOT].[ModelId] = [R].[ModelID] AND [MOT].[LanguageId] = 1 AND [MOT].[Synoniem] = 0   LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [MET] ON [MET].[MerkId] = [MOT].[MerkId] AND [MET].[LanguageId] = 1   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,105,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,166,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": 7, "SizeMax": 150, "SetMax": false, "GetIndexMax": 1, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": { "24816761": 1, "24816337": 2, "25434753": 1, "25435181": 1, "25435178": 2, "25435449": 3, "25434684": 1 }, "Sort": "", "SortDirection": "Ascending", "CountryName": "Nederland", "CountryId": 528, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }
{ "Data": { "SessionId": 49, "Match": null, "Timestamp": "2026-08-15T23:34:10.3040391+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/f9qc/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/f9qc/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/f9qc/" ], "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": 50, "Match": null, "Timestamp": "2026-08-15T23:34:11.1634162+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/cxma/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/cxma/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/cxma/" ], "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": 51, "Match": null, "Timestamp": "2026-08-15T23:34:12.6477944+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/4hy/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/4hy/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/4hy/" ], "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": 52, "Match": null, "Timestamp": "2026-08-15T23:34:15.3625217+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/g16a/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/g16a/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/g16a/" ], "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": 53, "Match": null, "Timestamp": "2026-08-15T23:34:16.6791194+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/motorcode/lnn/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/motorcode/lnn/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/motorcode/lnn/" ], "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": 54, "Match": null, "Timestamp": "2026-08-15T23:34:17.4916497+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/jde/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/jde/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/jde/" ], "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": 55, "Match": null, "Timestamp": "2026-08-15T23:34:18.5384958+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/ppr/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/ppr/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/ppr/" ], "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": 56, "Match": null, "Timestamp": "2026-08-15T23:34:19.2572446+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/kql/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/kql/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/versnellingsbakcode/kql/" ], "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": 57, "Match": null, "Timestamp": "2026-08-15T23:34:20.0697256+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/magazijn/motorcode/g6/onderdeel/oliedop/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/magazijn/motorcode/g6/onderdeel/oliedop/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/magazijn/motorcode/g6/onderdeel/oliedop/" ], "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, 1, 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 ('7950X') 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 'G6%')) 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] = '7950X' 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 'G6%'))))) [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], 528, 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],  [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] = 1 WHERE [T2].[ModelId] IN (SELECT [T].[ModelId] FROM [Basis].dbo.[AldocModelKoppelingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode]) AND [T2].[LanguageId] = 1 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] = 1), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocTypeOmschrijvingen] [T] WHERE [T].[TypeId] = [R].[AldocTypeId] AND [T].[LanguageId] = 1), '')) 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] = 1 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 'G6%'), 'G6') ELSE [R].[Motorcodes] END AS [108],  CASE WHEN [101] = 'I' THEN 'Interc.' WHEN [101] = 'N' THEN 'Nee' WHEN ISNULL([101], '') = '' THEN NULL ELSE [101] END AS [101],  TRY_CAST([18] AS INT) AS [18],  [V19].[NaamLang] AS [19],  (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, 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] = 1   LEFT JOIN [Basis].dbo.[AutomateModellenTranslated] [MOT] ON [MOT].[ModelId] = [R].[ModelID] AND [MOT].[LanguageId] = 1 AND [MOT].[Synoniem] = 0   LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [MET] ON [MET].[MerkId] = [MOT].[MerkId] AND [MET].[LanguageId] = 1   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": 2, "SizeMax": 150, "SetMax": false, "GetIndexMax": 1, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": { "13322719": 1, "19582497": 1 }, "Sort": "", "SortDirection": "Ascending", "CountryName": "Nederland", "CountryId": 528, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }


LoadComplete

{ "Data": { "SessionId": 58, "Match": null, "Timestamp": "0001-01-01T00:00:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/magazijn/motorcode/6fz/onderdeel/oliedop/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/magazijn/motorcode/6fz/onderdeel/oliedop/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/magazijn/motorcode/6fz/onderdeel/oliedop/" ], "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, 1, 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 ('7950X') 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 '6FZ%')) 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] = '7950X' 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 '6FZ%'))))) [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], 528, 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],  [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] = 1 WHERE [T2].[ModelId] IN (SELECT [T].[ModelId] FROM [Basis].dbo.[AldocModelKoppelingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode]) AND [T2].[LanguageId] = 1 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] = 1), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocTypeOmschrijvingen] [T] WHERE [T].[TypeId] = [R].[AldocTypeId] AND [T].[LanguageId] = 1), '')) 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] = 1 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 '6FZ%'), '6FZ') ELSE [R].[Motorcodes] END AS [108],  CASE WHEN [101] = 'I' THEN 'Interc.' WHEN [101] = 'N' THEN 'Nee' WHEN ISNULL([101], '') = '' THEN NULL ELSE [101] END AS [101],  TRY_CAST([18] AS INT) AS [18],  [V19].[NaamLang] AS [19],  (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, 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] = 1   LEFT JOIN [Basis].dbo.[AutomateModellenTranslated] [MOT] ON [MOT].[ModelId] = [R].[ModelID] AND [MOT].[LanguageId] = 1 AND [MOT].[Synoniem] = 0   LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [MET] ON [MET].[MerkId] = [MOT].[MerkId] AND [MET].[LanguageId] = 1   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": 2, "SizeMax": 150, "SetMax": false, "GetIndexMax": 1, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": { "19142667": 1, "19216130": 1 }, "Sort": "", "SortDirection": "Ascending", "CountryName": "Nederland", "CountryId": 528, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }

Oliedoppen met motorcode 6FZ op Onderdelenlijn.nl

Alle bedrijven die bij ons platform zijn aangesloten proberen hun oliedoppen zo compleet mogelijk te specificeren. Dit betekent dat bij oliedoppen bijvoorbeeld wordt aangegeven wat de staat van het onderdeel is, of u garantie op het onderdeel krijgt en of er eventuele bijzonderheden op het onderdeel van toepassing zijn. Daarnaast wordt bijna ieder onderdeel op onze website voorzien van een aantal duidelijke foto’s. Wanneer u interesse heeft in een bepaalde oliedop met motorcode 6FZ die op ons platform geadverteerd staat, dan raden wij u wel aan om vooraf even contact op te nemen met de aanbieder. Zo kunt u verifiëren of het onderdeel echt op voorraad is en of het onderdeel geschikt is voor uw auto.

Ervaringen van klanten

Anderen vonden snel het juiste onderdeel en delen hun ervaring.