# [18-Aug-2025 09:51:06] /elitcar/www/ 108.61.209.243

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

Successfully disconnected from the database!
# [18-Aug-2025 09:51:08] /elitcar/www/bg/ajax/banners/pos_0.html?_=1755499856458 108.61.209.243
# [18-Aug-2025 09:51:08] /elitcar/www/bg/ajax/banners/pos_1.html?_=1755499856458 108.61.209.243
# [18-Aug-2025 09:51:08] /elitcar/www/bg/ajax/banners/pos_2.html?_=1755499856458 108.61.209.243
# [18-Aug-2025 09:51:08] /elitcar/www/bg/ajax/history/parts.html?_=1755499856459 108.61.209.243
# [18-Aug-2025 09:51:08] /elitcar/www/bg/ajax/promo.html?_=1755499856458 108.61.209.243
# [18-Aug-2025 09:51:08] /elitcar/www/bg/ajax/promo.html?_=1755499856458 108.61.209.243
# [18-Aug-2025 09:51:08] /elitcar/www/bg/ajax/users/bar.html?_=1755499856550 108.61.209.243

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

Successfully disconnected from the database!
# [18-Aug-2025 09:51:08] /elitcar/www/bg/ajax/banners/pos_0.html?_=1755499856458 108.61.209.243

set names utf8

SELECT
                `ID`,
                `Image`,
                `Title`,
                `Target`,
                `Position`
            FROM
                `elitcar_store`.`banners`
            WHERE
                (CURDATE() BETWEEN `StartFrom` AND `EndTo` OR `EndTo` IS NULL) AND
                `Image` != '' AND
                `Position` = 0 AND
                `Visible` = 1 AND
                `Domain` & 1
        ORDER BY `PostDate` DESC

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

UPDATE `elitcar_store`.`banners` SET `Impressions` = `Impressions` + 1 WHERE `ID` IN (198)
# [18-Aug-2025 09:51:08] /elitcar/www/bg/ajax/banners/pos_2.html?_=1755499856458 108.61.209.243

set names utf8

SELECT
                `ID`,
                `Image`,
                `Title`,
                `Target`,
                `Position`
            FROM
                `elitcar_store`.`banners`
            WHERE
                (CURDATE() BETWEEN `StartFrom` AND `EndTo` OR `EndTo` IS NULL) AND
                `Image` != '' AND
                `Position` = 2 AND
                `Visible` = 1 AND
                `Domain` & 1
        ORDER BY RAND() LIMIT 3

Successfully disconnected from the database!

Successfully disconnected from the database!

SELECT TOP 5
                Item_Id
            FROM
                N_SalesPrice
            WHERE
                Comp_id = '001' AND
                _promotype = 1 AND
                (StartingDate <= GETDATE() OR StartingDate IS NULL) AND
                (EndingDate >= GETDATE() OR EndingDate IS NULL)
            ORDER BY NEWID()
# [18-Aug-2025 09:51:08] /elitcar/www/bg/ajax/banners/pos_1.html?_=1755499856458 108.61.209.243

set names utf8

SELECT
                `ID`,
                `Image`,
                `Title`,
                `Target`,
                `Position`
            FROM
                `elitcar_store`.`banners`
            WHERE
                (CURDATE() BETWEEN `StartFrom` AND `EndTo` OR `EndTo` IS NULL) AND
                `Image` != '' AND
                `Position` = 1 AND
                `Visible` = 1 AND
                `Domain` & 1
        ORDER BY RAND() LIMIT 1

Successfully disconnected from the database!

Successfully disconnected from the database!

set names utf8

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'UNITE U256'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'UNITE U256'
            LIMIT 1

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'UNITE U2011-380V'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'UNITE U2011-380V'
            LIMIT 1

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'ECS OP101'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'ECS OP101'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'ECS OP101'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'UNITE U823S'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'UNITE U823S'
            LIMIT 1

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'TEKTINO RCC-6S-ID'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'TEKTINO RCC-6S-ID'
            LIMIT 1

SELECT TOP 5
                Item_Id
            FROM
                N_SalesPrice
            WHERE
                Comp_id = '001' AND
                _promotype = 2 AND
                (StartingDate <= GETDATE() OR StartingDate IS NULL) AND
                (EndingDate >= GETDATE() OR EndingDate IS NULL)
            ORDER BY NEWID()

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'MB B6 6 95 7516'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'MB B6 6 95 7516'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'MB B6 6 95 7516'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'UNITE SG-2P'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'UNITE SG-2P'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'UNITE SG-2P'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'UNITE DS-500'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'UNITE DS-500'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'UNITE DS-500'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'UNITE U-DP7'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'UNITE U-DP7'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'UNITE U-DP7'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'UNITE CR-3M'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'UNITE CR-3M'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'UNITE CR-3M'
            ORDER BY N_Item.Id

SELECT TOP 5
                Item_Id
            FROM
                N_SalesPrice
            WHERE
                Comp_id = '001' AND
                _promotype = 3 AND
                (StartingDate <= GETDATE() OR StartingDate IS NULL) AND
                (EndingDate >= GETDATE() OR EndingDate IS NULL)
            ORDER BY NEWID()

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BGS 1192'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BGS 1192'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BGS 1192'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BGS 2287'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BGS 2287'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BGS 2287'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BGS 98098'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BGS 98098'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BGS 98098'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BGS 3082'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BGS 3082'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BGS 3082'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BGS 7073'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BGS 7073'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BGS 7073'
            ORDER BY N_Item.Id

SELECT TOP 5
                Item_Id
            FROM
                N_SalesPrice
            WHERE
                Comp_id = '001' AND
                _promotype = 4 AND
                (StartingDate <= GETDATE() OR StartingDate IS NULL) AND
                (EndingDate >= GETDATE() OR EndingDate IS NULL)
            ORDER BY NEWID()

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'ECS 14716-7.4'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'ECS 14716-7.4'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'ECS 14716-7.4'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BOSCH 0 684 400 253'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BOSCH 0 684 400 253'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BOSCH 0 684 400 253'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BOSCH F 026 C00 468'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BOSCH F 026 C00 468'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BOSCH F 026 C00 468'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BOSCH F 026 C00 467'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BOSCH F 026 C00 467'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BOSCH F 026 C00 467'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BOSCH F 026 C00 469'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BOSCH F 026 C00 469'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BOSCH F 026 C00 469'
            ORDER BY N_Item.Id

Successfully disconnected from the database!
# [18-Aug-2025 09:51:14] /elitcar/www/bg/ajax/prices/promo/W00gVU5JVEUgVTI1Nl0.html?_=1755499862901 108.61.209.243
# [18-Aug-2025 09:51:14] /elitcar/www/bg/ajax/prices/promo/W00gVU5JVEUgVTIwMTEtMzgwVl0.html?_=1755499862902 108.61.209.243
# [18-Aug-2025 09:51:14] /elitcar/www/bg/ajax/prices/promo/W00gRUNTIE9QMTAxXQ.html?_=1755499862902 108.61.209.243
# [18-Aug-2025 09:51:14] /elitcar/www/bg/ajax/prices/promo/W00gVEVLVElOTyBSQ0MtNlMtSURd.html?_=1755499862903 108.61.209.243
# [18-Aug-2025 09:51:14] /elitcar/www/bg/ajax/prices/promo/W00gTUIgQjYgNiA5NSA3NTE2XQ.html?_=1755499862903 108.61.209.243
# [18-Aug-2025 09:51:14] /elitcar/www/bg/ajax/prices/promo/W00gVU5JVEUgVTgyM1Nd.html?_=1755499862903 108.61.209.243

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT * FROM  fn_EShopItemInfo_New('UNITE U256', '', '', '');

SELECT * FROM  fn_EShopItemInfo_New('TEKTINO RCC-6S-ID', '', '', '');

SELECT * FROM  fn_EShopItemInfo_New('ECS OP101', '', '', '');

SELECT * FROM  fn_EShopItemInfo_New('UNITE U2011-380V', '', '', '');

SELECT * FROM  fn_EShopItemInfo_New('UNITE U823S', '', '', '');

SELECT * FROM  fn_EShopItemInfo_New('MB B6 6 95 7516', '', '', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('TEKTINO RCC-6S-ID', '', '')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('ECS OP101', '', '')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('UNITE U2011-380V', '', '')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('MB B6 6 95 7516', '', '')

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'TEKTINO RCC-6S-ID'
            GROUP BY fComp_Id,fItem_Id

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'ECS OP101'
            GROUP BY fComp_Id,fItem_Id

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'UNITE U2011-380V'
            GROUP BY fComp_Id,fItem_Id

Successfully disconnected from the database!

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('UNITE U823S', '', '')

Successfully disconnected from the database!

Successfully disconnected from the database!

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'MB B6 6 95 7516'
            GROUP BY fComp_Id,fItem_Id
# [18-Aug-2025 09:51:17] /elitcar/www/bg/ajax/prices/promo/W00gVU5JVEUgU0ctMlBd.html?_=1755499862904 108.61.209.243
# [18-Aug-2025 09:51:17] /elitcar/www/bg/ajax/prices/promo/W00gVU5JVEUgRFMtNTAwXQ.html?_=1755499862904 108.61.209.243
# [18-Aug-2025 09:51:17] /elitcar/www/bg/ajax/prices/promo/W00gVU5JVEUgVS1EUDdd.html?_=1755499862904 108.61.209.243

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'UNITE U823S'
            GROUP BY fComp_Id,fItem_Id

Successfully disconnected from the database!

Successfully disconnected from the database!
# [18-Aug-2025 09:51:17] /elitcar/www/bg/ajax/prices/promo/W00gVU5JVEUgQ1ItM01d.html?_=1755499862904 108.61.209.243
# [18-Aug-2025 09:51:17] /elitcar/www/bg/ajax/prices/promo/W00gQkdTIDExOTJd.html?_=1755499862904 108.61.209.243

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT * FROM  fn_EShopItemInfo_New('UNITE SG-2P', '', '', '');

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT * FROM  fn_EShopItemInfo_New('UNITE U-DP7', '', '', '');

SELECT * FROM  fn_EShopItemInfo_New('UNITE DS-500', '', '', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('UNITE SG-2P', '', '')

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT * FROM  fn_EShopItemInfo_New('UNITE CR-3M', '', '', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('UNITE U-DP7', '', '')

SELECT * FROM  fn_EShopItemInfo_New('BGS 1192', '', '', '');

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'UNITE SG-2P'
            GROUP BY fComp_Id,fItem_Id

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('UNITE CR-3M', '', '')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('UNITE DS-500', '', '')

Successfully disconnected from the database!

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'UNITE CR-3M'
            GROUP BY fComp_Id,fItem_Id

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'UNITE U-DP7'
            GROUP BY fComp_Id,fItem_Id

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BGS 1192', '', '')

Successfully disconnected from the database!
# [18-Aug-2025 09:51:17] /elitcar/www/bg/ajax/prices/promo/W00gQkdTIDIyODdd.html?_=1755499862905 108.61.209.243

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'UNITE DS-500'
            GROUP BY fComp_Id,fItem_Id

Successfully disconnected from the database!

Successfully disconnected from the database!
# [18-Aug-2025 09:51:17] /elitcar/www/bg/ajax/prices/promo/W00gQkdTIDk4MDk4XQ.html?_=1755499862905 108.61.209.243

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'BGS 1192'
            GROUP BY fComp_Id,fItem_Id
# [18-Aug-2025 09:51:17] /elitcar/www/bg/ajax/prices/promo/W00gQkdTIDMwODJd.html?_=1755499862905 108.61.209.243

Successfully disconnected from the database!
# [18-Aug-2025 09:51:18] /elitcar/www/bg/ajax/prices/promo/W00gQkdTIDcwNzNd.html?_=1755499862906 108.61.209.243
# [18-Aug-2025 09:51:18] /elitcar/www/bg/ajax/prices/promo/W00gRUNTIDE0NzE2LTcuNF0.html?_=1755499862906 108.61.209.243

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT * FROM  fn_EShopItemInfo_New('BGS 2287', '', '', '');

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BGS 2287', '', '')

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT * FROM  fn_EShopItemInfo_New('BGS 3082', '', '', '');

SELECT * FROM  fn_EShopItemInfo_New('BGS 98098', '', '', '');

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BGS 3082', '', '')

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'BGS 2287'
            GROUP BY fComp_Id,fItem_Id

SELECT * FROM  fn_EShopItemInfo_New('BGS 7073', '', '', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BGS 98098', '', '')

Successfully disconnected from the database!

SELECT * FROM  fn_EShopItemInfo_New('ECS 14716-7.4', '', '', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BGS 7073', '', '')

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'BGS 3082'
            GROUP BY fComp_Id,fItem_Id

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('ECS 14716-7.4', '', '')

Successfully disconnected from the database!

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'BGS 98098'
            GROUP BY fComp_Id,fItem_Id
# [18-Aug-2025 09:51:18] /elitcar/www/bg/ajax/prices/promo/W00gQk9TQ0ggMCA2ODQgNDAwIDI1M10.html?_=1755499862906 108.61.209.243

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'BGS 7073'
            GROUP BY fComp_Id,fItem_Id

Successfully disconnected from the database!

Successfully disconnected from the database!

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'ECS 14716-7.4'
            GROUP BY fComp_Id,fItem_Id
# [18-Aug-2025 09:51:18] /elitcar/www/bg/ajax/prices/promo/W00gQk9TQ0ggRiAwMjYgQzAwIDQ2OF0.html?_=1755499862907 108.61.209.243

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('UNITE U256', '', '')
# [18-Aug-2025 09:51:18] /elitcar/www/bg/ajax/prices/promo/W00gQk9TQ0ggRiAwMjYgQzAwIDQ2N10.html?_=1755499862910 108.61.209.243

Successfully disconnected from the database!
# [18-Aug-2025 09:51:18] /elitcar/www/bg/ajax/prices/promo/W00gQk9TQ0ggRiAwMjYgQzAwIDQ2OV0.html?_=1755499862910 108.61.209.243

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'UNITE U256'
            GROUP BY fComp_Id,fItem_Id

Successfully disconnected from the database!

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT * FROM  fn_EShopItemInfo_New('BOSCH 0 684 400 253', '', '', '');

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BOSCH 0 684 400 253', '', '')

SELECT * FROM  fn_EShopItemInfo_New('BOSCH F 026 C00 467', '', '', '');

SELECT * FROM  fn_EShopItemInfo_New('BOSCH F 026 C00 468', '', '', '');

SELECT * FROM  fn_EShopItemInfo_New('BOSCH F 026 C00 469', '', '', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BOSCH F 026 C00 467', '', '')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BOSCH F 026 C00 468', '', '')

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'BOSCH 0 684 400 253'
            GROUP BY fComp_Id,fItem_Id

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BOSCH F 026 C00 469', '', '')

Successfully disconnected from the database!

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'BOSCH F 026 C00 468'
            GROUP BY fComp_Id,fItem_Id

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'BOSCH F 026 C00 469'
            GROUP BY fComp_Id,fItem_Id

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'BOSCH F 026 C00 467'
            GROUP BY fComp_Id,fItem_Id

Successfully disconnected from the database!

Successfully disconnected from the database!

Successfully disconnected from the database!
# [18-Aug-2025 09:53:32] /elitcar/www/ 108.61.209.243

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

Successfully disconnected from the database!
# [18-Aug-2025 09:53:33] /elitcar/www/bg/ajax/banners/pos_2.html?_=1755500001750 108.61.209.243
# [18-Aug-2025 09:53:33] /elitcar/www/bg/ajax/banners/pos_1.html?_=1755500001749 108.61.209.243
# [18-Aug-2025 09:53:33] /elitcar/www/bg/ajax/promo.html?_=1755500001750 108.61.209.243
# [18-Aug-2025 09:53:33] /elitcar/www/bg/ajax/promo.html?_=1755500001750 108.61.209.243
# [18-Aug-2025 09:53:33] /elitcar/www/bg/ajax/banners/pos_0.html?_=1755500001749 108.61.209.243
# [18-Aug-2025 09:53:33] /elitcar/www/bg/ajax/history/parts.html?_=1755500001751 108.61.209.243
# [18-Aug-2025 09:53:33] /elitcar/www/bg/ajax/users/bar.html?_=1755500001853 108.61.209.243

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'
# [18-Aug-2025 09:53:33] /elitcar/www/bg/ajax/banners/pos_1.html?_=1755500001749 108.61.209.243
# [18-Aug-2025 09:53:33] /elitcar/www/bg/ajax/banners/pos_2.html?_=1755500001750 108.61.209.243

set names utf8

set names utf8

SELECT
                `ID`,
                `Image`,
                `Title`,
                `Target`,
                `Position`
            FROM
                `elitcar_store`.`banners`
            WHERE
                (CURDATE() BETWEEN `StartFrom` AND `EndTo` OR `EndTo` IS NULL) AND
                `Image` != '' AND
                `Position` = 1 AND
                `Visible` = 1 AND
                `Domain` & 1
        ORDER BY RAND() LIMIT 1

SELECT
                `ID`,
                `Image`,
                `Title`,
                `Target`,
                `Position`
            FROM
                `elitcar_store`.`banners`
            WHERE
                (CURDATE() BETWEEN `StartFrom` AND `EndTo` OR `EndTo` IS NULL) AND
                `Image` != '' AND
                `Position` = 2 AND
                `Visible` = 1 AND
                `Domain` & 1
        ORDER BY RAND() LIMIT 3

Successfully disconnected from the database!

Successfully disconnected from the database!

Successfully disconnected from the database!

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT TOP 5
                Item_Id
            FROM
                N_SalesPrice
            WHERE
                Comp_id = '001' AND
                _promotype = 1 AND
                (StartingDate <= GETDATE() OR StartingDate IS NULL) AND
                (EndingDate >= GETDATE() OR EndingDate IS NULL)
            ORDER BY NEWID()
# [18-Aug-2025 09:53:33] /elitcar/www/bg/ajax/banners/pos_0.html?_=1755500001749 108.61.209.243

set names utf8

SELECT
                `ID`,
                `Image`,
                `Title`,
                `Target`,
                `Position`
            FROM
                `elitcar_store`.`banners`
            WHERE
                (CURDATE() BETWEEN `StartFrom` AND `EndTo` OR `EndTo` IS NULL) AND
                `Image` != '' AND
                `Position` = 0 AND
                `Visible` = 1 AND
                `Domain` & 1
        ORDER BY `PostDate` DESC

UPDATE `elitcar_store`.`banners` SET `Impressions` = `Impressions` + 1 WHERE `ID` IN (198)

Successfully disconnected from the database!

Successfully disconnected from the database!

set names utf8

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'TEKTINO RCC-6S-ID'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'TEKTINO RCC-6S-ID'
            LIMIT 1

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'UNITE U256'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'UNITE U256'
            LIMIT 1

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'TEKTINO RCC-8A'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'TEKTINO RCC-8A'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'TEKTINO RCC-8A'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'ECS OP101'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'ECS OP101'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'ECS OP101'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'UNITE U688'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'UNITE U688'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'UNITE U688'
            ORDER BY N_Item.Id

SELECT TOP 5
                Item_Id
            FROM
                N_SalesPrice
            WHERE
                Comp_id = '001' AND
                _promotype = 2 AND
                (StartingDate <= GETDATE() OR StartingDate IS NULL) AND
                (EndingDate >= GETDATE() OR EndingDate IS NULL)
            ORDER BY NEWID()

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'UNITE DS-500'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'UNITE DS-500'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'UNITE DS-500'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'MB B6 6 95 453164'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'MB B6 6 95 453164'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'MB B6 6 95 453164'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'MB B6 6 95 7516'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'MB B6 6 95 7516'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'MB B6 6 95 7516'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'UNITE OG-10'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'UNITE OG-10'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'UNITE OG-10'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'UNITE SG-2P'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'UNITE SG-2P'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'UNITE SG-2P'
            ORDER BY N_Item.Id

SELECT TOP 5
                Item_Id
            FROM
                N_SalesPrice
            WHERE
                Comp_id = '001' AND
                _promotype = 3 AND
                (StartingDate <= GETDATE() OR StartingDate IS NULL) AND
                (EndingDate >= GETDATE() OR EndingDate IS NULL)
            ORDER BY NEWID()

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BGS 1192'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BGS 1192'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BGS 1192'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BGS 7073'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BGS 7073'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BGS 7073'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BGS 98098'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BGS 98098'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BGS 98098'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BGS 5335'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BGS 5335'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BGS 5335'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BGS 447'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BGS 447'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BGS 447'
            ORDER BY N_Item.Id

SELECT TOP 5
                Item_Id
            FROM
                N_SalesPrice
            WHERE
                Comp_id = '001' AND
                _promotype = 4 AND
                (StartingDate <= GETDATE() OR StartingDate IS NULL) AND
                (EndingDate >= GETDATE() OR EndingDate IS NULL)
            ORDER BY NEWID()

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BOSCH F 026 C00 466'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BOSCH F 026 C00 466'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BOSCH F 026 C00 466'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'ECS 14716-7.4'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'ECS 14716-7.4'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'ECS 14716-7.4'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BOSCH F 026 C00 469'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BOSCH F 026 C00 469'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BOSCH F 026 C00 469'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BOSCH F 026 C00 467'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BOSCH F 026 C00 467'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BOSCH F 026 C00 467'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BOSCH F 026 C00 468'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BOSCH F 026 C00 468'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BOSCH F 026 C00 468'
            ORDER BY N_Item.Id

Successfully disconnected from the database!
# [18-Aug-2025 09:53:40] /elitcar/www/bg/ajax/prices/promo/W00gVU5JVEUgVTI1Nl0.html?_=1755500008239 108.61.209.243
# [18-Aug-2025 09:53:40] /elitcar/www/bg/ajax/prices/promo/W00gVEVLVElOTyBSQ0MtNlMtSURd.html?_=1755500008238 108.61.209.243
# [18-Aug-2025 09:53:40] /elitcar/www/bg/ajax/prices/promo/W00gVEVLVElOTyBSQ0MtOEFd.html?_=1755500008242 108.61.209.243
# [18-Aug-2025 09:53:40] /elitcar/www/bg/ajax/prices/promo/W00gVU5JVEUgVTY4OF0.html?_=1755500008243 108.61.209.243
# [18-Aug-2025 09:53:40] /elitcar/www/bg/ajax/prices/promo/W00gRUNTIE9QMTAxXQ.html?_=1755500008243 108.61.209.243
# [18-Aug-2025 09:53:40] /elitcar/www/bg/ajax/prices/promo/W00gVU5JVEUgRFMtNTAwXQ.html?_=1755500008243 108.61.209.243

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT * FROM  fn_EShopItemInfo_New('UNITE U688', '', '', '');

SELECT * FROM  fn_EShopItemInfo_New('UNITE U256', '', '', '');

SELECT * FROM  fn_EShopItemInfo_New('ECS OP101', '', '', '');

SELECT * FROM  fn_EShopItemInfo_New('TEKTINO RCC-8A', '', '', '');

SELECT * FROM  fn_EShopItemInfo_New('UNITE DS-500', '', '', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('ECS OP101', '', '')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('UNITE U688', '', '')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('UNITE U256', '', '')

SELECT * FROM  fn_EShopItemInfo_New('TEKTINO RCC-6S-ID', '', '', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('UNITE DS-500', '', '')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('TEKTINO RCC-8A', '', '')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('TEKTINO RCC-6S-ID', '', '')

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'UNITE U688'
            GROUP BY fComp_Id,fItem_Id

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'ECS OP101'
            GROUP BY fComp_Id,fItem_Id

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'UNITE U256'
            GROUP BY fComp_Id,fItem_Id

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'UNITE DS-500'
            GROUP BY fComp_Id,fItem_Id

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'TEKTINO RCC-8A'
            GROUP BY fComp_Id,fItem_Id

Successfully disconnected from the database!

Successfully disconnected from the database!

Successfully disconnected from the database!

Successfully disconnected from the database!

Successfully disconnected from the database!

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'TEKTINO RCC-6S-ID'
            GROUP BY fComp_Id,fItem_Id

Successfully disconnected from the database!
# [18-Aug-2025 09:53:40] /elitcar/www/bg/ajax/prices/promo/W00gTUIgQjYgNiA5NSA0NTMxNjRd.html?_=1755500008244 108.61.209.243
# [18-Aug-2025 09:53:40] /elitcar/www/bg/ajax/prices/promo/W00gTUIgQjYgNiA5NSA3NTE2XQ.html?_=1755500008244 108.61.209.243
# [18-Aug-2025 09:53:40] /elitcar/www/bg/ajax/prices/promo/W00gVU5JVEUgT0ctMTBd.html?_=1755500008244 108.61.209.243
# [18-Aug-2025 09:53:40] /elitcar/www/bg/ajax/prices/promo/W00gQkdTIDExOTJd.html?_=1755500008245 108.61.209.243
# [18-Aug-2025 09:53:40] /elitcar/www/bg/ajax/prices/promo/W00gVU5JVEUgU0ctMlBd.html?_=1755500008244 108.61.209.243
# [18-Aug-2025 09:53:40] /elitcar/www/bg/ajax/prices/promo/W00gQkdTIDcwNzNd.html?_=1755500008246 108.61.209.243

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT * FROM  fn_EShopItemInfo_New('UNITE OG-10', '', '', '');

SELECT * FROM  fn_EShopItemInfo_New('UNITE SG-2P', '', '', '');

SELECT * FROM  fn_EShopItemInfo_New('BGS 1192', '', '', '');

SELECT * FROM  fn_EShopItemInfo_New('MB B6 6 95 453164', '', '', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('UNITE OG-10', '', '')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('UNITE SG-2P', '', '')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BGS 1192', '', '')

SELECT * FROM  fn_EShopItemInfo_New('MB B6 6 95 7516', '', '', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('MB B6 6 95 453164', '', '')

SELECT * FROM  fn_EShopItemInfo_New('BGS 7073', '', '', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('MB B6 6 95 7516', '', '')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BGS 7073', '', '')

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'UNITE SG-2P'
            GROUP BY fComp_Id,fItem_Id

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'BGS 1192'
            GROUP BY fComp_Id,fItem_Id

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'UNITE OG-10'
            GROUP BY fComp_Id,fItem_Id

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'MB B6 6 95 453164'
            GROUP BY fComp_Id,fItem_Id

Successfully disconnected from the database!

Successfully disconnected from the database!

Successfully disconnected from the database!

Successfully disconnected from the database!

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'MB B6 6 95 7516'
            GROUP BY fComp_Id,fItem_Id

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'BGS 7073'
            GROUP BY fComp_Id,fItem_Id
# [18-Aug-2025 09:53:41] /elitcar/www/bg/ajax/prices/promo/W00gQkdTIDUzMzVd.html?_=1755500008246 108.61.209.243
# [18-Aug-2025 09:53:41] /elitcar/www/bg/ajax/prices/promo/W00gQkdTIDk4MDk4XQ.html?_=1755500008246 108.61.209.243
# [18-Aug-2025 09:53:41] /elitcar/www/bg/ajax/prices/promo/W00gQkdTIDQ0N10.html?_=1755500008247 108.61.209.243

Successfully disconnected from the database!

Successfully disconnected from the database!
# [18-Aug-2025 09:53:41] /elitcar/www/bg/ajax/prices/promo/W00gQk9TQ0ggRiAwMjYgQzAwIDQ2Nl0.html?_=1755500008247 108.61.209.243
# [18-Aug-2025 09:53:41] /elitcar/www/bg/ajax/prices/promo/W00gRUNTIDE0NzE2LTcuNF0.html?_=1755500008248 108.61.209.243
# [18-Aug-2025 09:53:41] /elitcar/www/bg/ajax/prices/promo/W00gQk9TQ0ggRiAwMjYgQzAwIDQ2OV0.html?_=1755500008248 108.61.209.243

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT * FROM  fn_EShopItemInfo_New('BGS 5335', '', '', '');

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT * FROM  fn_EShopItemInfo_New('BOSCH F 026 C00 466', '', '', '');

SELECT * FROM  fn_EShopItemInfo_New('BGS 98098', '', '', '');

SELECT * FROM  fn_EShopItemInfo_New('BGS 447', '', '', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BGS 5335', '', '')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BOSCH F 026 C00 466', '', '')

SELECT * FROM  fn_EShopItemInfo_New('BOSCH F 026 C00 469', '', '', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BGS 98098', '', '')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BGS 447', '', '')

SELECT * FROM  fn_EShopItemInfo_New('ECS 14716-7.4', '', '', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BOSCH F 026 C00 469', '', '')

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'BGS 5335'
            GROUP BY fComp_Id,fItem_Id

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'BOSCH F 026 C00 466'
            GROUP BY fComp_Id,fItem_Id

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('ECS 14716-7.4', '', '')

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'BGS 98098'
            GROUP BY fComp_Id,fItem_Id

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'BGS 447'
            GROUP BY fComp_Id,fItem_Id

Successfully disconnected from the database!

Successfully disconnected from the database!

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'BOSCH F 026 C00 469'
            GROUP BY fComp_Id,fItem_Id

Successfully disconnected from the database!

Successfully disconnected from the database!

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'ECS 14716-7.4'
            GROUP BY fComp_Id,fItem_Id

Successfully disconnected from the database!

Successfully disconnected from the database!
# [18-Aug-2025 09:53:41] /elitcar/www/bg/ajax/prices/promo/W00gQk9TQ0ggRiAwMjYgQzAwIDQ2N10.html?_=1755500008248 108.61.209.243
# [18-Aug-2025 09:53:41] /elitcar/www/bg/ajax/prices/promo/W00gQk9TQ0ggRiAwMjYgQzAwIDQ2OF0.html?_=1755500008248 108.61.209.243

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT
                        [N_ContragentEShopSettings].[ID],
                        [N_ContragentEShopSettings].[UserName],
                        [N_ContragentEShopSettings].[Password],
                        [N_ContragentEShopSettings].[Name],
                        [N_ContragentEShopSettings].[OELogin],
                        [N_ContragentEShopSettings].[_User_Id],
                        [N_ContragentEShopSettings].[Contragent_Id],
                        [N_ContragentEShopSettings].[ServiceBG_Id],
                        [N_ContragentEShopSettings].[Blocked],
                        [N_ContragentEShopSettings].[BlockOrders],
                        [N_ContragentEShopSettings].[_Comp_type],
                        [N_Contragent].[Comp_Id],
                        [N_Contragent].[_Route],
                        [N_Contragent].[Name2] AS ContragentName,
                        [N_Contragent].[Address] AS ContragentAddress,
                        [N_Contragent].[BULSTAT] AS ContragentBulstat,
                        [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                        [N_Contragent].[Contact] AS ContragentContact,
                        [N_Businessgroup].[IpAddressBG],
                        [N_Contragent].[PricesIncludingVAT],
                        [N_Contragent].[VATBus_PostingGroup] AS VAT,
                        [N_Contragent].[Currency_Id]
                    FROM
                        [N_ContragentEShopSettings]
                        INNER JOIN [N_Contragent] ON [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                        LEFT JOIN [N_Businessgroup] ON
                            [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                            [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                    WHERE
                        [N_ContragentEShopSettings].[UserName] = 'web0rder' AND
                        [N_ContragentEShopSettings].[Password] = 'web0rder'

SELECT * FROM  fn_EShopItemInfo_New('BOSCH F 026 C00 468', '', '', '');

SELECT * FROM  fn_EShopItemInfo_New('BOSCH F 026 C00 467', '', '', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BOSCH F 026 C00 468', '', '')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BOSCH F 026 C00 467', '', '')

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'BOSCH F 026 C00 468'
            GROUP BY fComp_Id,fItem_Id

Successfully disconnected from the database!

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'BOSCH F 026 C00 467'
            GROUP BY fComp_Id,fItem_Id

Successfully disconnected from the database!
# [18-Aug-2025 09:54:06] /elitcar/www/bg/ajax/users/login.html?_=1755500034924 108.61.209.243

SELECT
                    [ID]
                FROM
                    [N_ContragentEShopSettings]
                WHERE
                    [UserName] = 'toni25-1' AND
                    ([Password] = '205810' OR [_HASHPassword] = '0X879F3EA2A28AABBA25676F0B69959E535D22F25F' OR [_HASHPassword] LIKE '0X879F3EA2A28AABBA25676F0B69959E535D22F25F%' OR [_HASHPassword] LIKE '%0X879F3EA2A28AABBA25676F0B69959E535D22F25F')

Successfully disconnected from the database!
# [18-Aug-2025 09:54:07] /elitcar/www/ 108.61.209.243

SELECT
                                [N_ContragentEShopSettings].[ID],
                                [N_ContragentEShopSettings].[UserName],
                                [N_ContragentEShopSettings].[Password],
                                [N_ContragentEShopSettings].[Name],
                                [N_ContragentEShopSettings].[OELogin],
                                [N_ContragentEShopSettings].[_User_Id],
                                [N_ContragentEShopSettings].[Contragent_Id],
                                [N_ContragentEShopSettings].[ServiceBG_Id],
                                [N_ContragentEShopSettings].[Blocked],
                                [N_ContragentEShopSettings].[BlockOrders],
                                [N_ContragentEShopSettings].[_Comp_type],
                                [N_Contragent].[Comp_Id],
                                [N_DeliveryAddress].[Route_Id] AS _Route,
                                [N_Contragent].[Name2] AS ContragentName,
                                [N_Contragent].[Address] AS ContragentAddress,
                                [N_Contragent].[BULSTAT] AS ContragentBulstat,
                                [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                                [N_Contragent].[Contact] AS ContragentContact,
                                [N_Businessgroup].[IpAddressBG],
                                [N_Businessgroup].[FaxNo] AS ObjectPhone,
                                [N_Contragent].[VATBus_PostingGroup] AS VAT,
                                [N_Contragent].[Currency_Id],
                                [N_Contragent].CreditLimit_LCY AS Creditlimit,
                                [N_Contragent].PaymentTermsCode  AS PaymentTerms,
                                [N_Contragent].PaymentMethodCode  AS PaymentMethodCode,
                                COALESCE([N_DeliveryAddress]._TransportType, [N_Contragent].TransportType) AS TransportType,
                                -- [N_DeliveryAddress].Route_Id AS TransportType,
                                COALESCE([N_DeliveryAddress]._SubDocument_Code, [N_Contragent]._SaleDocSubType_EK) AS SaleDocSubType,
                                COALESCE([N_DeliveryAddress]._DefaultPrintForm, [N_Contragent]._DefaultPrintForm) AS DefaultPrintForm
                            FROM
                                [N_ContragentEShopSettings] WITH(NOLOCK)
                            INNER JOIN [N_Contragent] WITH(NOLOCK) ON
                                [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                            LEFT JOIN [N_DeliveryAddress] WITH(NOLOCK) ON
                                [N_Contragent].[Comp_Id] = [N_DeliveryAddress].[Comp_Id] AND
                                [N_Contragent].[Id] = [N_DeliveryAddress].[Contragent_Id] AND
                                [N_ContragentEShopSettings].[ServiceBG_Id] = [N_DeliveryAddress].[ServiceBG_Id]
                            LEFT JOIN [N_Businessgroup] WITH(NOLOCK) ON
                                [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                                [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                            WHERE
                                [N_ContragentEShopSettings].[ID] = '09894E3B1D454BE7BDD247403823C2ED'

SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => 
)


SELECT * FROM fn_GetNextRouteForClient('001', '040622F7496E4265932BDA8CD52BFEC0', '10', 0)

exec usp_CheckContragentDue_ElitCar_web '040622F7496E4265932BDA8CD52BFEC0', '001', 0, '2025-08-18', '10'
# [18-Aug-2025 09:54:08] /elitcar/www/ 108.61.209.243

set names utf8

SELECT * FROM `elitcar_store`.`history_autos` WHERE `MonetaUser` = 'toni25-1' AND `Language` = 'bg' ORDER BY PostDate DESC LIMIT 30

SELECT * FROM `elitcar_store`.`history_vin` WHERE `MonetaUser` = 'toni25-1' ORDER BY PostDate DESC LIMIT 30

Successfully disconnected from the database!
# [18-Aug-2025 09:54:09] /elitcar/www/bg/ajax/banners/pos_0.html?_=1755500037696 108.61.209.243
# [18-Aug-2025 09:54:09] /elitcar/www/bg/ajax/banners/pos_1.html?_=1755500037696 108.61.209.243
# [18-Aug-2025 09:54:09] /elitcar/www/bg/ajax/banners/pos_2.html?_=1755500037696 108.61.209.243
# [18-Aug-2025 09:54:09] /elitcar/www/bg/ajax/history/parts.html?_=1755500037697 108.61.209.243
# [18-Aug-2025 09:54:09] /elitcar/www/bg/ajax/promo.html?_=1755500037697 108.61.209.243
# [18-Aug-2025 09:54:09] /elitcar/www/bg/ajax/promo.html?_=1755500037697 108.61.209.243
# [18-Aug-2025 09:54:09] /elitcar/www/bg/ajax/users/bar.html?_=1755500037807 108.61.209.243

SELECT
                                [N_ContragentEShopSettings].[ID],
                                [N_ContragentEShopSettings].[UserName],
                                [N_ContragentEShopSettings].[Password],
                                [N_ContragentEShopSettings].[Name],
                                [N_ContragentEShopSettings].[OELogin],
                                [N_ContragentEShopSettings].[_User_Id],
                                [N_ContragentEShopSettings].[Contragent_Id],
                                [N_ContragentEShopSettings].[ServiceBG_Id],
                                [N_ContragentEShopSettings].[Blocked],
                                [N_ContragentEShopSettings].[BlockOrders],
                                [N_ContragentEShopSettings].[_Comp_type],
                                [N_Contragent].[Comp_Id],
                                [N_DeliveryAddress].[Route_Id] AS _Route,
                                [N_Contragent].[Name2] AS ContragentName,
                                [N_Contragent].[Address] AS ContragentAddress,
                                [N_Contragent].[BULSTAT] AS ContragentBulstat,
                                [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                                [N_Contragent].[Contact] AS ContragentContact,
                                [N_Businessgroup].[IpAddressBG],
                                [N_Businessgroup].[FaxNo] AS ObjectPhone,
                                [N_Contragent].[VATBus_PostingGroup] AS VAT,
                                [N_Contragent].[Currency_Id],
                                [N_Contragent].CreditLimit_LCY AS Creditlimit,
                                [N_Contragent].PaymentTermsCode  AS PaymentTerms,
                                [N_Contragent].PaymentMethodCode  AS PaymentMethodCode,
                                COALESCE([N_DeliveryAddress]._TransportType, [N_Contragent].TransportType) AS TransportType,
                                -- [N_DeliveryAddress].Route_Id AS TransportType,
                                COALESCE([N_DeliveryAddress]._SubDocument_Code, [N_Contragent]._SaleDocSubType_EK) AS SaleDocSubType,
                                COALESCE([N_DeliveryAddress]._DefaultPrintForm, [N_Contragent]._DefaultPrintForm) AS DefaultPrintForm
                            FROM
                                [N_ContragentEShopSettings] WITH(NOLOCK)
                            INNER JOIN [N_Contragent] WITH(NOLOCK) ON
                                [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                            LEFT JOIN [N_DeliveryAddress] WITH(NOLOCK) ON
                                [N_Contragent].[Comp_Id] = [N_DeliveryAddress].[Comp_Id] AND
                                [N_Contragent].[Id] = [N_DeliveryAddress].[Contragent_Id] AND
                                [N_ContragentEShopSettings].[ServiceBG_Id] = [N_DeliveryAddress].[ServiceBG_Id]
                            LEFT JOIN [N_Businessgroup] WITH(NOLOCK) ON
                                [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                                [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                            WHERE
                                [N_ContragentEShopSettings].[ID] = '09894E3B1D454BE7BDD247403823C2ED'

SELECT
                                [N_ContragentEShopSettings].[ID],
                                [N_ContragentEShopSettings].[UserName],
                                [N_ContragentEShopSettings].[Password],
                                [N_ContragentEShopSettings].[Name],
                                [N_ContragentEShopSettings].[OELogin],
                                [N_ContragentEShopSettings].[_User_Id],
                                [N_ContragentEShopSettings].[Contragent_Id],
                                [N_ContragentEShopSettings].[ServiceBG_Id],
                                [N_ContragentEShopSettings].[Blocked],
                                [N_ContragentEShopSettings].[BlockOrders],
                                [N_ContragentEShopSettings].[_Comp_type],
                                [N_Contragent].[Comp_Id],
                                [N_DeliveryAddress].[Route_Id] AS _Route,
                                [N_Contragent].[Name2] AS ContragentName,
                                [N_Contragent].[Address] AS ContragentAddress,
                                [N_Contragent].[BULSTAT] AS ContragentBulstat,
                                [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                                [N_Contragent].[Contact] AS ContragentContact,
                                [N_Businessgroup].[IpAddressBG],
                                [N_Businessgroup].[FaxNo] AS ObjectPhone,
                                [N_Contragent].[VATBus_PostingGroup] AS VAT,
                                [N_Contragent].[Currency_Id],
                                [N_Contragent].CreditLimit_LCY AS Creditlimit,
                                [N_Contragent].PaymentTermsCode  AS PaymentTerms,
                                [N_Contragent].PaymentMethodCode  AS PaymentMethodCode,
                                COALESCE([N_DeliveryAddress]._TransportType, [N_Contragent].TransportType) AS TransportType,
                                -- [N_DeliveryAddress].Route_Id AS TransportType,
                                COALESCE([N_DeliveryAddress]._SubDocument_Code, [N_Contragent]._SaleDocSubType_EK) AS SaleDocSubType,
                                COALESCE([N_DeliveryAddress]._DefaultPrintForm, [N_Contragent]._DefaultPrintForm) AS DefaultPrintForm
                            FROM
                                [N_ContragentEShopSettings] WITH(NOLOCK)
                            INNER JOIN [N_Contragent] WITH(NOLOCK) ON
                                [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                            LEFT JOIN [N_DeliveryAddress] WITH(NOLOCK) ON
                                [N_Contragent].[Comp_Id] = [N_DeliveryAddress].[Comp_Id] AND
                                [N_Contragent].[Id] = [N_DeliveryAddress].[Contragent_Id] AND
                                [N_ContragentEShopSettings].[ServiceBG_Id] = [N_DeliveryAddress].[ServiceBG_Id]
                            LEFT JOIN [N_Businessgroup] WITH(NOLOCK) ON
                                [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                                [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                            WHERE
                                [N_ContragentEShopSettings].[ID] = '09894E3B1D454BE7BDD247403823C2ED'

SELECT
                                [N_ContragentEShopSettings].[ID],
                                [N_ContragentEShopSettings].[UserName],
                                [N_ContragentEShopSettings].[Password],
                                [N_ContragentEShopSettings].[Name],
                                [N_ContragentEShopSettings].[OELogin],
                                [N_ContragentEShopSettings].[_User_Id],
                                [N_ContragentEShopSettings].[Contragent_Id],
                                [N_ContragentEShopSettings].[ServiceBG_Id],
                                [N_ContragentEShopSettings].[Blocked],
                                [N_ContragentEShopSettings].[BlockOrders],
                                [N_ContragentEShopSettings].[_Comp_type],
                                [N_Contragent].[Comp_Id],
                                [N_DeliveryAddress].[Route_Id] AS _Route,
                                [N_Contragent].[Name2] AS ContragentName,
                                [N_Contragent].[Address] AS ContragentAddress,
                                [N_Contragent].[BULSTAT] AS ContragentBulstat,
                                [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                                [N_Contragent].[Contact] AS ContragentContact,
                                [N_Businessgroup].[IpAddressBG],
                                [N_Businessgroup].[FaxNo] AS ObjectPhone,
                                [N_Contragent].[VATBus_PostingGroup] AS VAT,
                                [N_Contragent].[Currency_Id],
                                [N_Contragent].CreditLimit_LCY AS Creditlimit,
                                [N_Contragent].PaymentTermsCode  AS PaymentTerms,
                                [N_Contragent].PaymentMethodCode  AS PaymentMethodCode,
                                COALESCE([N_DeliveryAddress]._TransportType, [N_Contragent].TransportType) AS TransportType,
                                -- [N_DeliveryAddress].Route_Id AS TransportType,
                                COALESCE([N_DeliveryAddress]._SubDocument_Code, [N_Contragent]._SaleDocSubType_EK) AS SaleDocSubType,
                                COALESCE([N_DeliveryAddress]._DefaultPrintForm, [N_Contragent]._DefaultPrintForm) AS DefaultPrintForm
                            FROM
                                [N_ContragentEShopSettings] WITH(NOLOCK)
                            INNER JOIN [N_Contragent] WITH(NOLOCK) ON
                                [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                            LEFT JOIN [N_DeliveryAddress] WITH(NOLOCK) ON
                                [N_Contragent].[Comp_Id] = [N_DeliveryAddress].[Comp_Id] AND
                                [N_Contragent].[Id] = [N_DeliveryAddress].[Contragent_Id] AND
                                [N_ContragentEShopSettings].[ServiceBG_Id] = [N_DeliveryAddress].[ServiceBG_Id]
                            LEFT JOIN [N_Businessgroup] WITH(NOLOCK) ON
                                [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                                [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                            WHERE
                                [N_ContragentEShopSettings].[ID] = '09894E3B1D454BE7BDD247403823C2ED'

SELECT
                                [N_ContragentEShopSettings].[ID],
                                [N_ContragentEShopSettings].[UserName],
                                [N_ContragentEShopSettings].[Password],
                                [N_ContragentEShopSettings].[Name],
                                [N_ContragentEShopSettings].[OELogin],
                                [N_ContragentEShopSettings].[_User_Id],
                                [N_ContragentEShopSettings].[Contragent_Id],
                                [N_ContragentEShopSettings].[ServiceBG_Id],
                                [N_ContragentEShopSettings].[Blocked],
                                [N_ContragentEShopSettings].[BlockOrders],
                                [N_ContragentEShopSettings].[_Comp_type],
                                [N_Contragent].[Comp_Id],
                                [N_DeliveryAddress].[Route_Id] AS _Route,
                                [N_Contragent].[Name2] AS ContragentName,
                                [N_Contragent].[Address] AS ContragentAddress,
                                [N_Contragent].[BULSTAT] AS ContragentBulstat,
                                [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                                [N_Contragent].[Contact] AS ContragentContact,
                                [N_Businessgroup].[IpAddressBG],
                                [N_Businessgroup].[FaxNo] AS ObjectPhone,
                                [N_Contragent].[VATBus_PostingGroup] AS VAT,
                                [N_Contragent].[Currency_Id],
                                [N_Contragent].CreditLimit_LCY AS Creditlimit,
                                [N_Contragent].PaymentTermsCode  AS PaymentTerms,
                                [N_Contragent].PaymentMethodCode  AS PaymentMethodCode,
                                COALESCE([N_DeliveryAddress]._TransportType, [N_Contragent].TransportType) AS TransportType,
                                -- [N_DeliveryAddress].Route_Id AS TransportType,
                                COALESCE([N_DeliveryAddress]._SubDocument_Code, [N_Contragent]._SaleDocSubType_EK) AS SaleDocSubType,
                                COALESCE([N_DeliveryAddress]._DefaultPrintForm, [N_Contragent]._DefaultPrintForm) AS DefaultPrintForm
                            FROM
                                [N_ContragentEShopSettings] WITH(NOLOCK)
                            INNER JOIN [N_Contragent] WITH(NOLOCK) ON
                                [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                            LEFT JOIN [N_DeliveryAddress] WITH(NOLOCK) ON
                                [N_Contragent].[Comp_Id] = [N_DeliveryAddress].[Comp_Id] AND
                                [N_Contragent].[Id] = [N_DeliveryAddress].[Contragent_Id] AND
                                [N_ContragentEShopSettings].[ServiceBG_Id] = [N_DeliveryAddress].[ServiceBG_Id]
                            LEFT JOIN [N_Businessgroup] WITH(NOLOCK) ON
                                [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                                [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                            WHERE
                                [N_ContragentEShopSettings].[ID] = '09894E3B1D454BE7BDD247403823C2ED'

SELECT
                                [N_ContragentEShopSettings].[ID],
                                [N_ContragentEShopSettings].[UserName],
                                [N_ContragentEShopSettings].[Password],
                                [N_ContragentEShopSettings].[Name],
                                [N_ContragentEShopSettings].[OELogin],
                                [N_ContragentEShopSettings].[_User_Id],
                                [N_ContragentEShopSettings].[Contragent_Id],
                                [N_ContragentEShopSettings].[ServiceBG_Id],
                                [N_ContragentEShopSettings].[Blocked],
                                [N_ContragentEShopSettings].[BlockOrders],
                                [N_ContragentEShopSettings].[_Comp_type],
                                [N_Contragent].[Comp_Id],
                                [N_DeliveryAddress].[Route_Id] AS _Route,
                                [N_Contragent].[Name2] AS ContragentName,
                                [N_Contragent].[Address] AS ContragentAddress,
                                [N_Contragent].[BULSTAT] AS ContragentBulstat,
                                [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                                [N_Contragent].[Contact] AS ContragentContact,
                                [N_Businessgroup].[IpAddressBG],
                                [N_Businessgroup].[FaxNo] AS ObjectPhone,
                                [N_Contragent].[VATBus_PostingGroup] AS VAT,
                                [N_Contragent].[Currency_Id],
                                [N_Contragent].CreditLimit_LCY AS Creditlimit,
                                [N_Contragent].PaymentTermsCode  AS PaymentTerms,
                                [N_Contragent].PaymentMethodCode  AS PaymentMethodCode,
                                COALESCE([N_DeliveryAddress]._TransportType, [N_Contragent].TransportType) AS TransportType,
                                -- [N_DeliveryAddress].Route_Id AS TransportType,
                                COALESCE([N_DeliveryAddress]._SubDocument_Code, [N_Contragent]._SaleDocSubType_EK) AS SaleDocSubType,
                                COALESCE([N_DeliveryAddress]._DefaultPrintForm, [N_Contragent]._DefaultPrintForm) AS DefaultPrintForm
                            FROM
                                [N_ContragentEShopSettings] WITH(NOLOCK)
                            INNER JOIN [N_Contragent] WITH(NOLOCK) ON
                                [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                            LEFT JOIN [N_DeliveryAddress] WITH(NOLOCK) ON
                                [N_Contragent].[Comp_Id] = [N_DeliveryAddress].[Comp_Id] AND
                                [N_Contragent].[Id] = [N_DeliveryAddress].[Contragent_Id] AND
                                [N_ContragentEShopSettings].[ServiceBG_Id] = [N_DeliveryAddress].[ServiceBG_Id]
                            LEFT JOIN [N_Businessgroup] WITH(NOLOCK) ON
                                [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                                [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                            WHERE
                                [N_ContragentEShopSettings].[ID] = '09894E3B1D454BE7BDD247403823C2ED'

SELECT
                                [N_ContragentEShopSettings].[ID],
                                [N_ContragentEShopSettings].[UserName],
                                [N_ContragentEShopSettings].[Password],
                                [N_ContragentEShopSettings].[Name],
                                [N_ContragentEShopSettings].[OELogin],
                                [N_ContragentEShopSettings].[_User_Id],
                                [N_ContragentEShopSettings].[Contragent_Id],
                                [N_ContragentEShopSettings].[ServiceBG_Id],
                                [N_ContragentEShopSettings].[Blocked],
                                [N_ContragentEShopSettings].[BlockOrders],
                                [N_ContragentEShopSettings].[_Comp_type],
                                [N_Contragent].[Comp_Id],
                                [N_DeliveryAddress].[Route_Id] AS _Route,
                                [N_Contragent].[Name2] AS ContragentName,
                                [N_Contragent].[Address] AS ContragentAddress,
                                [N_Contragent].[BULSTAT] AS ContragentBulstat,
                                [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                                [N_Contragent].[Contact] AS ContragentContact,
                                [N_Businessgroup].[IpAddressBG],
                                [N_Businessgroup].[FaxNo] AS ObjectPhone,
                                [N_Contragent].[VATBus_PostingGroup] AS VAT,
                                [N_Contragent].[Currency_Id],
                                [N_Contragent].CreditLimit_LCY AS Creditlimit,
                                [N_Contragent].PaymentTermsCode  AS PaymentTerms,
                                [N_Contragent].PaymentMethodCode  AS PaymentMethodCode,
                                COALESCE([N_DeliveryAddress]._TransportType, [N_Contragent].TransportType) AS TransportType,
                                -- [N_DeliveryAddress].Route_Id AS TransportType,
                                COALESCE([N_DeliveryAddress]._SubDocument_Code, [N_Contragent]._SaleDocSubType_EK) AS SaleDocSubType,
                                COALESCE([N_DeliveryAddress]._DefaultPrintForm, [N_Contragent]._DefaultPrintForm) AS DefaultPrintForm
                            FROM
                                [N_ContragentEShopSettings] WITH(NOLOCK)
                            INNER JOIN [N_Contragent] WITH(NOLOCK) ON
                                [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                            LEFT JOIN [N_DeliveryAddress] WITH(NOLOCK) ON
                                [N_Contragent].[Comp_Id] = [N_DeliveryAddress].[Comp_Id] AND
                                [N_Contragent].[Id] = [N_DeliveryAddress].[Contragent_Id] AND
                                [N_ContragentEShopSettings].[ServiceBG_Id] = [N_DeliveryAddress].[ServiceBG_Id]
                            LEFT JOIN [N_Businessgroup] WITH(NOLOCK) ON
                                [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                                [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                            WHERE
                                [N_ContragentEShopSettings].[ID] = '09894E3B1D454BE7BDD247403823C2ED'

SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => 
)


SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => 
)


SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => 
)


SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => 
)


SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => 
)


SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => 
)


SELECT * FROM fn_GetNextRouteForClient('001', '040622F7496E4265932BDA8CD52BFEC0', '10', 0)

SELECT * FROM fn_GetNextRouteForClient('001', '040622F7496E4265932BDA8CD52BFEC0', '10', 0)

SELECT * FROM fn_GetNextRouteForClient('001', '040622F7496E4265932BDA8CD52BFEC0', '10', 0)

SELECT * FROM fn_GetNextRouteForClient('001', '040622F7496E4265932BDA8CD52BFEC0', '10', 0)

SELECT * FROM fn_GetNextRouteForClient('001', '040622F7496E4265932BDA8CD52BFEC0', '10', 0)

SELECT * FROM fn_GetNextRouteForClient('001', '040622F7496E4265932BDA8CD52BFEC0', '10', 0)

exec usp_CheckContragentDue_ElitCar_web '040622F7496E4265932BDA8CD52BFEC0', '001', 0, '2025-08-18', '10'

exec usp_CheckContragentDue_ElitCar_web '040622F7496E4265932BDA8CD52BFEC0', '001', 0, '2025-08-18', '10'

exec usp_CheckContragentDue_ElitCar_web '040622F7496E4265932BDA8CD52BFEC0', '001', 0, '2025-08-18', '10'

exec usp_CheckContragentDue_ElitCar_web '040622F7496E4265932BDA8CD52BFEC0', '001', 0, '2025-08-18', '10'

exec usp_CheckContragentDue_ElitCar_web '040622F7496E4265932BDA8CD52BFEC0', '001', 0, '2025-08-18', '10'
# [18-Aug-2025 09:54:10] /elitcar/www/bg/ajax/banners/pos_2.html?_=1755500037696 108.61.209.243

exec usp_CheckContragentDue_ElitCar_web '040622F7496E4265932BDA8CD52BFEC0', '001', 0, '2025-08-18', '10'

set names utf8

SELECT
                `ID`,
                `Image`,
                `Title`,
                `Target`,
                `Position`
            FROM
                `elitcar_store`.`banners`
            WHERE
                (CURDATE() BETWEEN `StartFrom` AND `EndTo` OR `EndTo` IS NULL) AND
                `Image` != '' AND
                `Position` = 2 AND
                `Visible` = 1 AND
                `Domain` & 1
        ORDER BY RAND() LIMIT 3

Successfully disconnected from the database!

SELECT TOP 5
                Item_Id
            FROM
                N_SalesPrice
            WHERE
                Comp_id = '001' AND
                _promotype = 1 AND
                (StartingDate <= GETDATE() OR StartingDate IS NULL) AND
                (EndingDate >= GETDATE() OR EndingDate IS NULL)
            ORDER BY NEWID()
# [18-Aug-2025 09:54:10] /elitcar/www/bg/ajax/history/parts.html?_=1755500037697 108.61.209.243

set names utf8

SELECT * FROM `elitcar_store`.`history_parts` WHERE `MonetaUser` = 'toni25-1' AND `Language` = 'bg' ORDER BY PostDate DESC LIMIT 30

Successfully disconnected from the database!
# [18-Aug-2025 09:54:10] /elitcar/www/bg/ajax/banners/pos_1.html?_=1755500037696 108.61.209.243

set names utf8

SELECT
                `ID`,
                `Image`,
                `Title`,
                `Target`,
                `Position`
            FROM
                `elitcar_store`.`banners`
            WHERE
                (CURDATE() BETWEEN `StartFrom` AND `EndTo` OR `EndTo` IS NULL) AND
                `Image` != '' AND
                `Position` = 1 AND
                `Visible` = 1 AND
                `Domain` & 1
        ORDER BY RAND() LIMIT 1

Successfully disconnected from the database!
# [18-Aug-2025 09:54:10] /elitcar/www/bg/ajax/users/bar.html?_=1755500037807 108.61.209.243

set names utf8

SELECT `Qty` FROM `elitcar_store`.`basket` WHERE `UserName` = 'toni25-1' AND `ContragentID` = '040622F7496E4265932BDA8CD52BFEC0' LIMIT 1

SELECT COUNT(*) FROM `elitcar_store`.`offers` WHERE `UserID` = '09894E3B1D454BE7BDD247403823C2ED' AND `Status` = 0

Successfully disconnected from the database!
# [18-Aug-2025 09:54:10] /elitcar/www/bg/ajax/banners/pos_0.html?_=1755500037696 108.61.209.243

set names utf8

SELECT
                `ID`,
                `Image`,
                `Title`,
                `Target`,
                `Position`
            FROM
                `elitcar_store`.`banners`
            WHERE
                (CURDATE() BETWEEN `StartFrom` AND `EndTo` OR `EndTo` IS NULL) AND
                `Image` != '' AND
                `Position` = 0 AND
                `Visible` = 1 AND
                `Domain` & 1
        ORDER BY `PostDate` DESC

UPDATE `elitcar_store`.`banners` SET `Impressions` = `Impressions` + 1 WHERE `ID` IN (198)

Successfully disconnected from the database!

set names utf8

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'TEKTINO RCC-8A'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'TEKTINO RCC-8A'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'TEKTINO RCC-8A'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'TEKTINO RCC-6S'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'TEKTINO RCC-6S'
            LIMIT 1

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'UNITE 71031940'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'UNITE 71031940'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'UNITE 71031940'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'UNITE U256'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'UNITE U256'
            LIMIT 1

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'UNITE U500S'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'UNITE U500S'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'UNITE U500S'
            ORDER BY N_Item.Id

SELECT TOP 5
                Item_Id
            FROM
                N_SalesPrice
            WHERE
                Comp_id = '001' AND
                _promotype = 2 AND
                (StartingDate <= GETDATE() OR StartingDate IS NULL) AND
                (EndingDate >= GETDATE() OR EndingDate IS NULL)
            ORDER BY NEWID()

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'UNITE CR-3M'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'UNITE CR-3M'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'UNITE CR-3M'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'UNITE U-DP7'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'UNITE U-DP7'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'UNITE U-DP7'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'MB B6 6 95 453164'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'MB B6 6 95 453164'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'MB B6 6 95 453164'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'UNITE GD-515'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'UNITE GD-515'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'UNITE GD-515'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'UNITE DS-500'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'UNITE DS-500'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'UNITE DS-500'
            ORDER BY N_Item.Id
# [18-Aug-2025 09:54:13] /elitcar/www/bg/ajax/basket.html?_=1755500041702 108.61.209.243

SELECT TOP 5
                Item_Id
            FROM
                N_SalesPrice
            WHERE
                Comp_id = '001' AND
                _promotype = 3 AND
                (StartingDate <= GETDATE() OR StartingDate IS NULL) AND
                (EndingDate >= GETDATE() OR EndingDate IS NULL)
            ORDER BY NEWID()

SELECT
                                [N_ContragentEShopSettings].[ID],
                                [N_ContragentEShopSettings].[UserName],
                                [N_ContragentEShopSettings].[Password],
                                [N_ContragentEShopSettings].[Name],
                                [N_ContragentEShopSettings].[OELogin],
                                [N_ContragentEShopSettings].[_User_Id],
                                [N_ContragentEShopSettings].[Contragent_Id],
                                [N_ContragentEShopSettings].[ServiceBG_Id],
                                [N_ContragentEShopSettings].[Blocked],
                                [N_ContragentEShopSettings].[BlockOrders],
                                [N_ContragentEShopSettings].[_Comp_type],
                                [N_Contragent].[Comp_Id],
                                [N_DeliveryAddress].[Route_Id] AS _Route,
                                [N_Contragent].[Name2] AS ContragentName,
                                [N_Contragent].[Address] AS ContragentAddress,
                                [N_Contragent].[BULSTAT] AS ContragentBulstat,
                                [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                                [N_Contragent].[Contact] AS ContragentContact,
                                [N_Businessgroup].[IpAddressBG],
                                [N_Businessgroup].[FaxNo] AS ObjectPhone,
                                [N_Contragent].[VATBus_PostingGroup] AS VAT,
                                [N_Contragent].[Currency_Id],
                                [N_Contragent].CreditLimit_LCY AS Creditlimit,
                                [N_Contragent].PaymentTermsCode  AS PaymentTerms,
                                [N_Contragent].PaymentMethodCode  AS PaymentMethodCode,
                                COALESCE([N_DeliveryAddress]._TransportType, [N_Contragent].TransportType) AS TransportType,
                                -- [N_DeliveryAddress].Route_Id AS TransportType,
                                COALESCE([N_DeliveryAddress]._SubDocument_Code, [N_Contragent]._SaleDocSubType_EK) AS SaleDocSubType,
                                COALESCE([N_DeliveryAddress]._DefaultPrintForm, [N_Contragent]._DefaultPrintForm) AS DefaultPrintForm
                            FROM
                                [N_ContragentEShopSettings] WITH(NOLOCK)
                            INNER JOIN [N_Contragent] WITH(NOLOCK) ON
                                [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                            LEFT JOIN [N_DeliveryAddress] WITH(NOLOCK) ON
                                [N_Contragent].[Comp_Id] = [N_DeliveryAddress].[Comp_Id] AND
                                [N_Contragent].[Id] = [N_DeliveryAddress].[Contragent_Id] AND
                                [N_ContragentEShopSettings].[ServiceBG_Id] = [N_DeliveryAddress].[ServiceBG_Id]
                            LEFT JOIN [N_Businessgroup] WITH(NOLOCK) ON
                                [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                                [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                            WHERE
                                [N_ContragentEShopSettings].[ID] = '09894E3B1D454BE7BDD247403823C2ED'

SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => 
)


SELECT * FROM fn_GetNextRouteForClient('001', '040622F7496E4265932BDA8CD52BFEC0', '10', 0)

exec usp_CheckContragentDue_ElitCar_web '040622F7496E4265932BDA8CD52BFEC0', '001', 0, '2025-08-18', '10'
# [18-Aug-2025 09:54:14] /elitcar/www/bg/ajax/basket.html?_=1755500041702 108.61.209.243

set names utf8

SELECT `Items` FROM `elitcar_store`.`basket` WHERE UserName = 'toni25-1' AND ContragentID = '040622F7496E4265932BDA8CD52BFEC0' LIMIT 1

SELECT `Unchecked` FROM `elitcar_store`.`basket` WHERE UserName = 'toni25-1' AND ContragentID = '040622F7496E4265932BDA8CD52BFEC0' LIMIT 1

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LYourOrder','LArticle','LQuantity','LAvailability','LPrice','LSum','LQty','LRemove','LTotal','LAddComment','LOrderCompletion','LDeliveryNoReturn','LOutOfStock','LDeposit','LSaveOffer','InfoOrderFaildTryLater','LOrderDeliveryComplete') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'ELRING 553.190' LIMIT 1

SELECT * FROM  fn_EShopItemInfo_New('ELRING 553.190', '040622F7496E4265932BDA8CD52BFEC0', '10', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('ELRING 553.190', '040622F7496E4265932BDA8CD52BFEC0', '10')

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'ELRING 553.190'
            GROUP BY fComp_Id,fItem_Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BGS 62605'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BGS 62605'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BGS 62605'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BGS 2287'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BGS 2287'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BGS 2287'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BGS 7073'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BGS 7073'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BGS 7073'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BGS 6058'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BGS 6058'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BGS 6058'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BGS 15216'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BGS 15216'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BGS 15216'
            ORDER BY N_Item.Id

SELECT TOP 5
                Item_Id
            FROM
                N_SalesPrice
            WHERE
                Comp_id = '001' AND
                _promotype = 4 AND
                (StartingDate <= GETDATE() OR StartingDate IS NULL) AND
                (EndingDate >= GETDATE() OR EndingDate IS NULL)
            ORDER BY NEWID()

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BOSCH F 026 C00 469'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BOSCH F 026 C00 469'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BOSCH F 026 C00 469'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BOSCH F 026 C00 468'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BOSCH F 026 C00 468'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BOSCH F 026 C00 468'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'ECS 14716-7.4'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'ECS 14716-7.4'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'ECS 14716-7.4'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BOSCH F 026 C00 467'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BOSCH F 026 C00 467'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BOSCH F 026 C00 467'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BOSCH F 026 C00 466'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `autokelly`.`file`.`FolderName`,
                `autokelly`.`file`.`Name` AS `FileName`,
                `autokelly`.`file`.`Suffix` AS `FileExt`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`ProducerCode`
            FROM
                `autokelly`.`product`
                INNER JOIN `autokelly`.`brand` ON `autokelly`.`brand`.`Id` =  `autokelly`.`product`.`BrandId`
                INNER JOIN `autokelly`.`codeprimary` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextnameconversion` ON `autokelly`.`producttextnameconversion`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`producttextname` ON `autokelly`.`producttextname`.`ProductTextNameConversionId` = `autokelly`.`producttextnameconversion`.`Id`
                LEFT JOIN `autokelly`.`productfile` ON `autokelly`.`productfile`.`ProductId` = `autokelly`.`product`.`Id` AND `autokelly`.`productfile`.`Order` = 1
                LEFT JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId` AND `autokelly`.`file`.`Suffix` = 'JPG'
                LEFT JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`product`.`Id` = 0
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BOSCH F 026 C00 466'
            LIMIT 1

SELECT
                N_Item.Id,
                N_Item.No2,
                N_Item.FullSearch_Id,
                N_Item.FullSearchTecDoc_Id,
                N_Producer.SUP_ID,
                N_Producer.SUP_BRAND,
                N_Producer.BRA_ID,
                N_Producer.BRA_BRAND,
                N_Item.Description,
                N_Item.C_Datetime,
                N_Item.VendorNo,
                N_Item.VendorItemNo,
                N_Item.Blocked,
                N_Item._TecDocNo,
                N_Item.ReusableGroup_Id,
                N_Producer.Name,
                N_Producer._Name2,
                N_Producer.WithoutQty
            FROM
                N_Item WITH(NOLOCK)
                INNER JOIN N_Producer WITH(NOLOCK) ON (N_Producer.Id = N_Item.Producer_code)
            WHERE
                N_Item.Comp_Id = '001' AND
                N_Item.Id = 'BOSCH F 026 C00 466'
            ORDER BY N_Item.Id

Successfully disconnected from the database!
# [18-Aug-2025 09:54:16] /elitcar/www/bg/ajax/prices/promo/W00gVEVLVElOTyBSQ0MtOEFd.html?_=1755500044913 108.61.209.243
# [18-Aug-2025 09:54:16] /elitcar/www/bg/ajax/prices/promo/W00gVEVLVElOTyBSQ0MtNlNd.html?_=1755500044913 108.61.209.243
# [18-Aug-2025 09:54:16] /elitcar/www/bg/ajax/prices/promo/W00gVU5JVEUgNzEwMzE5NDBd.html?_=1755500044914 108.61.209.243
# [18-Aug-2025 09:54:16] /elitcar/www/bg/ajax/prices/promo/W00gVU5JVEUgVTI1Nl0.html?_=1755500044914 108.61.209.243
# [18-Aug-2025 09:54:16] /elitcar/www/bg/ajax/prices/promo/W00gVU5JVEUgVTUwMFNd.html?_=1755500044914 108.61.209.243

SELECT
                                [N_ContragentEShopSettings].[ID],
                                [N_ContragentEShopSettings].[UserName],
                                [N_ContragentEShopSettings].[Password],
                                [N_ContragentEShopSettings].[Name],
                                [N_ContragentEShopSettings].[OELogin],
                                [N_ContragentEShopSettings].[_User_Id],
                                [N_ContragentEShopSettings].[Contragent_Id],
                                [N_ContragentEShopSettings].[ServiceBG_Id],
                                [N_ContragentEShopSettings].[Blocked],
                                [N_ContragentEShopSettings].[BlockOrders],
                                [N_ContragentEShopSettings].[_Comp_type],
                                [N_Contragent].[Comp_Id],
                                [N_DeliveryAddress].[Route_Id] AS _Route,
                                [N_Contragent].[Name2] AS ContragentName,
                                [N_Contragent].[Address] AS ContragentAddress,
                                [N_Contragent].[BULSTAT] AS ContragentBulstat,
                                [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                                [N_Contragent].[Contact] AS ContragentContact,
                                [N_Businessgroup].[IpAddressBG],
                                [N_Businessgroup].[FaxNo] AS ObjectPhone,
                                [N_Contragent].[VATBus_PostingGroup] AS VAT,
                                [N_Contragent].[Currency_Id],
                                [N_Contragent].CreditLimit_LCY AS Creditlimit,
                                [N_Contragent].PaymentTermsCode  AS PaymentTerms,
                                [N_Contragent].PaymentMethodCode  AS PaymentMethodCode,
                                COALESCE([N_DeliveryAddress]._TransportType, [N_Contragent].TransportType) AS TransportType,
                                -- [N_DeliveryAddress].Route_Id AS TransportType,
                                COALESCE([N_DeliveryAddress]._SubDocument_Code, [N_Contragent]._SaleDocSubType_EK) AS SaleDocSubType,
                                COALESCE([N_DeliveryAddress]._DefaultPrintForm, [N_Contragent]._DefaultPrintForm) AS DefaultPrintForm
                            FROM
                                [N_ContragentEShopSettings] WITH(NOLOCK)
                            INNER JOIN [N_Contragent] WITH(NOLOCK) ON
                                [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                            LEFT JOIN [N_DeliveryAddress] WITH(NOLOCK) ON
                                [N_Contragent].[Comp_Id] = [N_DeliveryAddress].[Comp_Id] AND
                                [N_Contragent].[Id] = [N_DeliveryAddress].[Contragent_Id] AND
                                [N_ContragentEShopSettings].[ServiceBG_Id] = [N_DeliveryAddress].[ServiceBG_Id]
                            LEFT JOIN [N_Businessgroup] WITH(NOLOCK) ON
                                [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                                [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                            WHERE
                                [N_ContragentEShopSettings].[ID] = '09894E3B1D454BE7BDD247403823C2ED'

SELECT
                                [N_ContragentEShopSettings].[ID],
                                [N_ContragentEShopSettings].[UserName],
                                [N_ContragentEShopSettings].[Password],
                                [N_ContragentEShopSettings].[Name],
                                [N_ContragentEShopSettings].[OELogin],
                                [N_ContragentEShopSettings].[_User_Id],
                                [N_ContragentEShopSettings].[Contragent_Id],
                                [N_ContragentEShopSettings].[ServiceBG_Id],
                                [N_ContragentEShopSettings].[Blocked],
                                [N_ContragentEShopSettings].[BlockOrders],
                                [N_ContragentEShopSettings].[_Comp_type],
                                [N_Contragent].[Comp_Id],
                                [N_DeliveryAddress].[Route_Id] AS _Route,
                                [N_Contragent].[Name2] AS ContragentName,
                                [N_Contragent].[Address] AS ContragentAddress,
                                [N_Contragent].[BULSTAT] AS ContragentBulstat,
                                [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                                [N_Contragent].[Contact] AS ContragentContact,
                                [N_Businessgroup].[IpAddressBG],
                                [N_Businessgroup].[FaxNo] AS ObjectPhone,
                                [N_Contragent].[VATBus_PostingGroup] AS VAT,
                                [N_Contragent].[Currency_Id],
                                [N_Contragent].CreditLimit_LCY AS Creditlimit,
                                [N_Contragent].PaymentTermsCode  AS PaymentTerms,
                                [N_Contragent].PaymentMethodCode  AS PaymentMethodCode,
                                COALESCE([N_DeliveryAddress]._TransportType, [N_Contragent].TransportType) AS TransportType,
                                -- [N_DeliveryAddress].Route_Id AS TransportType,
                                COALESCE([N_DeliveryAddress]._SubDocument_Code, [N_Contragent]._SaleDocSubType_EK) AS SaleDocSubType,
                                COALESCE([N_DeliveryAddress]._DefaultPrintForm, [N_Contragent]._DefaultPrintForm) AS DefaultPrintForm
                            FROM
                                [N_ContragentEShopSettings] WITH(NOLOCK)
                            INNER JOIN [N_Contragent] WITH(NOLOCK) ON
                                [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                            LEFT JOIN [N_DeliveryAddress] WITH(NOLOCK) ON
                                [N_Contragent].[Comp_Id] = [N_DeliveryAddress].[Comp_Id] AND
                                [N_Contragent].[Id] = [N_DeliveryAddress].[Contragent_Id] AND
                                [N_ContragentEShopSettings].[ServiceBG_Id] = [N_DeliveryAddress].[ServiceBG_Id]
                            LEFT JOIN [N_Businessgroup] WITH(NOLOCK) ON
                                [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                                [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                            WHERE
                                [N_ContragentEShopSettings].[ID] = '09894E3B1D454BE7BDD247403823C2ED'

SELECT
                                [N_ContragentEShopSettings].[ID],
                                [N_ContragentEShopSettings].[UserName],
                                [N_ContragentEShopSettings].[Password],
                                [N_ContragentEShopSettings].[Name],
                                [N_ContragentEShopSettings].[OELogin],
                                [N_ContragentEShopSettings].[_User_Id],
                                [N_ContragentEShopSettings].[Contragent_Id],
                                [N_ContragentEShopSettings].[ServiceBG_Id],
                                [N_ContragentEShopSettings].[Blocked],
                                [N_ContragentEShopSettings].[BlockOrders],
                                [N_ContragentEShopSettings].[_Comp_type],
                                [N_Contragent].[Comp_Id],
                                [N_DeliveryAddress].[Route_Id] AS _Route,
                                [N_Contragent].[Name2] AS ContragentName,
                                [N_Contragent].[Address] AS ContragentAddress,
                                [N_Contragent].[BULSTAT] AS ContragentBulstat,
                                [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                                [N_Contragent].[Contact] AS ContragentContact,
                                [N_Businessgroup].[IpAddressBG],
                                [N_Businessgroup].[FaxNo] AS ObjectPhone,
                                [N_Contragent].[VATBus_PostingGroup] AS VAT,
                                [N_Contragent].[Currency_Id],
                                [N_Contragent].CreditLimit_LCY AS Creditlimit,
                                [N_Contragent].PaymentTermsCode  AS PaymentTerms,
                                [N_Contragent].PaymentMethodCode  AS PaymentMethodCode,
                                COALESCE([N_DeliveryAddress]._TransportType, [N_Contragent].TransportType) AS TransportType,
                                -- [N_DeliveryAddress].Route_Id AS TransportType,
                                COALESCE([N_DeliveryAddress]._SubDocument_Code, [N_Contragent]._SaleDocSubType_EK) AS SaleDocSubType,
                                COALESCE([N_DeliveryAddress]._DefaultPrintForm, [N_Contragent]._DefaultPrintForm) AS DefaultPrintForm
                            FROM
                                [N_ContragentEShopSettings] WITH(NOLOCK)
                            INNER JOIN [N_Contragent] WITH(NOLOCK) ON
                                [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                            LEFT JOIN [N_DeliveryAddress] WITH(NOLOCK) ON
                                [N_Contragent].[Comp_Id] = [N_DeliveryAddress].[Comp_Id] AND
                                [N_Contragent].[Id] = [N_DeliveryAddress].[Contragent_Id] AND
                                [N_ContragentEShopSettings].[ServiceBG_Id] = [N_DeliveryAddress].[ServiceBG_Id]
                            LEFT JOIN [N_Businessgroup] WITH(NOLOCK) ON
                                [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                                [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                            WHERE
                                [N_ContragentEShopSettings].[ID] = '09894E3B1D454BE7BDD247403823C2ED'

SELECT
                                [N_ContragentEShopSettings].[ID],
                                [N_ContragentEShopSettings].[UserName],
                                [N_ContragentEShopSettings].[Password],
                                [N_ContragentEShopSettings].[Name],
                                [N_ContragentEShopSettings].[OELogin],
                                [N_ContragentEShopSettings].[_User_Id],
                                [N_ContragentEShopSettings].[Contragent_Id],
                                [N_ContragentEShopSettings].[ServiceBG_Id],
                                [N_ContragentEShopSettings].[Blocked],
                                [N_ContragentEShopSettings].[BlockOrders],
                                [N_ContragentEShopSettings].[_Comp_type],
                                [N_Contragent].[Comp_Id],
                                [N_DeliveryAddress].[Route_Id] AS _Route,
                                [N_Contragent].[Name2] AS ContragentName,
                                [N_Contragent].[Address] AS ContragentAddress,
                                [N_Contragent].[BULSTAT] AS ContragentBulstat,
                                [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                                [N_Contragent].[Contact] AS ContragentContact,
                                [N_Businessgroup].[IpAddressBG],
                                [N_Businessgroup].[FaxNo] AS ObjectPhone,
                                [N_Contragent].[VATBus_PostingGroup] AS VAT,
                                [N_Contragent].[Currency_Id],
                                [N_Contragent].CreditLimit_LCY AS Creditlimit,
                                [N_Contragent].PaymentTermsCode  AS PaymentTerms,
                                [N_Contragent].PaymentMethodCode  AS PaymentMethodCode,
                                COALESCE([N_DeliveryAddress]._TransportType, [N_Contragent].TransportType) AS TransportType,
                                -- [N_DeliveryAddress].Route_Id AS TransportType,
                                COALESCE([N_DeliveryAddress]._SubDocument_Code, [N_Contragent]._SaleDocSubType_EK) AS SaleDocSubType,
                                COALESCE([N_DeliveryAddress]._DefaultPrintForm, [N_Contragent]._DefaultPrintForm) AS DefaultPrintForm
                            FROM
                                [N_ContragentEShopSettings] WITH(NOLOCK)
                            INNER JOIN [N_Contragent] WITH(NOLOCK) ON
                                [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                            LEFT JOIN [N_DeliveryAddress] WITH(NOLOCK) ON
                                [N_Contragent].[Comp_Id] = [N_DeliveryAddress].[Comp_Id] AND
                                [N_Contragent].[Id] = [N_DeliveryAddress].[Contragent_Id] AND
                                [N_ContragentEShopSettings].[ServiceBG_Id] = [N_DeliveryAddress].[ServiceBG_Id]
                            LEFT JOIN [N_Businessgroup] WITH(NOLOCK) ON
                                [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                                [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                            WHERE
                                [N_ContragentEShopSettings].[ID] = '09894E3B1D454BE7BDD247403823C2ED'

SELECT
                                [N_ContragentEShopSettings].[ID],
                                [N_ContragentEShopSettings].[UserName],
                                [N_ContragentEShopSettings].[Password],
                                [N_ContragentEShopSettings].[Name],
                                [N_ContragentEShopSettings].[OELogin],
                                [N_ContragentEShopSettings].[_User_Id],
                                [N_ContragentEShopSettings].[Contragent_Id],
                                [N_ContragentEShopSettings].[ServiceBG_Id],
                                [N_ContragentEShopSettings].[Blocked],
                                [N_ContragentEShopSettings].[BlockOrders],
                                [N_ContragentEShopSettings].[_Comp_type],
                                [N_Contragent].[Comp_Id],
                                [N_DeliveryAddress].[Route_Id] AS _Route,
                                [N_Contragent].[Name2] AS ContragentName,
                                [N_Contragent].[Address] AS ContragentAddress,
                                [N_Contragent].[BULSTAT] AS ContragentBulstat,
                                [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                                [N_Contragent].[Contact] AS ContragentContact,
                                [N_Businessgroup].[IpAddressBG],
                                [N_Businessgroup].[FaxNo] AS ObjectPhone,
                                [N_Contragent].[VATBus_PostingGroup] AS VAT,
                                [N_Contragent].[Currency_Id],
                                [N_Contragent].CreditLimit_LCY AS Creditlimit,
                                [N_Contragent].PaymentTermsCode  AS PaymentTerms,
                                [N_Contragent].PaymentMethodCode  AS PaymentMethodCode,
                                COALESCE([N_DeliveryAddress]._TransportType, [N_Contragent].TransportType) AS TransportType,
                                -- [N_DeliveryAddress].Route_Id AS TransportType,
                                COALESCE([N_DeliveryAddress]._SubDocument_Code, [N_Contragent]._SaleDocSubType_EK) AS SaleDocSubType,
                                COALESCE([N_DeliveryAddress]._DefaultPrintForm, [N_Contragent]._DefaultPrintForm) AS DefaultPrintForm
                            FROM
                                [N_ContragentEShopSettings] WITH(NOLOCK)
                            INNER JOIN [N_Contragent] WITH(NOLOCK) ON
                                [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                            LEFT JOIN [N_DeliveryAddress] WITH(NOLOCK) ON
                                [N_Contragent].[Comp_Id] = [N_DeliveryAddress].[Comp_Id] AND
                                [N_Contragent].[Id] = [N_DeliveryAddress].[Contragent_Id] AND
                                [N_ContragentEShopSettings].[ServiceBG_Id] = [N_DeliveryAddress].[ServiceBG_Id]
                            LEFT JOIN [N_Businessgroup] WITH(NOLOCK) ON
                                [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                                [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                            WHERE
                                [N_ContragentEShopSettings].[ID] = '09894E3B1D454BE7BDD247403823C2ED'

SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => 
)


SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => 
)


SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => 
)


SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => 
)


SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => 
)


SELECT * FROM fn_GetNextRouteForClient('001', '040622F7496E4265932BDA8CD52BFEC0', '10', 0)

SELECT * FROM fn_GetNextRouteForClient('001', '040622F7496E4265932BDA8CD52BFEC0', '10', 0)

SELECT * FROM fn_GetNextRouteForClient('001', '040622F7496E4265932BDA8CD52BFEC0', '10', 0)

SELECT * FROM fn_GetNextRouteForClient('001', '040622F7496E4265932BDA8CD52BFEC0', '10', 0)

SELECT * FROM fn_GetNextRouteForClient('001', '040622F7496E4265932BDA8CD52BFEC0', '10', 0)

exec usp_CheckContragentDue_ElitCar_web '040622F7496E4265932BDA8CD52BFEC0', '001', 0, '2025-08-18', '10'

exec usp_CheckContragentDue_ElitCar_web '040622F7496E4265932BDA8CD52BFEC0', '001', 0, '2025-08-18', '10'

exec usp_CheckContragentDue_ElitCar_web '040622F7496E4265932BDA8CD52BFEC0', '001', 0, '2025-08-18', '10'

exec usp_CheckContragentDue_ElitCar_web '040622F7496E4265932BDA8CD52BFEC0', '001', 0, '2025-08-18', '10'

SELECT * FROM  fn_EShopItemInfo_New('TEKTINO RCC-8A', '040622F7496E4265932BDA8CD52BFEC0', '10', '');

SELECT * FROM  fn_EShopItemInfo_New('UNITE U256', '040622F7496E4265932BDA8CD52BFEC0', '10', '');

exec usp_CheckContragentDue_ElitCar_web '040622F7496E4265932BDA8CD52BFEC0', '001', 0, '2025-08-18', '10'

SELECT * FROM  fn_EShopItemInfo_New('UNITE U500S', '040622F7496E4265932BDA8CD52BFEC0', '10', '');

SELECT * FROM  fn_EShopItemInfo_New('TEKTINO RCC-6S', '040622F7496E4265932BDA8CD52BFEC0', '10', '');

SELECT * FROM  fn_EShopItemInfo_New('UNITE 71031940', '040622F7496E4265932BDA8CD52BFEC0', '10', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('TEKTINO RCC-8A', '040622F7496E4265932BDA8CD52BFEC0', '10')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('UNITE U500S', '040622F7496E4265932BDA8CD52BFEC0', '10')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('UNITE U256', '040622F7496E4265932BDA8CD52BFEC0', '10')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('TEKTINO RCC-6S', '040622F7496E4265932BDA8CD52BFEC0', '10')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('UNITE 71031940', '040622F7496E4265932BDA8CD52BFEC0', '10')

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'TEKTINO RCC-8A'
            GROUP BY fComp_Id,fItem_Id

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'UNITE U500S'
            GROUP BY fComp_Id,fItem_Id

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'UNITE U256'
            GROUP BY fComp_Id,fItem_Id

Successfully disconnected from the database!

Successfully disconnected from the database!

Successfully disconnected from the database!

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'UNITE 71031940'
            GROUP BY fComp_Id,fItem_Id

SELECT
                SUM(sQuantity) AS sQuantity
            FROM
                G_LItemEntry_0 E WITH(NOLOCK)
                INNER JOIN N_Businessgroup B WITH(NOLOCK) ON (B.Id=E.fBusinessGroup_Id) AND (B.Comp_Id=E.fComp_Id)
            WHERE
                E.SLevel=3 AND
                E.fComp_Id = '001' AND
                B.IsOuterBG = 1 AND
                E.fBusinessGroup_Id > 74 AND
                e.fItem_Id = 'TEKTINO RCC-6S'
            GROUP BY fComp_Id,fItem_Id

Successfully disconnected from the database!
# [18-Aug-2025 09:54:17] /elitcar/www/bg/ajax/prices/promo/W00gVU5JVEUgVS1EUDdd.html?_=1755500044916 108.61.209.243
# [18-Aug-2025 09:54:17] /elitcar/www/bg/ajax/prices/promo/W00gVU5JVEUgQ1ItM01d.html?_=1755500044914 108.61.209.243
# [18-Aug-2025 09:54:17] /elitcar/www/bg/ajax/prices/promo/W00gTUIgQjYgNiA5NSA0NTMxNjRd.html?_=1755500044916 108.61.209.243

Successfully disconnected from the database!
# [18-Aug-2025 09:54:17] /elitcar/www/bg/ajax/prices/promo/W00gVU5JVEUgR0QtNTE1XQ.html?_=1755500044916 108.61.209.243
# [18-Aug-2025 09:54:17] /elitcar/www/bg/ajax/prices/promo/W00gVU5JVEUgRFMtNTAwXQ.html?_=1755500044916 108.61.209.243

SELECT
                                [N_ContragentEShopSettings].[ID],
                                [N_ContragentEShopSettings].[UserName],
                                [N_ContragentEShopSettings].[Password],
                                [N_ContragentEShopSettings].[Name],
                                [N_ContragentEShopSettings].[OELogin],
                                [N_ContragentEShopSettings].[_User_Id],
                                [N_ContragentEShopSettings].[Contragent_Id],
                                [N_ContragentEShopSettings].[ServiceBG_Id],
                                [N_ContragentEShopSettings].[Blocked],
                                [N_ContragentEShopSettings].[BlockOrders],
                                [N_ContragentEShopSettings].[_Comp_type],
                                [N_Contragent].[Comp_Id],
                                [N_DeliveryAddress].[Route_Id] AS _Route,
                                [N_Contragent].[Name2] AS ContragentName,
                                [N_Contragent].[Address] AS ContragentAddress,
                                [N_Contragent].[BULSTAT] AS ContragentBulstat,
                                [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                                [N_Contragent].[Contact] AS ContragentContact,
                                [N_Businessgroup].[IpAddressBG],
                                [N_Businessgroup].[FaxNo] AS ObjectPhone,
                                [N_Contragent].[VATBus_PostingGroup] AS VAT,
                                [N_Contragent].[Currency_Id],
                                [N_Contragent].CreditLimit_LCY AS Creditlimit,
                                [N_Contragent].PaymentTermsCode  AS PaymentTerms,
                                [N_Contragent].PaymentMethodCode  AS PaymentMethodCode,
                                COALESCE([N_DeliveryAddress]._TransportType, [N_Contragent].TransportType) AS TransportType,
                                -- [N_DeliveryAddress].Route_Id AS TransportType,
                                COALESCE([N_DeliveryAddress]._SubDocument_Code, [N_Contragent]._SaleDocSubType_EK) AS SaleDocSubType,
                                COALESCE([N_DeliveryAddress]._DefaultPrintForm, [N_Contragent]._DefaultPrintForm) AS DefaultPrintForm
                            FROM
                                [N_ContragentEShopSettings] WITH(NOLOCK)
                            INNER JOIN [N_Contragent] WITH(NOLOCK) ON
                                [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                            LEFT JOIN [N_DeliveryAddress] WITH(NOLOCK) ON
                                [N_Contragent].[Comp_Id] = [N_DeliveryAddress].[Comp_Id] AND
                                [N_Contragent].[Id] = [N_DeliveryAddress].[Contragent_Id] AND
                                [N_ContragentEShopSettings].[ServiceBG_Id] = [N_DeliveryAddress].[ServiceBG_Id]
                            LEFT JOIN [N_Businessgroup] WITH(NOLOCK) ON
                                [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                                [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                            WHERE
                                [N_ContragentEShopSettings].[ID] = '09894E3B1D454BE7BDD247403823C2ED'

SELECT
                                [N_ContragentEShopSettings].[ID],
                                [N_ContragentEShopSettings].[UserName],
                                [N_ContragentEShopSettings].[Password],
                                [N_ContragentEShopSettings].[Name],
                                [N_ContragentEShopSettings].[OELogin],
                                [N_ContragentEShopSettings].[_User_Id],
                                [N_ContragentEShopSettings].[Contragent_Id],
                                [N_ContragentEShopSettings].[ServiceBG_Id],
                                [N_ContragentEShopSettings].[Blocked],
                                [N_ContragentEShopSettings].[BlockOrders],
                                [N_ContragentEShopSettings].[_Comp_type],
                                [N_Contragent].[Comp_Id],
                                [N_DeliveryAddress].[Route_Id] AS _Route,
                                [N_Contragent].[Name2] AS ContragentName,
                                [N_Contragent].[Address] AS ContragentAddress,
                                [N_Contragent].[BULSTAT] AS ContragentBulstat,
                                [N_Contragent].[VATRegistrationNo] AS ContragentVAT,
                                [N_Contragent].[Contact] AS ContragentContact,
                                [N_Businessgroup].[IpAddressBG],
                                [N_Businessgroup].[FaxNo] AS ObjectPhone,
                                [N_Contragent].[VATBus_PostingGroup] AS VAT,
                                [N_Contragent].[Currency_Id],
                                [N_Contragent].CreditLimit_LCY AS Creditlimit,
                                [N_Contragent].PaymentTermsCode  AS PaymentTerms,
                                [N_Contragent].PaymentMethodCode  AS PaymentMethodCode,
                                COALESCE([N_DeliveryAddress]._TransportType, [N_Contragent].TransportType) AS TransportType,
                                -- [N_DeliveryAddress].Route_Id AS TransportType,
                                COALESCE([N_DeliveryAddress]._SubDocument_Code, [N_Contragent]._SaleDocSubType_EK) AS SaleDocSubType,
                                COALESCE([N_DeliveryAddress]._DefaultPrintForm, [N_Contragent]._DefaultPrintForm) AS DefaultPrintForm
                            FROM
                                [N_ContragentEShopSettings] WITH(NOLOCK)
                            INNER JOIN [N_Contragent] WITH(NOLOCK) ON
                                [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                            LEFT JOIN [N_DeliveryAddress] WITH(NOLOCK) ON
                                [N_Contragent].[Comp_Id] = [N_DeliveryAddress].[Comp_Id] AND
                                [N_Contragent].[Id] = [N_DeliveryAddress].[Contragent_Id] AND
                                [N_ContragentEShopSettings].[ServiceBG_Id] = [N_DeliveryAddress].[ServiceBG_Id]
                            LEFT JOIN [N_Businessgroup] WITH(NOLOCK) ON
                                [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                                [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                            WHERE
                                [N_ContragentEShopSettings].[ID] = '09894E3B1D454BE7BDD247403823C2ED'

