Esp computers with engine code 30

Filters


Year of construction

Available for Order

Media

Price

Months of warranty

Type of engine

Engine capacity

Engine code

Gearbox

Body type

Odometer reading

Part number

Classification code

Models
No suppliers found

Suppliers

KwaliteitsZorg Demontage (KZD) is a certified quality management system designed for car dismantlers in Holland.

Dismantling companies certified according to KZD have been assessed on a number of relevant legal regulations and requirements applicable to companies in the vehicle dismantling industry, as well as on specific requirements concerning waste materials for recycling. These companies also have a transparent and well-organized business process.

The KZDPlus standard includes a number of additions. Dismantling companies that sell parts can, with the elevated KZDPlus level, demonstrate that they are a reliable place to purchase controlled, traceable used parts with a warranty.

Companies with the additional KZD-E certification have been assessed on a number of extra necessary points for the safe dismantling of electric and hybrid vehicles. KZD-E is an addition to both the KZD and KZDPlus standards and is not available separately.

No suppliers found
1

PreLoad

{ "Data": { "SessionId": 63, "Match": null, "Timestamp": "0001-01-01T00:00:00", "UrlRawCurrent": "/car-parts-stock/result/engine-code/30/part/esp-computer/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/result/engine-code/30/part/esp-computer/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/result/engine-code/30/part/esp-computer/" ], "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": "United Kingdom", "CountryId": 826, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }

All sessions

{ "Data": { "SessionId": 1, "Match": null, "Timestamp": "2026-08-15T02:27:06.8189703+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/f9qa7/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/f9qa7/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/f9qa7/" ], "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-15T02:27:19.9465687+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/d14a/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/d14a/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/d14a/" ], "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-15T02:27:20.6653066+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/fqe/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/fqe/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/fqe/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }
{ "Data": { "SessionId": 4, "Match": null, "Timestamp": "2026-08-15T02:27:21.2903194+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/del/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/del/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/del/" ], "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-15T02:27:22.8684402+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/lch/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/lch/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/lch/" ], "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-15T02:27:23.8840602+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/cbdcbdc/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/cbdcbdc/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/cbdcbdc/" ], "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": 7, "Match": null, "Timestamp": "2026-08-15T02:27:25.0246266+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/164e2/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/164e2/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/164e2/" ], "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-15T02:27:26.4818402+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/vr38/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/vr38/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/vr38/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }
{ "Data": { "SessionId": 9, "Match": null, "Timestamp": "2026-08-15T02:27:28.1068382+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/m26/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/m26/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/m26/" ], "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-15T02:27:29.4193228+02:00", "UrlRawCurrent": "/car-parts-stock/result/engine-code/awx/part/engine/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/result/engine-code/awx/part/engine/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/result/engine-code/awx/part/engine/" ], "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, 2, 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 ('7900A') 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 'AWX%')) 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] = '7900A' 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 'AWX%'))))) [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], 826, 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, 27, 244, 230)) [V] ORDER BY [V].[VeldId], [V].[OrderId] FOR XML PATH('')), 1, 1, '') AS [Automate2Velden],  CASE WHEN [R].[GarantieToelichting] IS NOT NULL THEN (SELECT TOP 1 [TV].[Translation] FROM [Storage].dbo.[TranslateTextResult] [TV] WHERE [TV].[TextId] = (SELECT [TR].[TextId] FROM [Storage].dbo.[TranslateTextRecord] [TR] WHERE [TR].[RecordId] = [R].[RecordId] AND [TR].[TextTypeId] = 2) AND [TV].[LanguageId] IN (2, 2, 1) ORDER BY [TV].[LanguageId] DESC) END AS [GarantieTranslated],  CASE WHEN [R].[BijzonderheidInet] IS NOT NULL THEN (SELECT TOP 1 [TV].[Translation] FROM [Storage].dbo.[TranslateTextResult] [TV] WHERE [TV].[TextId] = (SELECT [TR].[TextId] FROM [Storage].dbo.[TranslateTextRecord] [TR] WHERE [TR].[RecordId] = [R].[RecordId] AND [TR].[TextTypeId] = 1) AND [TV].[LanguageId] IN (2, 2, 1) ORDER BY [TV].[LanguageId] DESC) END AS [BijzonderheidInetTranslated],  [xShopState] AS [ShopState],  CASE WHEN [R].[AldocModelCode] IS NOT NULL THEN (SELECT ISNULL((STUFF((SELECT '^' + [T3].[NaamInternet] + '~' + [T2].[NaamInternet] FROM [Basis].dbo.[AutomateModellenTranslated] [T2] LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [T3] ON [T3].[MerkId] = [T2].[MerkId] AND [T3].[LanguageId] = 2 WHERE [T2].[ModelId] IN (SELECT [T].[ModelId] FROM [Basis].dbo.[AldocModelKoppelingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode]) AND [T2].[LanguageId] = 2 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] = 2), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocTypeOmschrijvingen] [T] WHERE [T].[TypeId] = [R].[AldocTypeId] AND [T].[LanguageId] = 2), '')) 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] = 2 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 'AWX%'), 'AWX') ELSE [R].[Motorcodes] END AS [108],  TRY_CAST([18] AS INT) AS [18],  (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],  TRY_CAST([122] AS INT) AS [122],  [25],  CASE WHEN [256] = 'Z' THEN 'Electric' WHEN [256] = 'E1' THEN 'Euro 1' WHEN [256] = 'E2' THEN 'Euro 2' WHEN [256] = 'E3' THEN 'Euro 3' WHEN [256] = 'E4' THEN 'Euro 4' WHEN [256] = 'E5' THEN 'Euro 5' WHEN [256] = 'E6' THEN 'Euro 6' WHEN ISNULL([256], '') = '' THEN NULL ELSE [256] END AS [256],  [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, 241, 26, 122, 25, 256)) [R]  PIVOT (MAX([Waarde]) FOR [VeldId] IN ([184], [190], [135], [37], [18], [241], [26], [122], [25], [256])) AS [R]) [R]  LEFT JOIN [Basis].dbo.[AutomateModellenTranslated] [MOT] ON [MOT].[ModelId] = [R].[ModelID] AND [MOT].[LanguageId] = 2 AND [MOT].[Synoniem] = 0   LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [MET] ON [MET].[MerkId] = [MOT].[MerkId] AND [MET].[LanguageId] = 2   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,241,25,256)  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,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": 34, "SizeMax": 150, "SetMax": false, "GetIndexMax": 4, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": { "6230240": 1, "10869678": 1, "4913286": 2, "23430154": 1, "13503058": 1, "8234769": 1, "19702586": 1, "14584644": 1, "14584684": 2, "14584504": 3 }, "Sort": "", "SortDirection": "Ascending", "CountryName": "United Kingdom", "CountryId": 826, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }
{ "Data": { "SessionId": 11, "Match": null, "Timestamp": "2026-08-15T02:27:30.7005723+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/mgn/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/mgn/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/mgn/" ], "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-15T02:27:32.841207+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/21c/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/21c/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/21c/" ], "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-15T02:27:34.1693159+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/d4f730/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/d4f730/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/d4f730/" ], "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-15T02:27:36.0353358+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/c10/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/c10/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/c10/" ], "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-15T02:27:36.4744181+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/d20c/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/d20c/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/d20c/" ], "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-15T02:27:38.7712775+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/gr12/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/gr12/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/gr12/" ], "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-15T02:27:39.3337726+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/vm35b/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/vm35b/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/vm35b/" ], "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": 18, "Match": null, "Timestamp": "2026-08-15T02:27:43.6931456+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/j3/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/j3/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/j3/" ], "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-15T02:27:44.8988102+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/01b/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/01b/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/01b/" ], "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-15T02:27:48.1513601+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/176b2000/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/176b2000/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/176b2000/" ], "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": 21, "Match": null, "Timestamp": "2026-08-15T02:27:49.6513733+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/a16dms/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/a16dms/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/a16dms/" ], "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-15T02:27:50.8857276+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/lbs/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/lbs/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/lbs/" ], "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-15T02:27:55.434643+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/b10/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/b10/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/b10/" ], "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-15T02:27:56.6064313+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/dw10cd/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/dw10cd/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/dw10cd/" ], "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-15T02:27:57.9970541+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/a20dth/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/a20dth/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/a20dth/" ], "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-15T02:27:58.6845546+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/afp/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/afp/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/afp/" ], "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-15T02:27:59.700182+02:00", "UrlRawCurrent": "/car-parts-stock/result/engine-code/rz4e/part/engine/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/result/engine-code/rz4e/part/engine/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/result/engine-code/rz4e/part/engine/" ], "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, 2, 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 ('7900A') 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 'RZ4E%')) 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] = '7900A' 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 'RZ4E%'))))) [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], 826, 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, 27, 244, 230)) [V] ORDER BY [V].[VeldId], [V].[OrderId] FOR XML PATH('')), 1, 1, '') AS [Automate2Velden],  CASE WHEN [R].[GarantieToelichting] IS NOT NULL THEN (SELECT TOP 1 [TV].[Translation] FROM [Storage].dbo.[TranslateTextResult] [TV] WHERE [TV].[TextId] = (SELECT [TR].[TextId] FROM [Storage].dbo.[TranslateTextRecord] [TR] WHERE [TR].[RecordId] = [R].[RecordId] AND [TR].[TextTypeId] = 2) AND [TV].[LanguageId] IN (2, 2, 1) ORDER BY [TV].[LanguageId] DESC) END AS [GarantieTranslated],  CASE WHEN [R].[BijzonderheidInet] IS NOT NULL THEN (SELECT TOP 1 [TV].[Translation] FROM [Storage].dbo.[TranslateTextResult] [TV] WHERE [TV].[TextId] = (SELECT [TR].[TextId] FROM [Storage].dbo.[TranslateTextRecord] [TR] WHERE [TR].[RecordId] = [R].[RecordId] AND [TR].[TextTypeId] = 1) AND [TV].[LanguageId] IN (2, 2, 1) ORDER BY [TV].[LanguageId] DESC) END AS [BijzonderheidInetTranslated],  [xShopState] AS [ShopState],  CASE WHEN [R].[AldocModelCode] IS NOT NULL THEN (SELECT ISNULL((STUFF((SELECT '^' + [T3].[NaamInternet] + '~' + [T2].[NaamInternet] FROM [Basis].dbo.[AutomateModellenTranslated] [T2] LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [T3] ON [T3].[MerkId] = [T2].[MerkId] AND [T3].[LanguageId] = 2 WHERE [T2].[ModelId] IN (SELECT [T].[ModelId] FROM [Basis].dbo.[AldocModelKoppelingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode]) AND [T2].[LanguageId] = 2 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] = 2), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocTypeOmschrijvingen] [T] WHERE [T].[TypeId] = [R].[AldocTypeId] AND [T].[LanguageId] = 2), '')) 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] = 2 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 'RZ4E%'), 'RZ4E') ELSE [R].[Motorcodes] END AS [108],  TRY_CAST([18] AS INT) AS [18],  (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],  TRY_CAST([122] AS INT) AS [122],  [25],  CASE WHEN [256] = 'Z' THEN 'Electric' WHEN [256] = 'E1' THEN 'Euro 1' WHEN [256] = 'E2' THEN 'Euro 2' WHEN [256] = 'E3' THEN 'Euro 3' WHEN [256] = 'E4' THEN 'Euro 4' WHEN [256] = 'E5' THEN 'Euro 5' WHEN [256] = 'E6' THEN 'Euro 6' WHEN ISNULL([256], '') = '' THEN NULL ELSE [256] END AS [256],  [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, 241, 26, 122, 25, 256)) [R]  PIVOT (MAX([Waarde]) FOR [VeldId] IN ([184], [190], [135], [37], [18], [241], [26], [122], [25], [256])) AS [R]) [R]  LEFT JOIN [Basis].dbo.[AutomateModellenTranslated] [MOT] ON [MOT].[ModelId] = [R].[ModelID] AND [MOT].[LanguageId] = 2 AND [MOT].[Synoniem] = 0   LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [MET] ON [MET].[MerkId] = [MOT].[MerkId] AND [MET].[LanguageId] = 2   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,241,25,256)  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,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": 7, "SizeMax": 150, "SetMax": false, "GetIndexMax": 1, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": { "23657880": 1, "24372810": 1, "24901972": 2, "24901573": 3, "24567461": 4, "24350596": 1, "15289436": 1 }, "Sort": "", "SortDirection": "Ascending", "CountryName": "United Kingdom", "CountryId": 826, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }
{ "Data": { "SessionId": 28, "Match": null, "Timestamp": "2026-08-15T02:28:00.793923+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/p7/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/p7/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/p7/" ], "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-15T02:28:01.7470526+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/3jx0csv/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/3jx0csv/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/3jx0csv/" ], "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-15T02:28:03.2314224+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/m0/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/m0/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/m0/" ], "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-15T02:28:03.5907971+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/cbzacbz/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/cbzacbz/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/cbzacbz/" ], "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-15T02:28:05.4195511+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/f4p/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/f4p/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/f4p/" ], "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-15T02:28:06.2078615+02:00", "UrlRawCurrent": "/car-parts-stock/result/engine-code/blx/part/engine-mount/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/result/engine-code/blx/part/engine-mount/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/result/engine-code/blx/part/engine-mount/" ], "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, 2, 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 ('8657A') 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 'BLX%')) 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] = '8657A' 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 'BLX%'))))) [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], 826, NULL) [xShippingState]) [SHS]) [R]) [R]; SELECT  [R].[DeelId],  [R].[SoortId],  COUNT(*) AS [Aantal]     FROM (SELECT  [R].[DeelId],  [R].[SoortId],  [R].[RecordId],  [R].[DebiteurId],  [xPR],  [xPF],  [xPD],  [xPS],  [xPE],  [xPI],  [xTP],  [xTT],  [xShopState],  [xShippingState],  [XChange]     FROM @RM [RM]  LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) On [R].[RecordId] = [RM].[RecordId]) [R]  GROUP BY [R].[DeelId], [R].[SoortId]; SELECT  [R].*,  [xTP] AS [PrijsTaxPerc],  [xPD] AS [PrijsKorting],  (SELECT [VIBM].[Bouwmaand] FROM dbo.[VOLInternet] [VIBM] WHERE [VIBM].[RecordId] = [R].[AutoRecordId]) AS [ConstructionMonth],  [xPE] AS [PrijsAlt],  STUFF((SELECT '|' + CAST([V].[VeldId] AS VARCHAR(10)) + '^' + [V].[Waarde] FROM (SELECT [V].[VeldId], [V].[Waarde], [V].[OrderId] FROM dbo.[OOLVelden] [V] WHERE [V].[RecordId] = [R].[RecordId] AND [V].[VeldId] IN (26)) [V] ORDER BY [V].[VeldId], [V].[OrderId] FOR XML PATH('')), 1, 1, '') AS [Automate2Velden],  CASE WHEN [R].[GarantieToelichting] IS NOT NULL THEN (SELECT TOP 1 [TV].[Translation] FROM [Storage].dbo.[TranslateTextResult] [TV] WHERE [TV].[TextId] = (SELECT [TR].[TextId] FROM [Storage].dbo.[TranslateTextRecord] [TR] WHERE [TR].[RecordId] = [R].[RecordId] AND [TR].[TextTypeId] = 2) AND [TV].[LanguageId] IN (2, 2, 1) ORDER BY [TV].[LanguageId] DESC) END AS [GarantieTranslated],  CASE WHEN [R].[BijzonderheidInet] IS NOT NULL THEN (SELECT TOP 1 [TV].[Translation] FROM [Storage].dbo.[TranslateTextResult] [TV] WHERE [TV].[TextId] = (SELECT [TR].[TextId] FROM [Storage].dbo.[TranslateTextRecord] [TR] WHERE [TR].[RecordId] = [R].[RecordId] AND [TR].[TextTypeId] = 1) AND [TV].[LanguageId] IN (2, 2, 1) ORDER BY [TV].[LanguageId] DESC) END AS [BijzonderheidInetTranslated],  [xShopState] AS [ShopState],  CASE WHEN [R].[AldocModelCode] IS NOT NULL THEN (SELECT ISNULL((STUFF((SELECT '^' + [T3].[NaamInternet] + '~' + [T2].[NaamInternet] FROM [Basis].dbo.[AutomateModellenTranslated] [T2] LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [T3] ON [T3].[MerkId] = [T2].[MerkId] AND [T3].[LanguageId] = 2 WHERE [T2].[ModelId] IN (SELECT [T].[ModelId] FROM [Basis].dbo.[AldocModelKoppelingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode]) AND [T2].[LanguageId] = 2 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] = 2), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocTypeOmschrijvingen] [T] WHERE [T].[TypeId] = [R].[AldocTypeId] AND [T].[LanguageId] = 2), '')) 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] = 2 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],  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 'BLX%'), 'BLX') ELSE [R].[Motorcodes] END AS [108],  CASE WHEN [28] = 'AC' THEN 'Battery' WHEN [28] = 'M' THEN 'Centre' WHEN [28] = 'LM' THEN 'Centre left' WHEN [28] = 'RM' THEN 'Centre right' WHEN [28] = 'V' THEN 'Front' WHEN [28] = 'MV' THEN 'Front centre' WHEN [28] = 'LV' THEN 'Front left' WHEN [28] = 'RV' THEN 'Front right' WHEN [28] = 'L' THEN 'Left' WHEN [28] = '-' THEN 'NA' WHEN [28] = 'A' THEN 'Rear' WHEN [28] = 'MA' THEN 'Rear centre' WHEN [28] = 'LA' THEN 'Rear left' WHEN [28] = 'RA' THEN 'Rear right' WHEN [28] = 'R' THEN 'Right' WHEN [28] = 'TA' THEN 'Tank flap' WHEN ISNULL([28], '') = '' THEN NULL ELSE [28] END AS [28],  (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, 28, 241, 26, 25)) [R]  PIVOT (MAX([Waarde]) FOR [VeldId] IN ([184], [190], [135], [37], [18], [28], [241], [26], [25])) AS [R]) [R]  LEFT JOIN [Basis].dbo.[AutomateModellenTranslated] [MOT] ON [MOT].[ModelId] = [R].[ModelID] AND [MOT].[LanguageId] = 2 AND [MOT].[Synoniem] = 0   LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [MET] ON [MET].[MerkId] = [MOT].[MerkId] AND [MET].[LanguageId] = 2   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,28,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": 21, "SizeMax": 150, "SetMax": false, "GetIndexMax": 3, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": { "22297200": 1, "19288596": 1, "22988830": 2, "19502667": 2, "20608084": 1, "18454873": 1, "18454855": 2, "8586740": 1, "14837993": 1, "18454864": 1 }, "Sort": "", "SortDirection": "Ascending", "CountryName": "United Kingdom", "CountryId": 826, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }
{ "Data": { "SessionId": 34, "Match": null, "Timestamp": "2026-08-15T02:28:08.9240598+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/ed1/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/ed1/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/ed1/" ], "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-15T02:28:10.2053068+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/b20dth/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/b20dth/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/b20dth/" ], "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-15T02:28:14.5948342+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/k7/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/k7/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/k7/" ], "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": 37, "Match": null, "Timestamp": "2026-08-15T02:28:17.0766628+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/b20/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/b20/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/b20/" ], "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-15T02:28:18.1547876+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/pevps/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/pevps/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/pevps/" ], "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": 39, "Match": null, "Timestamp": "2026-08-15T02:28:19.3110472+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/744/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/744/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/744/" ], "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-15T02:28:22.8891558+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/t7/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/t7/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/t7/" ], "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-15T02:28:23.9360249+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/sr20e/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/sr20e/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/sr20e/" ], "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-15T02:28:29.1104767+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/764/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/764/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/764/" ], "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-15T02:28:32.0635913+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/d20a/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/d20a/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/d20a/" ], "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-15T02:28:33.2042132+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/frf/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/frf/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/frf/" ], "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-15T02:28:34.6629312+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/hm01/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/hm01/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/hm01/" ], "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-15T02:28:35.9275304+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/30c/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/30c/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/30c/" ], "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-15T02:28:37.1367169+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/abv/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/abv/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/abv/" ], "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-15T02:28:39.230456+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/pu02/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/pu02/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/pu02/" ], "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": 49, "Match": null, "Timestamp": "2026-08-15T02:28:40.5273219+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/192a2/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/192a2/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/192a2/" ], "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-15T02:28:41.6523253+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/f4rl/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/f4rl/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/f4rl/" ], "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-15T02:28:43.1991958+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/b408/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/b408/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/b408/" ], "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-15T02:28:44.8513651+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/elec/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/elec/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/elec/" ], "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-15T02:28:48.529791+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/dkz/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/dkz/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/dkz/" ], "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-15T02:28:51.1704197+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/mls/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/mls/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/mls/" ], "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-15T02:28:52.7172826+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/kappa/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/kappa/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/kappa/" ], "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-15T02:28:54.6673574+02:00", "UrlRawCurrent": "/car-parts-stock/result/engine-code/b207/part/engine/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/result/engine-code/b207/part/engine/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/result/engine-code/b207/part/engine/" ], "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, 2, 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 ('7900A') 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 'B207%')) 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] = '7900A' 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 'B207%'))))) [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], 826, 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, 27, 244, 230)) [V] ORDER BY [V].[VeldId], [V].[OrderId] FOR XML PATH('')), 1, 1, '') AS [Automate2Velden],  CASE WHEN [R].[GarantieToelichting] IS NOT NULL THEN (SELECT TOP 1 [TV].[Translation] FROM [Storage].dbo.[TranslateTextResult] [TV] WHERE [TV].[TextId] = (SELECT [TR].[TextId] FROM [Storage].dbo.[TranslateTextRecord] [TR] WHERE [TR].[RecordId] = [R].[RecordId] AND [TR].[TextTypeId] = 2) AND [TV].[LanguageId] IN (2, 2, 1) ORDER BY [TV].[LanguageId] DESC) END AS [GarantieTranslated],  CASE WHEN [R].[BijzonderheidInet] IS NOT NULL THEN (SELECT TOP 1 [TV].[Translation] FROM [Storage].dbo.[TranslateTextResult] [TV] WHERE [TV].[TextId] = (SELECT [TR].[TextId] FROM [Storage].dbo.[TranslateTextRecord] [TR] WHERE [TR].[RecordId] = [R].[RecordId] AND [TR].[TextTypeId] = 1) AND [TV].[LanguageId] IN (2, 2, 1) ORDER BY [TV].[LanguageId] DESC) END AS [BijzonderheidInetTranslated],  [xShopState] AS [ShopState],  CASE WHEN [R].[AldocModelCode] IS NOT NULL THEN (SELECT ISNULL((STUFF((SELECT '^' + [T3].[NaamInternet] + '~' + [T2].[NaamInternet] FROM [Basis].dbo.[AutomateModellenTranslated] [T2] LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [T3] ON [T3].[MerkId] = [T2].[MerkId] AND [T3].[LanguageId] = 2 WHERE [T2].[ModelId] IN (SELECT [T].[ModelId] FROM [Basis].dbo.[AldocModelKoppelingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode]) AND [T2].[LanguageId] = 2 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] = 2), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocTypeOmschrijvingen] [T] WHERE [T].[TypeId] = [R].[AldocTypeId] AND [T].[LanguageId] = 2), '')) 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] = 2 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 'B207%'), 'B207') ELSE [R].[Motorcodes] END AS [108],  TRY_CAST([18] AS INT) AS [18],  (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],  TRY_CAST([122] AS INT) AS [122],  [25],  CASE WHEN [256] = 'Z' THEN 'Electric' WHEN [256] = 'E1' THEN 'Euro 1' WHEN [256] = 'E2' THEN 'Euro 2' WHEN [256] = 'E3' THEN 'Euro 3' WHEN [256] = 'E4' THEN 'Euro 4' WHEN [256] = 'E5' THEN 'Euro 5' WHEN [256] = 'E6' THEN 'Euro 6' WHEN ISNULL([256], '') = '' THEN NULL ELSE [256] END AS [256],  [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, 241, 26, 122, 25, 256)) [R]  PIVOT (MAX([Waarde]) FOR [VeldId] IN ([184], [190], [135], [37], [18], [241], [26], [122], [25], [256])) AS [R]) [R]  LEFT JOIN [Basis].dbo.[AutomateModellenTranslated] [MOT] ON [MOT].[ModelId] = [R].[ModelID] AND [MOT].[LanguageId] = 2 AND [MOT].[Synoniem] = 0   LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [MET] ON [MET].[MerkId] = [MOT].[MerkId] AND [MET].[LanguageId] = 2   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,241,25,256)  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,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": 29, "SizeMax": 150, "SetMax": false, "GetIndexMax": 3, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": { "18242601": 1, "17151630": 1, "18823441": 1, "11197588": 1, "23581882": 1, "20092241": 1, "23365578": 1, "24671210": 2, "18579033": 3, "22124156": 4 }, "Sort": "", "SortDirection": "Ascending", "CountryName": "United Kingdom", "CountryId": 826, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }
{ "Data": { "SessionId": 57, "Match": null, "Timestamp": "2026-08-15T02:29:00.1401616+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/aut/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/aut/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/aut/" ], "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": 58, "Match": null, "Timestamp": "2026-08-15T02:29:01.0151603+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/rtg0a4/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/rtg0a4/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/rtg0a4/" ], "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": 59, "Match": null, "Timestamp": "2026-08-15T02:29:01.9214123+02:00", "UrlRawCurrent": "/car-parts-stock/result/engine-code/k4m708/part/sump/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/result/engine-code/k4m708/part/sump/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/result/engine-code/k4m708/part/sump/" ], "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, 2, xShippingState) END AS [xShopState],  xShippingState AS [xShippingState],  NULL AS [Match],  CASE WHEN [RM].[xPM] = 4 THEN 1 END AS [XChange]     FROM (SELECT  [RM].[RecordId],  MAX([RM].[xPM]) AS [xPM]     FROM (SELECT  [R].[RecordId],  10 AS [xPM]     FROM dbo.[OOLInternet] [R] WITH (NOLOCK)     WHERE [R].[DeelId] IN ('8065A') AND [R].[RecordId] IN (SELECT  [OT].[RecordId]     FROM dbo.[OOLEnginecodes] [OT] WITH (NOLOCK)     WHERE [OT].[CodeId] IN (SELECT  [CT].[Id]     FROM dbo.[CodeEngine] [CT]     WHERE [CT].[Code] LIKE 'K4M708%')) AND [R].[DebiteurId] IN (100001, 100003, 100007, 100008, 100012, 100019, 100022, 100029, 100034, 100044, 100045, 100056, 100062, 100081, 100085, 100086, 100107, 100109, 100110, 100116, 100119, 100120, 100121, 100124, 100129, 100131, 100139, 100141, 100145, 100152, 100153, 100155, 100159, 100160, 100161, 100177, 100178, 100180, 100181, 100184, 100187, 100189, 100191, 100194, 100197, 100208, 100209, 100216, 100219, 100232, 100238, 100248, 100249, 100251, 100255, 100261, 100278, 100282, 100283, 100284, 100291, 100294, 100305, 100307, 100315, 100324, 100327, 100328, 100336, 100345, 100353, 100358, 100359, 100378, 100385, 100386, 100414, 100417, 100426, 100433, 100457, 100471, 100473, 100480, 100493, 100509, 100512, 100515, 100617, 100727, 100771, 100803, 100805, 100883, 100886, 100997, 101112, 101113, 101114, 101115, 101117, 101118, 101119, 101120, 101121, 101122, 101175, 101185, 101186, 101205, 101209, 101221, 101222, 101232, 101234, 101237, 101238, 101239, 101240, 101249, 101255, 101257, 101262, 101268, 101269, 101271, 101273, 101275, 101276, 101277, 101279, 101280, 101285, 101293, 101300, 101301, 101302, 101304, 101305, 101309, 101311, 101313, 101314, 101315, 101317, 101319, 101321, 101328, 101331, 101332, 101334, 101335, 101337, 101340, 101342, 101343, 101344, 101345, 101348, 101349, 101352, 101353, 101355, 101356, 101361, 101362, 101363, 101365, 101366, 101368, 101369, 101370, 101371, 101374, 101385, 101387, 101390, 101391, 101394, 101395, 101396, 101397, 101398, 101400, 101401, 101403, 101405, 101406, 101407, 101408, 101412, 101413, 101414, 101415, 101417, 101418, 101420, 101422, 101423, 101424, 101425, 101429, 101432, 101433, 101434, 101436, 101438, 101441, 101442, 111111, 123456, 123457, 123462) UNION SELECT  [R].[RecordId],  4 AS [xPM]     FROM dbo.[OOLInternet] [R] WITH (NOLOCK)     WHERE [R].[DebiteurId] IN (100001, 100003, 100007, 100008, 100012, 100019, 100022, 100029, 100034, 100044, 100045, 100056, 100062, 100081, 100085, 100086, 100107, 100109, 100110, 100116, 100119, 100120, 100121, 100124, 100129, 100131, 100139, 100141, 100145, 100152, 100153, 100155, 100159, 100160, 100161, 100177, 100178, 100180, 100181, 100184, 100187, 100189, 100191, 100194, 100197, 100208, 100209, 100216, 100219, 100232, 100238, 100248, 100249, 100251, 100255, 100261, 100278, 100282, 100283, 100284, 100291, 100294, 100305, 100307, 100315, 100324, 100327, 100328, 100336, 100345, 100353, 100358, 100359, 100378, 100385, 100386, 100414, 100417, 100426, 100433, 100457, 100471, 100473, 100480, 100493, 100509, 100512, 100515, 100617, 100727, 100771, 100803, 100805, 100883, 100886, 100997, 101112, 101113, 101114, 101115, 101117, 101118, 101119, 101120, 101121, 101122, 101175, 101185, 101186, 101205, 101209, 101221, 101222, 101232, 101234, 101237, 101238, 101239, 101240, 101249, 101255, 101257, 101262, 101268, 101269, 101271, 101273, 101275, 101276, 101277, 101279, 101280, 101285, 101293, 101300, 101301, 101302, 101304, 101305, 101309, 101311, 101313, 101314, 101315, 101317, 101319, 101321, 101328, 101331, 101332, 101334, 101335, 101337, 101340, 101342, 101343, 101344, 101345, 101348, 101349, 101352, 101353, 101355, 101356, 101361, 101362, 101363, 101365, 101366, 101368, 101369, 101370, 101371, 101374, 101385, 101387, 101390, 101391, 101394, 101395, 101396, 101397, 101398, 101400, 101401, 101403, 101405, 101406, 101407, 101408, 101412, 101413, 101414, 101415, 101417, 101418, 101420, 101422, 101423, 101424, 101425, 101429, 101432, 101433, 101434, 101436, 101438, 101441, 101442, 111111, 123456, 123457, 123462) AND [R].[DeelId] = '8065A' AND ([R].[RecordId] IN (SELECT  [OX].[RecordId]     FROM dbo.[OOLXchg] [OX] WITH (NOLOCK)     WHERE [OX].[CollectionId] IN (SELECT  [DX].[CollectionId]     FROM dbo.[DebtorXchgEnginecode] [DX]     WHERE [DX].[CodeId] IN (SELECT  [CT].[Id]     FROM dbo.[CodeEngine] [CT]     WHERE [CT].[Code] LIKE 'K4M708%'))))) [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], 826, NULL) [xShippingState]) [SHS]) [R]) [R]; SELECT  [R].[DeelId],  [R].[SoortId],  COUNT(*) AS [Aantal]     FROM (SELECT  [R].[DeelId],  [R].[SoortId],  [R].[RecordId],  [R].[DebiteurId],  [xPR],  [xPF],  [xPD],  [xPS],  [xPE],  [xPI],  [xTP],  [xTT],  [xShopState],  [xShippingState],  [XChange]     FROM @RM [RM]  LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) On [R].[RecordId] = [RM].[RecordId]) [R]  GROUP BY [R].[DeelId], [R].[SoortId]; SELECT  [R].*,  [xTP] AS [PrijsTaxPerc],  [xPD] AS [PrijsKorting],  (SELECT [VIBM].[Bouwmaand] FROM dbo.[VOLInternet] [VIBM] WHERE [VIBM].[RecordId] = [R].[AutoRecordId]) AS [ConstructionMonth],  [xPE] AS [PrijsAlt],  STUFF((SELECT '|' + CAST([V].[VeldId] AS VARCHAR(10)) + '^' + [V].[Waarde] FROM (SELECT [V].[VeldId], [V].[Waarde], [V].[OrderId] FROM dbo.[OOLVelden] [V] WHERE [V].[RecordId] = [R].[RecordId] AND [V].[VeldId] IN (26)) [V] ORDER BY [V].[VeldId], [V].[OrderId] FOR XML PATH('')), 1, 1, '') AS [Automate2Velden],  CASE WHEN [R].[GarantieToelichting] IS NOT NULL THEN (SELECT TOP 1 [TV].[Translation] FROM [Storage].dbo.[TranslateTextResult] [TV] WHERE [TV].[TextId] = (SELECT [TR].[TextId] FROM [Storage].dbo.[TranslateTextRecord] [TR] WHERE [TR].[RecordId] = [R].[RecordId] AND [TR].[TextTypeId] = 2) AND [TV].[LanguageId] IN (2, 2, 1) ORDER BY [TV].[LanguageId] DESC) END AS [GarantieTranslated],  CASE WHEN [R].[BijzonderheidInet] IS NOT NULL THEN (SELECT TOP 1 [TV].[Translation] FROM [Storage].dbo.[TranslateTextResult] [TV] WHERE [TV].[TextId] = (SELECT [TR].[TextId] FROM [Storage].dbo.[TranslateTextRecord] [TR] WHERE [TR].[RecordId] = [R].[RecordId] AND [TR].[TextTypeId] = 1) AND [TV].[LanguageId] IN (2, 2, 1) ORDER BY [TV].[LanguageId] DESC) END AS [BijzonderheidInetTranslated],  [xShopState] AS [ShopState],  CASE WHEN [R].[AldocModelCode] IS NOT NULL THEN (SELECT ISNULL((STUFF((SELECT '^' + [T3].[NaamInternet] + '~' + [T2].[NaamInternet] FROM [Basis].dbo.[AutomateModellenTranslated] [T2] LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [T3] ON [T3].[MerkId] = [T2].[MerkId] AND [T3].[LanguageId] = 2 WHERE [T2].[ModelId] IN (SELECT [T].[ModelId] FROM [Basis].dbo.[AldocModelKoppelingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode]) AND [T2].[LanguageId] = 2 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] = 2), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocTypeOmschrijvingen] [T] WHERE [T].[TypeId] = [R].[AldocTypeId] AND [T].[LanguageId] = 2), '')) 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] = 2 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 'Exch.' WHEN [101] = 'N' THEN 'No' 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 'K4M708%'), 'K4M708') ELSE [R].[Motorcodes] END AS [108],  CASE WHEN [29] = 'LM' THEN 'Alloy' WHEN [29] = 'ST' THEN 'Steel' WHEN [29] = 'KN' THEN 'Synthetic' WHEN ISNULL([29], '') = '' THEN NULL ELSE [29] END AS [29],  CASE WHEN [132] = 'N' THEN 'No' WHEN [132] = 'J' THEN 'Yes' WHEN ISNULL([132], '') = '' THEN NULL ELSE [132] END AS [132],  [25],  [R].[Artikelnummers] AS [21],  ISNULL([D].[Bedrijfsnaam], '') + '|' + ISNULL([D].[BedrijfKort], '') AS [Leverancier],  [R].[BijzonderheidInet],  [R].[WarrantyText] AS [GarantieToelichting],  [R].[Shop],  [R].[Created],  [xShippingState] AS [ShippingState],  [R].[WarrantyConstruction] AS [WarrantyInstallation],  [R].[DeelId],  [R].[DebiteurRecordId],  [R].[AldocModelCode],  [R].[AldocTypeId],  [xPR],  [xPF],  [xPD],  [xPS],  [xPE],  [xPI],  [xTP],  [xTT],  [xShopState],  [xShippingState],  [XChange],  [R].[SModelId],  [R].[ModelId],  [R].[PrijsSoort],  [R].[PriceShop]     FROM (SELECT  *     FROM (SELECT  [R].*,  [OV].[VeldId],  [OV].[Waarde]     FROM (SELECT  [R].[SortId],  [R].[RecordId],  [R].[DebiteurId],  [R].[ExternalId],  [R].[ReferenceId],  [R].[Youtube],  [R].[Fotos],  [R].[SoortId],  [R].[PrijsTonen],  [R].[Prijs],  [R].[Bouwjaar],  [R].[AutoRecordId],  [R].[Motorcodes],  [R].[Artikelnummers],  [R].[BijzonderheidInet],  [R].[WarrantyText],  [R].[Shop],  [R].[Created],  [R].[WarrantyConstruction],  [R].[DeelId],  [R].[DebiteurRecordId],  [R].[AldocModelCode],  [R].[AldocTypeId],  [R].[DebiteurLocatieId],  [R].[SModelId],  [R].[ModelId],  [R].[PrijsSoort],  [R].[PriceShop],  [xPR],  [xPF],  [xPD],  [xPS],  [xPE],  [xPI],  [xTP],  [xTT],  [xShopState],  [xShippingState],  [XChange]     FROM @RM [RM]  LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) On [R].[RecordId] = [RM].[RecordId]) AS [R]  LEFT JOIN dbo.[OOLVelden] [OV] WITH (INDEX(PK_OOLVelden)) ON [OV].[RecordId] = [R].[RecordId] AND [OV].[VeldId] IN (184, 190, 135, 37, 101, 18, 29, 132, 25)) [R]  PIVOT (MAX([Waarde]) FOR [VeldId] IN ([184], [190], [135], [37], [101], [18], [29], [132], [25])) AS [R]) [R]  LEFT JOIN [Basis].dbo.[AutomateModellenTranslated] [MOT] ON [MOT].[ModelId] = [R].[ModelID] AND [MOT].[LanguageId] = 2 AND [MOT].[Synoniem] = 0   LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [MET] ON [MET].[MerkId] = [MOT].[MerkId] AND [MET].[LanguageId] = 2   LEFT JOIN dbo.[DebiteurLocatieData] [D] ON [D].[DebiteurId] = [R].[DebiteurId] AND [D].[LocatieId] = ISNULL([R].[DebiteurLocatieId], 1)) [R]  ORDER BY [SortId] DESC,  + CASE WHEN [R].[xShopState] = 1 THEN 1 ELSE 0 END DESC, [RowId] ASC     OFFSET 0 ROWS FETCH NEXT 10 ROWS ONLY) [R]; WITH [R] AS (SELECT  [R].[RecordId],  [xPR],  [xPF],  [xPD],  [xPS],  [xPE],  [xPI],  [xTP],  [xTT],  [xShopState],  [xShippingState],  [XChange],  [Bouwjaar],  [xPI] AS [Prijs],  [ModelId]     FROM @RM [RM]  LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) On [R].[RecordId] = [RM].[RecordId]   LEFT JOIN dbo.[DebiteurLocatieData] [D] ON [D].[DebiteurId] = [R].[DebiteurId] AND [D].[LocatieId] = ISNULL([R].[DebiteurLocatieId], 1)) SELECT  [VeldId],  [Waarde] AS [Value],  NULL AS [ValueMIN],  NULL AS [ValueMAX]     FROM dbo.[OOLVelden] [OV]     WHERE [RecordId] IN (SELECT [R].[RecordId] FROM [R]) AND [VeldId] IN (184,190,37,17,101,29,132,25)  GROUP BY [VeldId], [Waarde] UNION SELECT  [VeldId],  NULL AS [Value],  MIN([Waarde]) AS [ValueMIN],  MAX([Waarde]) AS [ValueMAX]     FROM (SELECT  [VeldId],  TRY_CAST([Waarde] AS INT) AS [Waarde]     FROM dbo.[OOLVelden] [OV]     WHERE [RecordId] IN (SELECT [R].[RecordId] FROM [R]) AND [VeldId] IN (135,18)) [OV]  GROUP BY [VeldId] UNION SELECT  12,  NULL AS [Value],  MIN([R].[Bouwjaar]) AS [ValueMIN],  MAX([R].[Bouwjaar]) AS [ValueMAX]     FROM [R] UNION SELECT  14,  NULL AS [Value],  MIN(CAST([Prijs] AS INT)) AS [ValueMIN],  MAX(CAST([Prijs] AS INT)) AS [ValueMAX]     FROM [R] UNION SELECT  1,  [ModelId],  NULL AS [ValueMIN],  NULL AS [ValueMAX]     FROM [R] ORDER BY 1, 2; SELECT  DISTINCT  [R].[DebiteurId]     FROM (SELECT  DISTINCT  [DebiteurId]     FROM dbo.[OOLInternet] [R] WITH (NOLOCK)     WHERE [R].[RecordId] In (Select [RM].[RecordId] FROM @RM [RM])) [R]" }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 13, "SizeMax": 150, "SetMax": false, "GetIndexMax": 2, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": { "17264103": 1, "3291348": 1, "5556879": 1, "18250163": 1, "2775840": 2, "5808805": 3, "8330366": 4, "5480069": 5, "5750725": 6, "5252456": 1 }, "Sort": "", "SortDirection": "Ascending", "CountryName": "United Kingdom", "CountryId": 826, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }
{ "Data": { "SessionId": 60, "Match": null, "Timestamp": "2026-08-15T02:29:02.8589011+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/nbe/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/nbe/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/nbe/" ], "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": 61, "Match": null, "Timestamp": "2026-08-15T02:29:07.5322109+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/y20dtl/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/y20dtl/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/y20dtl/" ], "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": 62, "Match": null, "Timestamp": "2026-08-15T02:29:08.5790659+02:00", "UrlRawCurrent": "/car-parts-stock/search/engine-code/vm31c/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/search/engine-code/vm31c/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/search/engine-code/vm31c/" ], "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 }  }


LoadComplete

{ "Data": { "SessionId": 63, "Match": null, "Timestamp": "0001-01-01T00:00:00", "UrlRawCurrent": "/car-parts-stock/result/engine-code/30/part/esp-computer/", "UrlAbsoluteCurrent": "/url_voorraad/car-parts-stock/result/engine-code/30/part/esp-computer/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/car-parts-stock/result/engine-code/30/part/esp-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, 2, 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 ('0471C') 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 '30%')) 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] = '0471C' 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 '30%'))))) [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], 826, 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, 232)) [V] ORDER BY [V].[VeldId], [V].[OrderId] FOR XML PATH('')), 1, 1, '') AS [Automate2Velden],  CASE WHEN [R].[GarantieToelichting] IS NOT NULL THEN (SELECT TOP 1 [TV].[Translation] FROM [Storage].dbo.[TranslateTextResult] [TV] WHERE [TV].[TextId] = (SELECT [TR].[TextId] FROM [Storage].dbo.[TranslateTextRecord] [TR] WHERE [TR].[RecordId] = [R].[RecordId] AND [TR].[TextTypeId] = 2) AND [TV].[LanguageId] IN (2, 2, 1) ORDER BY [TV].[LanguageId] DESC) END AS [GarantieTranslated],  CASE WHEN [R].[BijzonderheidInet] IS NOT NULL THEN (SELECT TOP 1 [TV].[Translation] FROM [Storage].dbo.[TranslateTextResult] [TV] WHERE [TV].[TextId] = (SELECT [TR].[TextId] FROM [Storage].dbo.[TranslateTextRecord] [TR] WHERE [TR].[RecordId] = [R].[RecordId] AND [TR].[TextTypeId] = 1) AND [TV].[LanguageId] IN (2, 2, 1) ORDER BY [TV].[LanguageId] DESC) END AS [BijzonderheidInetTranslated],  [xShopState] AS [ShopState],  CASE WHEN [R].[AldocModelCode] IS NOT NULL THEN (SELECT ISNULL((STUFF((SELECT '^' + [T3].[NaamInternet] + '~' + [T2].[NaamInternet] FROM [Basis].dbo.[AutomateModellenTranslated] [T2] LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [T3] ON [T3].[MerkId] = [T2].[MerkId] AND [T3].[LanguageId] = 2 WHERE [T2].[ModelId] IN (SELECT [T].[ModelId] FROM [Basis].dbo.[AldocModelKoppelingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode]) AND [T2].[LanguageId] = 2 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] = 2), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocTypeOmschrijvingen] [T] WHERE [T].[TypeId] = [R].[AldocTypeId] AND [T].[LanguageId] = 2), '')) 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] = 2 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],  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 '30%'), '30') ELSE [R].[Motorcodes] END AS [108],  [V19].[NaamLang] AS [19],  [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, 23, 241, 26, 25)) [R]  PIVOT (MAX([Waarde]) FOR [VeldId] IN ([184], [190], [135], [37], [18], [19], [23], [241], [26], [25])) AS [R]) [R]  LEFT JOIN [Basis].dbo.[AutomateVeldWaardenTranslated] [V19] ON [V19].[VeldId] = 19 AND [V19].[Waarde] = [19] AND [V19].[LanguageId] = 2   LEFT JOIN [Basis].dbo.[AutomateVeldWaardenTranslated] [V23] ON [V23].[VeldId] = 23 AND [V23].[Waarde] = [23] AND [V23].[LanguageId] = 2   LEFT JOIN [Basis].dbo.[AutomateModellenTranslated] [MOT] ON [MOT].[ModelId] = [R].[ModelID] AND [MOT].[LanguageId] = 2 AND [MOT].[Synoniem] = 0   LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [MET] ON [MET].[MerkId] = [MOT].[MerkId] AND [MET].[LanguageId] = 2   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,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": 10, "SizeMax": 150, "SetMax": false, "GetIndexMax": 1, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": { "17046946": 1, "15037810": 1, "20086950": 1, "17967040": 1, "17773089": 1, "2248131": 1, "11134365": 1, "13758796": 1, "15870042": 1, "21711985": 1 }, "Sort": "", "SortDirection": "Ascending", "CountryName": "United Kingdom", "CountryId": 826, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true }  }

Customer experiences

Others quickly found the right part and share their experience.