SELECT * FROM  fn_EShopItemInfo_New('VAICO V30-0037', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', '');

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_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] = '8DAD158C30E643FEBFC767D77EBC2F9C'

SELECT * FROM fn_GetNextRouteForClient('001', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', 0)

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_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] = '8DAD158C30E643FEBFC767D77EBC2F9C'

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_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] = '8DAD158C30E643FEBFC767D77EBC2F9C'

exec usp_CheckContragentDue_ElitCar_web '548B32E74F7445DBAF5ABC08C7CD53D3', '001',0, '2025-04-15', '00'

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 AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('VAICO V30-0037', '548B32E74F7445DBAF5ABC08C7CD53D3', '00')

SELECT * FROM  fn_EShopItemInfo_New('SWAG 10 22 0001', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', '');

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', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', 0)

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 = 'VAICO V30-0037'
            GROUP BY fComp_Id,fItem_Id

exec usp_CheckContragentDue_ElitCar_web '548B32E74F7445DBAF5ABC08C7CD53D3', '001',0, '2025-04-15', '00'

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('SWAG 10 22 0001', '548B32E74F7445DBAF5ABC08C7CD53D3', '00')

SELECT * FROM fn_GetNextRouteForClient('001', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', 0)
# [15-Apr-2025 13:49:57] /elitcar/www/bg/ajax/prices/W00gVkFJQ08gVjMwLTAwMzdd.html?_=1744714195956 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'innovasys' AND
                `ContragentID` = '548B32E74F7445DBAF5ABC08C7CD53D3' AND
                `Items` LIKE '%W00gVkFJQ08gVjMwLTAwMzdd%'
            LIMIT 1

Successfully disconnected from the database!

SELECT * FROM fn_GetNextRouteForClient('001', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', 0)

SELECT * FROM  fn_EShopItemInfo_New('SWAG 10 22 0001', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', '');

exec usp_CheckContragentDue_ElitCar_web '548B32E74F7445DBAF5ABC08C7CD53D3', '001',0, '2025-04-15', '00'

exec usp_CheckContragentDue_ElitCar_web '548B32E74F7445DBAF5ABC08C7CD53D3', '001',0, '2025-04-15', '00'

exec usp_CheckContragentDue_ElitCar_web '548B32E74F7445DBAF5ABC08C7CD53D3', '001',0, '2025-04-15', '00'

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 = 'SWAG 10 22 0001'
            GROUP BY fComp_Id,fItem_Id

SELECT * FROM  fn_EShopItemInfo_New('VAICO V30-0037', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', '');

SELECT * FROM  fn_EShopItemInfo_New('MEYLE 014 038 0000', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', '');

SELECT * FROM  fn_EShopItemInfo_New('AIC 51282', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', '');
# [15-Apr-2025 13:49:57] /elitcar/www/bg/ajax/prices/W00gU1dBRyAxMCAyMiAwMDAxXQ.html?_=1744714195956 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'innovasys' AND
                `ContragentID` = '548B32E74F7445DBAF5ABC08C7CD53D3' AND
                `Items` LIKE '%W00gU1dBRyAxMCAyMiAwMDAxXQ%'
            LIMIT 1

Successfully disconnected from the database!

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('SWAG 10 22 0001', '548B32E74F7445DBAF5ABC08C7CD53D3', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('AIC 51282', '548B32E74F7445DBAF5ABC08C7CD53D3', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('MEYLE 014 038 0000', '548B32E74F7445DBAF5ABC08C7CD53D3', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('VAICO V30-0037', '548B32E74F7445DBAF5ABC08C7CD53D3', '00')

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 = 'SWAG 10 22 0001'
            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 = 'AIC 51282'
            GROUP BY fComp_Id,fItem_Id
# [15-Apr-2025 13:49:57] /elitcar/www/bg/ajax/prices/W00gU1dBRyAxMCAyMiAwMDAxXQ.html?_=1744714196800 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'innovasys' AND
                `ContragentID` = '548B32E74F7445DBAF5ABC08C7CD53D3' AND
                `Items` LIKE '%W00gU1dBRyAxMCAyMiAwMDAxXQ%'
            LIMIT 1

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 = 'MEYLE 014 038 0000'
            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 = 'VAICO V30-0037'
            GROUP BY fComp_Id,fItem_Id
# [15-Apr-2025 13:49:57] /elitcar/www/bg/ajax/prices/W00gQUlDIDUxMjgyXQ.html?_=1744714196801 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'innovasys' AND
                `ContragentID` = '548B32E74F7445DBAF5ABC08C7CD53D3' AND
                `Items` LIKE '%W00gQUlDIDUxMjgyXQ%'
            LIMIT 1

Successfully disconnected from the database!
# [15-Apr-2025 13:49:57] /elitcar/www/bg/ajax/prices/W00gTUVZTEUgMDE0IDAzOCAwMDAwXQ.html?_=1744714196801 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'innovasys' AND
                `ContragentID` = '548B32E74F7445DBAF5ABC08C7CD53D3' AND
                `Items` LIKE '%W00gTUVZTEUgMDE0IDAzOCAwMDAwXQ%'
            LIMIT 1

Successfully disconnected from the database!
# [15-Apr-2025 13:49:57] /elitcar/www/bg/ajax/prices/W00gVkFJQ08gVjMwLTAwMzdd.html?_=1744714196799 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'innovasys' AND
                `ContragentID` = '548B32E74F7445DBAF5ABC08C7CD53D3' AND
                `Items` LIKE '%W00gVkFJQ08gVjMwLTAwMzdd%'
            LIMIT 1

Successfully disconnected from the database!
# [15-Apr-2025 13:51:29] /elitcar/www/bg/ajax/prices/W00gVkFJQ08gVjMwLTAwMzdd.html?_=1744714289659 108.61.209.243
# [15-Apr-2025 13:51:29] /elitcar/www/bg/ajax/prices/W00gQUlDIDUxMjgyXQ.html?_=1744714289664 108.61.209.243
# [15-Apr-2025 13:51:29] /elitcar/www/bg/ajax/prices/W00gU1dBRyAxMCAyMiAwMDAxXQ.html?_=1744714289663 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_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] = '8DAD158C30E643FEBFC767D77EBC2F9C'

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_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] = '8DAD158C30E643FEBFC767D77EBC2F9C'

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_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] = '8DAD158C30E643FEBFC767D77EBC2F9C'

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', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', 0)

exec usp_CheckContragentDue_ElitCar_web '548B32E74F7445DBAF5ABC08C7CD53D3', '001',0, '2025-04-15', '00'

exec usp_CheckContragentDue_ElitCar_web '548B32E74F7445DBAF5ABC08C7CD53D3', '001',0, '2025-04-15', '00'

exec usp_CheckContragentDue_ElitCar_web '548B32E74F7445DBAF5ABC08C7CD53D3', '001',0, '2025-04-15', '00'

SELECT * FROM  fn_EShopItemInfo_New('AIC 51282', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', '');

SELECT * FROM  fn_EShopItemInfo_New('SWAG 10 22 0001', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', '');

SELECT * FROM  fn_EShopItemInfo_New('VAICO V30-0037', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('AIC 51282', '548B32E74F7445DBAF5ABC08C7CD53D3', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('SWAG 10 22 0001', '548B32E74F7445DBAF5ABC08C7CD53D3', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('VAICO V30-0037', '548B32E74F7445DBAF5ABC08C7CD53D3', '00')

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 = 'AIC 51282'
            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 = 'SWAG 10 22 0001'
            GROUP BY fComp_Id,fItem_Id
# [15-Apr-2025 13:51:30] /elitcar/www/bg/ajax/prices/W00gQUlDIDUxMjgyXQ.html?_=1744714289664 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'innovasys' AND
                `ContragentID` = '548B32E74F7445DBAF5ABC08C7CD53D3' AND
                `Items` LIKE '%W00gQUlDIDUxMjgyXQ%'
            LIMIT 1

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 = 'VAICO V30-0037'
            GROUP BY fComp_Id,fItem_Id
# [15-Apr-2025 13:51:30] /elitcar/www/bg/ajax/prices/W00gU1dBRyAxMCAyMiAwMDAxXQ.html?_=1744714289663 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'innovasys' AND
                `ContragentID` = '548B32E74F7445DBAF5ABC08C7CD53D3' AND
                `Items` LIKE '%W00gU1dBRyAxMCAyMiAwMDAxXQ%'
            LIMIT 1

Successfully disconnected from the database!
# [15-Apr-2025 13:51:30] /elitcar/www/bg/ajax/prices/W00gVkFJQ08gVjMwLTAwMzdd.html?_=1744714289659 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'innovasys' AND
                `ContragentID` = '548B32E74F7445DBAF5ABC08C7CD53D3' AND
                `Items` LIKE '%W00gVkFJQ08gVjMwLTAwMzdd%'
            LIMIT 1

Successfully disconnected from the database!
# [15-Apr-2025 13:51:30] /elitcar/www/bg/ajax/prices/W00gTUMgMzczNF0.html?_=1744714290736 108.61.209.243
# [15-Apr-2025 13:51:30] /elitcar/www/bg/ajax/prices/W00gR09PTSBPU0MtMDAxMV0.html?_=1744714290735 108.61.209.243
# [15-Apr-2025 13:51:30] /elitcar/www/bg/ajax/prices/W00gVFJJQ0xPIDMxMjE2OV0.html?_=1744714290739 108.61.209.243
# [15-Apr-2025 13:51:30] /elitcar/www/bg/ajax/prices/W00gTUVZTEUgMDE0IDAzOCAwMDAwXQ.html?_=1744714290738 108.61.209.243
# [15-Apr-2025 13:51:30] /elitcar/www/bg/ajax/prices/W00gVFJVQ0tURUMgMDIuMTAuMDQ2XQ.html?_=1744714290740 108.61.209.243
# [15-Apr-2025 13:51:30] /elitcar/www/bg/ajax/prices/W00gVFJJQ0xPIDMxMzE5N10.html?_=1744714290740 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_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] = '8DAD158C30E643FEBFC767D77EBC2F9C'

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_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] = '8DAD158C30E643FEBFC767D77EBC2F9C'

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_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] = '8DAD158C30E643FEBFC767D77EBC2F9C'

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_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] = '8DAD158C30E643FEBFC767D77EBC2F9C'

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
                                [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_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] = '8DAD158C30E643FEBFC767D77EBC2F9C'

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
                                [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_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] = '8DAD158C30E643FEBFC767D77EBC2F9C'

SELECT * FROM fn_GetNextRouteForClient('001', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', 0)

exec usp_CheckContragentDue_ElitCar_web '548B32E74F7445DBAF5ABC08C7CD53D3', '001',0, '2025-04-15', '00'

exec usp_CheckContragentDue_ElitCar_web '548B32E74F7445DBAF5ABC08C7CD53D3', '001',0, '2025-04-15', '00'

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] => 
)


exec usp_CheckContragentDue_ElitCar_web '548B32E74F7445DBAF5ABC08C7CD53D3', '001',0, '2025-04-15', '00'

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_EShopItemInfo_New('MEYLE 014 038 0000', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', '');

SELECT * FROM  fn_EShopItemInfo_New('TRICLO 312169', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', '');

SELECT * FROM  fn_EShopItemInfo_New('MC 3734', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', '');

exec usp_CheckContragentDue_ElitCar_web '548B32E74F7445DBAF5ABC08C7CD53D3', '001',0, '2025-04-15', '00'

SELECT * FROM fn_GetNextRouteForClient('001', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', 0)

SELECT * FROM  fn_EShopItemInfo_New('GOOM OSC-0011', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', '');

SELECT * FROM fn_GetNextRouteForClient('001', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', 0)

exec usp_CheckContragentDue_ElitCar_web '548B32E74F7445DBAF5ABC08C7CD53D3', '001',0, '2025-04-15', '00'

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('MEYLE 014 038 0000', '548B32E74F7445DBAF5ABC08C7CD53D3', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('MC 3734', '548B32E74F7445DBAF5ABC08C7CD53D3', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('TRICLO 312169', '548B32E74F7445DBAF5ABC08C7CD53D3', '00')

exec usp_CheckContragentDue_ElitCar_web '548B32E74F7445DBAF5ABC08C7CD53D3', '001',0, '2025-04-15', '00'

SELECT * FROM  fn_EShopItemInfo_New('TRUCKTEC 02.10.046', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('GOOM OSC-0011', '548B32E74F7445DBAF5ABC08C7CD53D3', '00')

SELECT * FROM  fn_EShopItemInfo_New('TRICLO 313197', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', '');

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 = 'MEYLE 014 038 0000'
            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 = 'MC 3734'
            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 = 'TRICLO 312169'
            GROUP BY fComp_Id,fItem_Id
# [15-Apr-2025 13:51:31] /elitcar/www/bg/ajax/prices/W00gTUVZTEUgMDE0IDAzOCAwMDAwXQ.html?_=1744714290738 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'innovasys' AND
                `ContragentID` = '548B32E74F7445DBAF5ABC08C7CD53D3' AND
                `Items` LIKE '%W00gTUVZTEUgMDE0IDAzOCAwMDAwXQ%'
            LIMIT 1

Successfully disconnected from the database!
# [15-Apr-2025 13:51:31] /elitcar/www/bg/ajax/prices/W00gTUMgMzczNF0.html?_=1744714290736 108.61.209.243

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('TRUCKTEC 02.10.046', '548B32E74F7445DBAF5ABC08C7CD53D3', '00')

set names utf8
# [15-Apr-2025 13:51:31] /elitcar/www/bg/ajax/prices/W00gVFJJQ0xPIDMxMjE2OV0.html?_=1744714290739 108.61.209.243

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'innovasys' AND
                `ContragentID` = '548B32E74F7445DBAF5ABC08C7CD53D3' AND
                `Items` LIKE '%W00gTUMgMzczNF0%'
            LIMIT 1

Successfully disconnected from the database!

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'innovasys' AND
                `ContragentID` = '548B32E74F7445DBAF5ABC08C7CD53D3' AND
                `Items` LIKE '%W00gVFJJQ0xPIDMxMjE2OV0%'
            LIMIT 1

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 = 'GOOM OSC-0011'
            GROUP BY fComp_Id,fItem_Id

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('TRICLO 313197', '548B32E74F7445DBAF5ABC08C7CD53D3', '00')
# [15-Apr-2025 13:51:31] /elitcar/www/bg/ajax/prices/W00gR09PTSBPU0MtMDAxMV0.html?_=1744714291279 108.61.209.243
# [15-Apr-2025 13:51:31] /elitcar/www/bg/ajax/prices/W00gTUVZTEUgMDE0IDAzOCAwMDAwXQ.html?_=1744714291282 108.61.209.243
# [15-Apr-2025 13:51:31] /elitcar/www/bg/ajax/prices/W00gTUMgMzczNF0.html?_=1744714291281 108.61.209.243
# [15-Apr-2025 13:51:31] /elitcar/www/bg/ajax/prices/W00gR09PTSBPU0MtMDAxMV0.html?_=1744714290735 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'innovasys' AND
                `ContragentID` = '548B32E74F7445DBAF5ABC08C7CD53D3' AND
                `Items` LIKE '%W00gR09PTSBPU0MtMDAxMV0%'
            LIMIT 1

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 = 'TRUCKTEC 02.10.046'
            GROUP BY fComp_Id,fItem_Id
# [15-Apr-2025 13:51:31] /elitcar/www/bg/ajax/prices/W00gVFJJQ0xPIDMxMjE2OV0.html?_=1744714291284 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 = 'TRICLO 313197'
            GROUP BY fComp_Id,fItem_Id
# [15-Apr-2025 13:51:31] /elitcar/www/bg/ajax/prices/W00gVFJVQ0tURUMgMDIuMTAuMDQ2XQ.html?_=1744714290740 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'innovasys' AND
                `ContragentID` = '548B32E74F7445DBAF5ABC08C7CD53D3' AND
                `Items` LIKE '%W00gVFJVQ0tURUMgMDIuMTAuMDQ2XQ%'
            LIMIT 1

Successfully disconnected from the database!
# [15-Apr-2025 13:51:31] /elitcar/www/bg/ajax/prices/W00gVFJJQ0xPIDMxMzE5N10.html?_=1744714290740 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'innovasys' AND
                `ContragentID` = '548B32E74F7445DBAF5ABC08C7CD53D3' AND
                `Items` LIKE '%W00gVFJJQ0xPIDMxMzE5N10%'
            LIMIT 1

Successfully disconnected from the database!
# [15-Apr-2025 13:51:31] /elitcar/www/bg/ajax/prices/W00gVFJJQ0xPIDMxMzE5N10.html?_=1744714291284 108.61.209.243
# [15-Apr-2025 13:51:31] /elitcar/www/bg/ajax/prices/W00gVFJVQ0tURUMgMDIuMTAuMDQ2XQ.html?_=1744714291285 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_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] = '8DAD158C30E643FEBFC767D77EBC2F9C'

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_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] = '8DAD158C30E643FEBFC767D77EBC2F9C'

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_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] = '8DAD158C30E643FEBFC767D77EBC2F9C'

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_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] = '8DAD158C30E643FEBFC767D77EBC2F9C'

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', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', 0)

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_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] = '8DAD158C30E643FEBFC767D77EBC2F9C'

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_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] = '8DAD158C30E643FEBFC767D77EBC2F9C'

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', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', 0)

exec usp_CheckContragentDue_ElitCar_web '548B32E74F7445DBAF5ABC08C7CD53D3', '001',0, '2025-04-15', '00'

SELECT * FROM fn_GetNextRouteForClient('001', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', 0)

exec usp_CheckContragentDue_ElitCar_web '548B32E74F7445DBAF5ABC08C7CD53D3', '001',0, '2025-04-15', '00'

SELECT * FROM  fn_EShopItemInfo_New('GOOM OSC-0011', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', '');

SELECT * FROM fn_GetNextRouteForClient('001', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', 0)

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] => 
)


exec usp_CheckContragentDue_ElitCar_web '548B32E74F7445DBAF5ABC08C7CD53D3', '001',0, '2025-04-15', '00'

SELECT * FROM  fn_EShopItemInfo_New('MC 3734', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', '');

exec usp_CheckContragentDue_ElitCar_web '548B32E74F7445DBAF5ABC08C7CD53D3', '001',0, '2025-04-15', '00'

SELECT * FROM  fn_EShopItemInfo_New('MEYLE 014 038 0000', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', '');

SELECT * FROM fn_GetNextRouteForClient('001', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', 0)

SELECT * FROM  fn_EShopItemInfo_New('TRICLO 312169', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', '');

SELECT * FROM fn_GetNextRouteForClient('001', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', 0)

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('GOOM OSC-0011', '548B32E74F7445DBAF5ABC08C7CD53D3', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('MC 3734', '548B32E74F7445DBAF5ABC08C7CD53D3', '00')

exec usp_CheckContragentDue_ElitCar_web '548B32E74F7445DBAF5ABC08C7CD53D3', '001',0, '2025-04-15', '00'

exec usp_CheckContragentDue_ElitCar_web '548B32E74F7445DBAF5ABC08C7CD53D3', '001',0, '2025-04-15', '00'

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('MEYLE 014 038 0000', '548B32E74F7445DBAF5ABC08C7CD53D3', '00')

SELECT * FROM  fn_EShopItemInfo_New('TRICLO 313197', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('TRICLO 312169', '548B32E74F7445DBAF5ABC08C7CD53D3', '00')

SELECT * FROM  fn_EShopItemInfo_New('TRUCKTEC 02.10.046', '548B32E74F7445DBAF5ABC08C7CD53D3', '00', '');

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 = 'GOOM OSC-0011'
            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 = 'MC 3734'
            GROUP BY fComp_Id,fItem_Id
# [15-Apr-2025 13:51:31] /elitcar/www/bg/ajax/prices/W00gR09PTSBPU0MtMDAxMV0.html?_=1744714291279 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'innovasys' AND
                `ContragentID` = '548B32E74F7445DBAF5ABC08C7CD53D3' AND
                `Items` LIKE '%W00gR09PTSBPU0MtMDAxMV0%'
            LIMIT 1

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 = 'MEYLE 014 038 0000'
            GROUP BY fComp_Id,fItem_Id
# [15-Apr-2025 13:51:32] /elitcar/www/bg/ajax/prices/W00gTUMgMzczNF0.html?_=1744714291281 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'innovasys' AND
                `ContragentID` = '548B32E74F7445DBAF5ABC08C7CD53D3' AND
                `Items` LIKE '%W00gTUMgMzczNF0%'
            LIMIT 1

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 = 'TRICLO 312169'
            GROUP BY fComp_Id,fItem_Id
# [15-Apr-2025 13:51:32] /elitcar/www/bg/ajax/prices/W00gTUVZTEUgMDE0IDAzOCAwMDAwXQ.html?_=1744714291282 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'innovasys' AND
                `ContragentID` = '548B32E74F7445DBAF5ABC08C7CD53D3' AND
                `Items` LIKE '%W00gTUVZTEUgMDE0IDAzOCAwMDAwXQ%'
            LIMIT 1

Successfully disconnected from the database!

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('TRUCKTEC 02.10.046', '548B32E74F7445DBAF5ABC08C7CD53D3', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('TRICLO 313197', '548B32E74F7445DBAF5ABC08C7CD53D3', '00')
# [15-Apr-2025 13:51:32] /elitcar/www/bg/ajax/prices/W00gVFJJQ0xPIDMxMjE2OV0.html?_=1744714291284 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'innovasys' AND
                `ContragentID` = '548B32E74F7445DBAF5ABC08C7CD53D3' AND
                `Items` LIKE '%W00gVFJJQ0xPIDMxMjE2OV0%'
            LIMIT 1

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 = 'TRUCKTEC 02.10.046'
            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 = 'TRICLO 313197'
            GROUP BY fComp_Id,fItem_Id
# [15-Apr-2025 13:51:32] /elitcar/www/bg/ajax/prices/W00gVFJVQ0tURUMgMDIuMTAuMDQ2XQ.html?_=1744714291285 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'innovasys' AND
                `ContragentID` = '548B32E74F7445DBAF5ABC08C7CD53D3' AND
                `Items` LIKE '%W00gVFJVQ0tURUMgMDIuMTAuMDQ2XQ%'
            LIMIT 1

Successfully disconnected from the database!
# [15-Apr-2025 13:51:32] /elitcar/www/bg/ajax/prices/W00gVFJJQ0xPIDMxMzE5N10.html?_=1744714291284 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'innovasys' AND
                `ContragentID` = '548B32E74F7445DBAF5ABC08C7CD53D3' AND
                `Items` LIKE '%W00gVFJJQ0xPIDMxMzE5N10%'
            LIMIT 1

Successfully disconnected from the database!
# [15-Apr-2025 17:36:08] /elitcar/www/bg/tecdoc/9/WzldWzcwLTI1ODM3LTAwXVtNIFJFSU5aIDcwLTI1ODM3LTAwXQ.html 108.61.209.243

set names utf8

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'REINZ 70-25837-00'
            LIMIT 1

SELECT
                `elitcar_store`.`moneta`.`ProductId`
            FROM
                `elitcar_store`.`moneta`
                INNER JOIN `autokelly`.`recommended` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`recommended`.`ProductId`
            WHERE
                `elitcar_store`.`moneta`.`MonetaId` = 'REINZ 70-25837-00'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '80133' AND `ProducerId` = 4598

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '23467tf' AND `ProducerId` = 317

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '12017061' AND `ProducerId` = 140

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '12014584' AND `ProducerId` = 140

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '49472916' AND `ProducerId` = 140

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '49472013' AND `ProducerId` = 140

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '12014265' AND `ProducerId` = 140

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '420468' AND `ProducerId` = 355

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '1110570' AND `ProducerId` = 355

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '553190' AND `ProducerId` = 10

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '294110' AND `ProducerId` = 10

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '1656040' AND `ProducerId` = 237

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '03345' AND `ProducerId` = 101

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'p7653100' AND `ProducerId` = 88

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '1405268483' AND `ProducerId` = 4257

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '1447158300' AND `ProducerId` = 4257

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '1130010' AND `ProducerId` = 4546

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '520036' AND `ProducerId` = 6470

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'mvh6006' AND `ProducerId` = 5645

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '30340001' AND `ProducerId` = 151

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'SWAG 30 34 0001'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '100254' AND `ProducerId` = 301

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '100207' AND `ProducerId` = 301

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '0712117' AND `ProducerId` = 209

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '702583700' AND `ProducerId` = 9

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'wg1103708' AND `ProducerId` = 4832

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'wg2313523' AND `ProducerId` = 4832

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'wg1191852' AND `ProducerId` = 4832

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'wg2293069' AND `ProducerId` = 4832

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'wg2293163' AND `ProducerId` = 4832

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'wg1004625' AND `ProducerId` = 4832

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'wg2308257' AND `ProducerId` = 4832

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'wg2134503' AND `ProducerId` = 4832

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'wg1433591' AND `ProducerId` = 4832

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'wg1223245' AND `ProducerId` = 4832

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'wg2134438' AND `ProducerId` = 4832

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'wg1087866' AND `ProducerId` = 4832

SELECT `ProductId` FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'REINZ 70-25837-00' LIMIT 1

SELECT
                    `autokelly`.`product`.`Id` AS `ProductId`,
                    `autokelly`.`brand`.`Name` AS `BrandName`,
                    `autokelly`.`codeprimary`.`CodeValue`,
                    `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                    `autokelly`.`producttextglobaldescription`.`BG` AS `ProductDescription`,
                    `elitcar_store`.`moneta`.`MonetaId`,
                    `elitcar_store`.`moneta`.`ProducerId`,
                    `elitcar_store`.`moneta`.`FullSearchTecDocId`,
                    `elitcar_store`.`moneta`.`Sales`,
                    `elitcar_store`.`moneta`.`Qty`,
                    `elitcar_store`.`moneta`.`QtyAll`
                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`
                    INNER JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id` AND `elitcar_store`.`moneta`.`MonetaId` NOT IN ('REINZ 70-25837-00','CORTECO 12017061','CORTECO 12014584','CORTECO 49472916','CORTECO 49472013','CORTECO 12014265','DT 4.20468','DT 11.10570','ELRING 553.190','ELRING 294.110','FEBI 03345','SWAG 30 34 0001','TRUCKTEC 07.12.117')
                    LEFT JOIN `autokelly`.`producttextglobaldescriptionconversion` ON `autokelly`.`producttextglobaldescriptionconversion`.`ProductId` = `autokelly`.`product`.`Id`
                    LEFT JOIN `autokelly`.`producttextglobaldescription` ON `autokelly`.`producttextglobaldescription`.`ProductTextGlobalDescriptionConversionId` = `autokelly`.`producttextglobaldescriptionconversion`.`Id`
                WHERE
                    `autokelly`.`product`.`Id` IN (
                        SELECT
                            cp1.`ProductId`
                        FROM
                            `autokelly`.`substitute`
                            INNER JOIN `autokelly`.`codeprimary` cp ON cp.`ProductId` = `autokelly`.`substitute`.`ProductId`
                            INNER JOIN `autokelly`.`codeprimary` cp1 ON cp1.`ProductId` = `autokelly`.`substitute`.`SubstituteId`
                        where
                            `autokelly`.`substitute`.`ProductId` = 239848
                    )

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'REINZ 12-25837-01'
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'REINZ 12-26058-02'
            LIMIT 1

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `ProductId` = 9164101
            LIMIT 1

SELECT
                `FolderName`,
                `Name`,
                `Suffix`
            FROM
                `autokelly`.`productfile`
                INNER JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId`
            WHERE
                `autokelly`.`productfile`.`ProductId` = 9164101 AND
                `autokelly`.`file`.`Image` = 1 AND
                 `autokelly`.`file`.`Suffix` = 'JPG'
            ORDER BY
                `autokelly`.`productfile`.`Order`
            LIMIT 1

SELECT
                `autokelly`.`product`.`Id` AS ProductId,
                `autokelly`.`productcriterium`.*,
                `autokelly`.`codeprimary`.`CodeValue` AS Code,
                `autokelly`.`criteriumtext`.`Name` AS CriteriumName,
                `autokelly`.`criteriumunittext`.`Code` AS CriteriumUnitText,
                CASE `autokelly`.`productcriterium`.`CriteriumType`
                    WHEN 1
                    THEN (SELECT
                            `autokelly`.`criteriumvaluetext`.Value
                        FROM
                            `autokelly`.`criteriumvalue`
                            INNER JOIN `autokelly`.`criteriumvaluetext` ON
                                `autokelly`.`criteriumvaluetext`.`CriteriumValueId` = `autokelly`.`criteriumvalue`.`Id` AND
                                `autokelly`.`criteriumvaluetext`.`CountryType` = 'BG'
                        WHERE
                            `autokelly`.`criteriumvalue`.`CriteriumId` = `autokelly`.`criterium`.`Id` AND
                            `autokelly`.`criteriumvalue`.`ValueId` = `autokelly`.`productcriterium`.`Value`
                        LIMIT 1)
                    ELSE `autokelly`.`productcriterium`.Value
                END AS `Value`,
                `autokelly`.`criterium`.`Order`
            FROM
                `autokelly`.`codeprimary`
                INNER JOIN `autokelly`.`product` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`productcriterium` ON  `autokelly`.`productcriterium`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`criterium` ON `autokelly`.`criterium`.`Id` = `autokelly`.`productcriterium`.CriteriumId
                INNER JOIN `autokelly`.`criteriumtext` ON `autokelly`.`criteriumtext`.`CriteriumId` = `autokelly`.`productcriterium`.`CriteriumId` AND `autokelly`.`criteriumtext`.`CountryType` = 'BG'
                LEFT JOIN `autokelly`.`criteriumunit` ON `autokelly`.`criteriumunit`.`Id` = `autokelly`.`criterium`.`CriteriumUnitId`
                LEFT JOIN `autokelly`.`criteriumunittext` ON `autokelly`.`criteriumunittext`.`CriteriumUnitId` = `autokelly`.`criterium`.`CriteriumUnitId` AND `autokelly`.`criteriumunittext`.`CountryType` = 'BG'
            WHERE
                `autokelly`.`codeprimary`.`ProductId` = 9164101 AND
                `autokelly`.`criterium`.`Order` = 100
            ORDER BY
                /* `autokelly`.`product`.`Id`, ??? */
                `autokelly`.`productcriterium`.`Group`,
                `autokelly`.`productcriterium`.`Order`
         LIMIT 5

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

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `ProductId` = 12122729
            LIMIT 1

SELECT
                `FolderName`,
                `Name`,
                `Suffix`
            FROM
                `autokelly`.`productfile`
                INNER JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId`
            WHERE
                `autokelly`.`productfile`.`ProductId` = 12122729 AND
                `autokelly`.`file`.`Image` = 1 AND
                 `autokelly`.`file`.`Suffix` = 'JPG'
            ORDER BY
                `autokelly`.`productfile`.`Order`
            LIMIT 1

SELECT
                `autokelly`.`product`.`Id` AS ProductId,
                `autokelly`.`productcriterium`.*,
                `autokelly`.`codeprimary`.`CodeValue` AS Code,
                `autokelly`.`criteriumtext`.`Name` AS CriteriumName,
                `autokelly`.`criteriumunittext`.`Code` AS CriteriumUnitText,
                CASE `autokelly`.`productcriterium`.`CriteriumType`
                    WHEN 1
                    THEN (SELECT
                            `autokelly`.`criteriumvaluetext`.Value
                        FROM
                            `autokelly`.`criteriumvalue`
                            INNER JOIN `autokelly`.`criteriumvaluetext` ON
                                `autokelly`.`criteriumvaluetext`.`CriteriumValueId` = `autokelly`.`criteriumvalue`.`Id` AND
                                `autokelly`.`criteriumvaluetext`.`CountryType` = 'BG'
                        WHERE
                            `autokelly`.`criteriumvalue`.`CriteriumId` = `autokelly`.`criterium`.`Id` AND
                            `autokelly`.`criteriumvalue`.`ValueId` = `autokelly`.`productcriterium`.`Value`
                        LIMIT 1)
                    ELSE `autokelly`.`productcriterium`.Value
                END AS `Value`,
                `autokelly`.`criterium`.`Order`
            FROM
                `autokelly`.`codeprimary`
                INNER JOIN `autokelly`.`product` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`productcriterium` ON  `autokelly`.`productcriterium`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`criterium` ON `autokelly`.`criterium`.`Id` = `autokelly`.`productcriterium`.CriteriumId
                INNER JOIN `autokelly`.`criteriumtext` ON `autokelly`.`criteriumtext`.`CriteriumId` = `autokelly`.`productcriterium`.`CriteriumId` AND `autokelly`.`criteriumtext`.`CountryType` = 'BG'
                LEFT JOIN `autokelly`.`criteriumunit` ON `autokelly`.`criteriumunit`.`Id` = `autokelly`.`criterium`.`CriteriumUnitId`
                LEFT JOIN `autokelly`.`criteriumunittext` ON `autokelly`.`criteriumunittext`.`CriteriumUnitId` = `autokelly`.`criterium`.`CriteriumUnitId` AND `autokelly`.`criteriumunittext`.`CountryType` = 'BG'
            WHERE
                `autokelly`.`codeprimary`.`ProductId` = 12122729 AND
                `autokelly`.`criterium`.`Order` = 100
            ORDER BY
                /* `autokelly`.`product`.`Id`, ??? */
                `autokelly`.`productcriterium`.`Group`,
                `autokelly`.`productcriterium`.`Order`
         LIMIT 5

SELECT `ReusableGroupId` FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'REINZ 70-25837-00' LIMIT 1

SELECT
                    *
                FROM
                    `elitcar_store`.`moneta`
                WHERE
                    `ReusableGroupId` = 'B975FCE6DA3249339C216FDFA6DB75F7' AND
                    `MonetaId` NOT IN ('REINZ 70-25837-00','CORTECO 12017061','CORTECO 12014584','CORTECO 49472916','CORTECO 49472013','CORTECO 12014265','DT 4.20468','DT 11.10570','ELRING 553.190','ELRING 294.110','FEBI 03345','SWAG 30 34 0001','TRUCKTEC 07.12.117','REINZ 12-25837-01','REINZ 12-26058-02','VAG 026 109 675','PAYEN HR569','STARLINE GA 6511') AND
                    `QtyAll` > 0
                ORDER BY
                    `Sales`  DESC,
                    `Qty`  DESC,
                    `QtyAll`  DESC

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

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'REINZ 70-22737-00'
            LIMIT 1

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

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

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'STARLINE GA 6506'
            LIMIT 1

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

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'REINZ 70-25837-00' LIMIT 1

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`ProducerId`,
                `elitcar_store`.`moneta`.`Sales`,
                `elitcar_store`.`moneta`.`Qty`,
                `elitcar_store`.`moneta`.`QtyAll`
            FROM
                `autokelly`.`recommended`
                INNER JOIN `autokelly`.`product` ON `autokelly`.`recommended`.`RecommendedId` =  `autokelly`.`product`.`Id`
                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`
                INNER JOIN `elitcar_store`.`moneta` ON `elitcar_store`.`moneta`.`ProductId` = `autokelly`.`product`.`Id`
            WHERE
                `autokelly`.`recommended`.`ProductId` = 239848
            ORDER BY
                `Sales` DESC,
                `Qty` DESC,
                `QtyAll` DESC
            LIMIT 3

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `ProductId` = 240305
            LIMIT 1

SELECT
                `FolderName`,
                `Name`,
                `Suffix`
            FROM
                `autokelly`.`productfile`
                INNER JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId`
            WHERE
                `autokelly`.`productfile`.`ProductId` = 240305 AND
                `autokelly`.`file`.`Image` = 1 AND
                 `autokelly`.`file`.`Suffix` = 'JPG'
            ORDER BY
                `autokelly`.`productfile`.`Order`
            LIMIT 1

SELECT
                `autokelly`.`product`.`Id` AS ProductId,
                `autokelly`.`productcriterium`.*,
                `autokelly`.`codeprimary`.`CodeValue` AS Code,
                `autokelly`.`criteriumtext`.`Name` AS CriteriumName,
                `autokelly`.`criteriumunittext`.`Code` AS CriteriumUnitText,
                CASE `autokelly`.`productcriterium`.`CriteriumType`
                    WHEN 1
                    THEN (SELECT
                            `autokelly`.`criteriumvaluetext`.Value
                        FROM
                            `autokelly`.`criteriumvalue`
                            INNER JOIN `autokelly`.`criteriumvaluetext` ON
                                `autokelly`.`criteriumvaluetext`.`CriteriumValueId` = `autokelly`.`criteriumvalue`.`Id` AND
                                `autokelly`.`criteriumvaluetext`.`CountryType` = 'BG'
                        WHERE
                            `autokelly`.`criteriumvalue`.`CriteriumId` = `autokelly`.`criterium`.`Id` AND
                            `autokelly`.`criteriumvalue`.`ValueId` = `autokelly`.`productcriterium`.`Value`
                        LIMIT 1)
                    ELSE `autokelly`.`productcriterium`.Value
                END AS `Value`,
                `autokelly`.`criterium`.`Order`
            FROM
                `autokelly`.`codeprimary`
                INNER JOIN `autokelly`.`product` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`productcriterium` ON  `autokelly`.`productcriterium`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`criterium` ON `autokelly`.`criterium`.`Id` = `autokelly`.`productcriterium`.CriteriumId
                INNER JOIN `autokelly`.`criteriumtext` ON `autokelly`.`criteriumtext`.`CriteriumId` = `autokelly`.`productcriterium`.`CriteriumId` AND `autokelly`.`criteriumtext`.`CountryType` = 'BG'
                LEFT JOIN `autokelly`.`criteriumunit` ON `autokelly`.`criteriumunit`.`Id` = `autokelly`.`criterium`.`CriteriumUnitId`
                LEFT JOIN `autokelly`.`criteriumunittext` ON `autokelly`.`criteriumunittext`.`CriteriumUnitId` = `autokelly`.`criterium`.`CriteriumUnitId` AND `autokelly`.`criteriumunittext`.`CountryType` = 'BG'
            WHERE
                `autokelly`.`codeprimary`.`ProductId` = 240305 AND
                `autokelly`.`criterium`.`Order` = 100
            ORDER BY
                /* `autokelly`.`product`.`Id`, ??? */
                `autokelly`.`productcriterium`.`Group`,
                `autokelly`.`productcriterium`.`Order`
         LIMIT 5

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `ProductId` = 240306
            LIMIT 1

SELECT
                `FolderName`,
                `Name`,
                `Suffix`
            FROM
                `autokelly`.`productfile`
                INNER JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId`
            WHERE
                `autokelly`.`productfile`.`ProductId` = 240306 AND
                `autokelly`.`file`.`Image` = 1 AND
                 `autokelly`.`file`.`Suffix` = 'JPG'
            ORDER BY
                `autokelly`.`productfile`.`Order`
            LIMIT 1

SELECT
                `autokelly`.`product`.`Id` AS ProductId,
                `autokelly`.`productcriterium`.*,
                `autokelly`.`codeprimary`.`CodeValue` AS Code,
                `autokelly`.`criteriumtext`.`Name` AS CriteriumName,
                `autokelly`.`criteriumunittext`.`Code` AS CriteriumUnitText,
                CASE `autokelly`.`productcriterium`.`CriteriumType`
                    WHEN 1
                    THEN (SELECT
                            `autokelly`.`criteriumvaluetext`.Value
                        FROM
                            `autokelly`.`criteriumvalue`
                            INNER JOIN `autokelly`.`criteriumvaluetext` ON
                                `autokelly`.`criteriumvaluetext`.`CriteriumValueId` = `autokelly`.`criteriumvalue`.`Id` AND
                                `autokelly`.`criteriumvaluetext`.`CountryType` = 'BG'
                        WHERE
                            `autokelly`.`criteriumvalue`.`CriteriumId` = `autokelly`.`criterium`.`Id` AND
                            `autokelly`.`criteriumvalue`.`ValueId` = `autokelly`.`productcriterium`.`Value`
                        LIMIT 1)
                    ELSE `autokelly`.`productcriterium`.Value
                END AS `Value`,
                `autokelly`.`criterium`.`Order`
            FROM
                `autokelly`.`codeprimary`
                INNER JOIN `autokelly`.`product` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`productcriterium` ON  `autokelly`.`productcriterium`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`criterium` ON `autokelly`.`criterium`.`Id` = `autokelly`.`productcriterium`.CriteriumId
                INNER JOIN `autokelly`.`criteriumtext` ON `autokelly`.`criteriumtext`.`CriteriumId` = `autokelly`.`productcriterium`.`CriteriumId` AND `autokelly`.`criteriumtext`.`CountryType` = 'BG'
                LEFT JOIN `autokelly`.`criteriumunit` ON `autokelly`.`criteriumunit`.`Id` = `autokelly`.`criterium`.`CriteriumUnitId`
                LEFT JOIN `autokelly`.`criteriumunittext` ON `autokelly`.`criteriumunittext`.`CriteriumUnitId` = `autokelly`.`criterium`.`CriteriumUnitId` AND `autokelly`.`criteriumunittext`.`CountryType` = 'BG'
            WHERE
                `autokelly`.`codeprimary`.`ProductId` = 240306 AND
                `autokelly`.`criterium`.`Order` = 100
            ORDER BY
                /* `autokelly`.`product`.`Id`, ??? */
                `autokelly`.`productcriterium`.`Group`,
                `autokelly`.`productcriterium`.`Order`
         LIMIT 5

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `ProductId` = 8363184
            LIMIT 1

SELECT
                `FolderName`,
                `Name`,
                `Suffix`
            FROM
                `autokelly`.`productfile`
                INNER JOIN `autokelly`.`file` ON `autokelly`.`file`.`Id` = `autokelly`.`productfile`.`FileId`
            WHERE
                `autokelly`.`productfile`.`ProductId` = 8363184 AND
                `autokelly`.`file`.`Image` = 1 AND
                 `autokelly`.`file`.`Suffix` = 'JPG'
            ORDER BY
                `autokelly`.`productfile`.`Order`
            LIMIT 1

SELECT
                `autokelly`.`product`.`Id` AS ProductId,
                `autokelly`.`productcriterium`.*,
                `autokelly`.`codeprimary`.`CodeValue` AS Code,
                `autokelly`.`criteriumtext`.`Name` AS CriteriumName,
                `autokelly`.`criteriumunittext`.`Code` AS CriteriumUnitText,
                CASE `autokelly`.`productcriterium`.`CriteriumType`
                    WHEN 1
                    THEN (SELECT
                            `autokelly`.`criteriumvaluetext`.Value
                        FROM
                            `autokelly`.`criteriumvalue`
                            INNER JOIN `autokelly`.`criteriumvaluetext` ON
                                `autokelly`.`criteriumvaluetext`.`CriteriumValueId` = `autokelly`.`criteriumvalue`.`Id` AND
                                `autokelly`.`criteriumvaluetext`.`CountryType` = 'BG'
                        WHERE
                            `autokelly`.`criteriumvalue`.`CriteriumId` = `autokelly`.`criterium`.`Id` AND
                            `autokelly`.`criteriumvalue`.`ValueId` = `autokelly`.`productcriterium`.`Value`
                        LIMIT 1)
                    ELSE `autokelly`.`productcriterium`.Value
                END AS `Value`,
                `autokelly`.`criterium`.`Order`
            FROM
                `autokelly`.`codeprimary`
                INNER JOIN `autokelly`.`product` ON `autokelly`.`codeprimary`.`ProductId` =  `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`productcriterium` ON  `autokelly`.`productcriterium`.`ProductId` = `autokelly`.`product`.`Id`
                INNER JOIN `autokelly`.`criterium` ON `autokelly`.`criterium`.`Id` = `autokelly`.`productcriterium`.CriteriumId
                INNER JOIN `autokelly`.`criteriumtext` ON `autokelly`.`criteriumtext`.`CriteriumId` = `autokelly`.`productcriterium`.`CriteriumId` AND `autokelly`.`criteriumtext`.`CountryType` = 'BG'
                LEFT JOIN `autokelly`.`criteriumunit` ON `autokelly`.`criteriumunit`.`Id` = `autokelly`.`criterium`.`CriteriumUnitId`
                LEFT JOIN `autokelly`.`criteriumunittext` ON `autokelly`.`criteriumunittext`.`CriteriumUnitId` = `autokelly`.`criterium`.`CriteriumUnitId` AND `autokelly`.`criteriumunittext`.`CountryType` = 'BG'
            WHERE
                `autokelly`.`codeprimary`.`ProductId` = 8363184 AND
                `autokelly`.`criterium`.`Order` = 100
            ORDER BY
                /* `autokelly`.`product`.`Id`, ??? */
                `autokelly`.`productcriterium`.`Group`,
                `autokelly`.`productcriterium`.`Order`
         LIMIT 5
# [15-Apr-2025 17:36:11] /elitcar/www/bg/ajax/prices/W00gUkVJTlogNzAtMjU4MzctMDBd.html?_=1744727771763 108.61.209.243
# [15-Apr-2025 17:36:11] /elitcar/www/bg/ajax/moneta/sort.html?_=1744727771765 108.61.209.243

set names utf8

SELECT
                `elitcar_store`.`moneta`.`MonetaId`,
                `elitcar_store`.`moneta`.`Sales`,
                `elitcar_store`.`moneta`.`Qty`,
                `elitcar_store`.`moneta`.`QtyAll`,
                `elitcar_store`.`moneta`.`FullSearchTecDocId`
            FROM
                `elitcar_store`.`moneta`
                LEFT JOIN `elitcar_store`.`availabilities` ON `elitcar_store`.`moneta`.`MonetaId` = `elitcar_store`.`availabilities`.`MonetaId` AND `elitcar_store`.`availabilities`.`BusinessGroupID` = ''
            WHERE
                `elitcar_store`.`moneta`.`MonetaId` IN('CORTECO 12017061','CORTECO 12014584','CORTECO 49472916','CORTECO 49472013','CORTECO 12014265','DT 4.20468','DT 11.10570','ELRING 553.190','ELRING 294.110','FEBI 03345','SWAG 30 34 0001','TRUCKTEC 07.12.117','REINZ 12-25837-01','REINZ 12-26058-02','VAG 026 109 675','PAYEN HR569','STARLINE GA 6511','DPH 45720','REINZ 70-22737-00','ELRING 294.250','DPH 1272960','STARLINE GA 6506','PEUGEOT 1607427280')
            ORDER BY
                `elitcar_store`.`availabilities`.`Qty` DESC,
                `elitcar_store`.`moneta`.`Qty` DESC,
                `elitcar_store`.`moneta`.`QtyAll` DESC,
                `elitcar_store`.`moneta`.`Sales` DESC

SELECT * FROM  fn_EShopItemInfo_New('REINZ 70-25837-00', '', '', '');
# [15-Apr-2025 17:36:12] /elitcar/www/bg/ajax/prices/W00gRUxSSU5HIDU1My4xOTBd.html?_=1744727771999 108.61.209.243
# [15-Apr-2025 17:36:12] /elitcar/www/bg/ajax/prices/W00gUkVJTlogNzAtMjI3MzctMDBd.html?_=1744727772000 108.61.209.243
# [15-Apr-2025 17:36:12] /elitcar/www/bg/ajax/prices/W00gUkVJTlogMTItMjU4MzctMDFd.html?_=1744727772000 108.61.209.243
# [15-Apr-2025 17:36:12] /elitcar/www/bg/ajax/prices/W00gRFBIIDQ1NzIwXQ.html?_=1744727772001 108.61.209.243
# [15-Apr-2025 17:36:12] /elitcar/www/bg/ajax/prices/W00gUkVJTlogMTItMjYwNTgtMDJd.html?_=1744727772000 108.61.209.243

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('REINZ 70-25837-00', '', '')

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 = 'REINZ 70-25837-00'
            GROUP BY fComp_Id,fItem_Id
# [15-Apr-2025 17:36:12] /elitcar/www/bg/ajax/prices/W00gUkVJTlogNzAtMjU4MzctMDBd.html?_=1744727771763 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

Successfully disconnected from the database!

SELECT * FROM  fn_EShopItemInfo_New('ELRING 553.190', '', '', '');

SELECT * FROM  fn_EShopItemInfo_New('DPH 45720', '', '', '');

SELECT * FROM  fn_EShopItemInfo_New('REINZ 12-25837-01', '', '', '');

SELECT * FROM  fn_EShopItemInfo_New('REINZ 70-22737-00', '', '', '');

SELECT * FROM  fn_EShopItemInfo_New('REINZ 12-26058-02', '', '', '');
# [15-Apr-2025 17:36:12] /elitcar/www/bg/ajax/prices/W00gRFBIIDEyNzI5NjBd.html?_=1744727772002 108.61.209.243

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('ELRING 553.190', '', '')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('DPH 45720', '', '')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('REINZ 12-25837-01', '', '')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('REINZ 70-22737-00', '', '')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('REINZ 12-26058-02', '', '')

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
                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 = 'DPH 45720'
            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 = 'REINZ 12-25837-01'
            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 = 'REINZ 70-22737-00'
            GROUP BY fComp_Id,fItem_Id
# [15-Apr-2025 17:36:12] /elitcar/www/bg/ajax/prices/W00gRUxSSU5HIDU1My4xOTBd.html?_=1744727771999 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

Successfully disconnected from the database!
# [15-Apr-2025 17:36:12] /elitcar/www/bg/ajax/prices/W00gRFBIIDQ1NzIwXQ.html?_=1744727772001 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

Successfully disconnected from the database!
# [15-Apr-2025 17:36:12] /elitcar/www/bg/ajax/prices/W00gUkVJTlogMTItMjU4MzctMDFd.html?_=1744727772000 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

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 = 'REINZ 12-26058-02'
            GROUP BY fComp_Id,fItem_Id
# [15-Apr-2025 17:36:12] /elitcar/www/bg/ajax/prices/W00gUkVJTlogNzAtMjI3MzctMDBd.html?_=1744727772000 108.61.209.243

set names utf8

SELECT * FROM  fn_EShopItemInfo_New('DPH 1272960', '', '', '');

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

Successfully disconnected from the database!
# [15-Apr-2025 17:36:12] /elitcar/www/bg/ajax/prices/W00gU1RBUkxJTkUgR0EgNjUwNl0.html?_=1744727772003 108.61.209.243
# [15-Apr-2025 17:36:12] /elitcar/www/bg/ajax/prices/W00gRkVCSSAwMzM0NV0.html?_=1744727772003 108.61.209.243
# [15-Apr-2025 17:36:12] /elitcar/www/bg/ajax/prices/W00gUkVJTlogMTItMjYwNTgtMDJd.html?_=1744727772000 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

Successfully disconnected from the database!

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('DPH 1272960', '', '')

SELECT * FROM  fn_EShopItemInfo_New('FEBI 03345', '', '', '');

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 = 'DPH 1272960'
            GROUP BY fComp_Id,fItem_Id

SELECT * FROM  fn_EShopItemInfo_New('STARLINE GA 6506', '', '', '');
# [15-Apr-2025 17:36:12] /elitcar/www/bg/ajax/prices/W00gRFBIIDEyNzI5NjBd.html?_=1744727772002 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

Successfully disconnected from the database!

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('FEBI 03345', '', '')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('STARLINE GA 6506', '', '')

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 = 'STARLINE GA 6506'
            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 = 'FEBI 03345'
            GROUP BY fComp_Id,fItem_Id
# [15-Apr-2025 17:36:12] /elitcar/www/bg/ajax/prices/W00gRkVCSSAwMzM0NV0.html?_=1744727772003 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

Successfully disconnected from the database!
# [15-Apr-2025 17:36:12] /elitcar/www/bg/ajax/prices/W00gU1RBUkxJTkUgR0EgNjUwNl0.html?_=1744727772003 108.61.209.243

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LPriceForYou','InfoDeposit','LDeposit','InfoDeliveryTaxes','LSevenDays','LAction','LAdd','LReplace','LDeliveryNoReturn','LOutOfStock') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

Successfully disconnected from the database!
# [15-Apr-2025 17:36:28] /elitcar/www/bg/ajax/banners/pos_1.html?_=1744727788726 108.61.209.243
# [15-Apr-2025 17:36:28] /elitcar/www/bg/ajax/banners/pos_0.html?_=1744727788726 108.61.209.243
# [15-Apr-2025 17:36:28] /elitcar/www/bg/ajax/promo.html?_=1744727788727 108.61.209.243

set names utf8
# [15-Apr-2025 17:36:28] /elitcar/www/bg/ajax/promo.html?_=1744727788727 108.61.209.243

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
# [15-Apr-2025 17:36:28] /elitcar/www/bg/ajax/banners/pos_2.html?_=1744727788727 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 (217,198)

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

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()

set names utf8

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BOSCH S P00 000 160'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `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 `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 S P00 000 160'
            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 S P00 000 160'
            ORDER BY N_Item.Id

SELECT * FROM `elitcar_store`.`moneta` WHERE `MonetaId` = 'BOSCH S P00 000 173'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `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 `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 S P00 000 173'
            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 S P00 000 173'
            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`,
                `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 `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` = 'TEKTINO RCC-6S-ID'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `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 `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` = 'TEKTINO RCC-6S'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `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 `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 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` = 'BGS 7890'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `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 `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 7890'
            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 7890'
            ORDER BY N_Item.Id

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

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `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 `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 7310'
            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 7310'
            ORDER BY N_Item.Id

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

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `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 `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 4114'
            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 4114'
            ORDER BY N_Item.Id

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

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `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 `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 6055'
            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 6055'
            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`,
                `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 `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 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` = 'ECS VT01374'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `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 `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 VT01374'
            LIMIT 1

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

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `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 `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 95207'
            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 95207'
            ORDER BY N_Item.Id

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

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `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 `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 1110'
            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 1110'
            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`,
                `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 `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`,
                `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 `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 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`,
                `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 `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` = 'GOLD EAGLE 21304'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `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 `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` = 'GOLD EAGLE 21304'
            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 = 'GOLD EAGLE 21304'
            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`,
                `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 `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 466'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `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 `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` = 'BOSCH F 026 C00 468'

SELECT
                `autokelly`.`product`.`Id` AS `ProductId`,
                `autokelly`.`codeprimary`.`CodeValue`,
                `autokelly`.`brand`.`Name` AS `BrandName`,
                `autokelly`.`producttextname`.`BG` AS `ProductTitle`,
                `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 `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!
# [15-Apr-2025 17:36:34] /elitcar/www/bg/ajax/prices/promo/W00gQk9TQ0ggUyBQMDAgMDAwIDE2MF0.html?_=1744727794080 108.61.209.243
# [15-Apr-2025 17:36:34] /elitcar/www/bg/ajax/prices/promo/W00gQk9TQ0ggUyBQMDAgMDAwIDE3M10.html?_=1744727794080 108.61.209.243
# [15-Apr-2025 17:36:34] /elitcar/www/bg/ajax/prices/promo/W00gRUNTIDE0NzE2LTcuNF0.html?_=1744727794081 108.61.209.243
# [15-Apr-2025 17:36:34] /elitcar/www/bg/ajax/prices/promo/W00gVEVLVElOTyBSQ0MtNlMtSURd.html?_=1744727794082 108.61.209.243
# [15-Apr-2025 17:36:34] /elitcar/www/bg/ajax/prices/promo/W00gVEVLVElOTyBSQ0MtNlNd.html?_=1744727794083 108.61.209.243
# [15-Apr-2025 17:36:34] /elitcar/www/bg/ajax/prices/promo/W00gQkdTIDc4OTBd.html?_=1744727794084 108.61.209.243

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

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

SELECT * FROM  fn_EShopItemInfo_New('BOSCH S P00 000 173', '', '', '');

SELECT * FROM  fn_EShopItemInfo_New('BOSCH S P00 000 160', '', '', '');

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

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

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

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

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BOSCH S P00 000 173', '', '')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BOSCH S P00 000 160', '', '')

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

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

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

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!

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 S P00 000 160'
            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 S P00 000 173'
            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!

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 7890'
            GROUP BY fComp_Id,fItem_Id

Successfully disconnected from the database!

Successfully disconnected from the database!
# [15-Apr-2025 17:36:34] /elitcar/www/bg/ajax/prices/promo/W00gQkdTIDczMTBd.html?_=1744727794085 108.61.209.243

Successfully disconnected from the database!
# [15-Apr-2025 17:36:34] /elitcar/www/bg/ajax/prices/promo/W00gQkdTIDQxMTRd.html?_=1744727794085 108.61.209.243

Successfully disconnected from the database!
# [15-Apr-2025 17:36:34] /elitcar/www/bg/ajax/prices/promo/W00gQkdTIDYwNTVd.html?_=1744727794086 108.61.209.243
# [15-Apr-2025 17:36:34] /elitcar/www/bg/ajax/prices/promo/W00gRUNTIE9QMTAxXQ.html?_=1744727794088 108.61.209.243
# [15-Apr-2025 17:36:34] /elitcar/www/bg/ajax/prices/promo/W00gRUNTIFZUMDEzNzRd.html?_=1744727794089 108.61.209.243
# [15-Apr-2025 17:36:34] /elitcar/www/bg/ajax/prices/promo/W00gQkdTIDk1MjA3XQ.html?_=1744727794090 108.61.209.243

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

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

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

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

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

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

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

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

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

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

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

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 7310'
            GROUP BY fComp_Id,fItem_Id

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

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 4114'
            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 = '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 = 'ECS VT01374'
            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 = 'BGS 95207'
            GROUP BY fComp_Id,fItem_Id

Successfully disconnected from the database!
# [15-Apr-2025 17:36:34] /elitcar/www/bg/ajax/prices/promo/W00gQkdTIDExMTBd.html?_=1744727794091 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 6055'
            GROUP BY fComp_Id,fItem_Id

Successfully disconnected from the database!

Successfully disconnected from the database!
# [15-Apr-2025 17:36:34] /elitcar/www/bg/ajax/prices/promo/W00gQkdTIDcwNzNd.html?_=1744727794092 108.61.209.243

Successfully disconnected from the database!
# [15-Apr-2025 17:36:34] /elitcar/www/bg/ajax/prices/promo/W00gQkdTIDk4MDk4XQ.html?_=1744727794093 108.61.209.243
# [15-Apr-2025 17:36:34] /elitcar/www/bg/ajax/prices/promo/W00gQk9TQ0ggRiAwMjYgQzAwIDQ2OV0.html?_=1744727794094 108.61.209.243
# [15-Apr-2025 17:36:35] /elitcar/www/bg/ajax/prices/promo/W00gR09MRCBFQUdMRSAyMTMwNF0.html?_=1744727794094 108.61.209.243
# [15-Apr-2025 17:36:35] /elitcar/www/bg/ajax/prices/promo/W00gQk9TQ0ggMCA2ODQgNDAwIDI1M10.html?_=1744727794095 108.61.209.243

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

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

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

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

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

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

SELECT * FROM  fn_EShopItemInfo_New('GOLD EAGLE 21304', '', '', '');

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

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

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 1110'
            GROUP BY fComp_Id,fItem_Id

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

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

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('GOLD EAGLE 21304', '', '')

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

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
# [15-Apr-2025 17:36:35] /elitcar/www/bg/ajax/prices/promo/W00gQk9TQ0ggRiAwMjYgQzAwIDQ2Nl0.html?_=1744727794096 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 = 'BOSCH 0 684 400 253'
            GROUP BY fComp_Id,fItem_Id

Successfully disconnected from the database!
# [15-Apr-2025 17:36:35] /elitcar/www/bg/ajax/prices/promo/W00gQk9TQ0ggRiAwMjYgQzAwIDQ2OF0.html?_=1744727794096 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 = 'GOLD EAGLE 21304'
            GROUP BY fComp_Id,fItem_Id

Successfully disconnected from the database!

Successfully disconnected from the database!

Successfully disconnected from the database!

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

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

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

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 F 026 C00 466'
            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 468'
            GROUP BY fComp_Id,fItem_Id

Successfully disconnected from the database!

Successfully disconnected from the database!
