SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '2050728sx' AND `ProducerId` = 4595

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'ol07003e' AND `ProducerId` = 4011

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'op1004' AND `ProducerId` = 91

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

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

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '2516400' AND `ProducerId` = 137

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'v201525' AND `ProducerId` = 162

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'VAICO V20-1525'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '586623' AND `ProducerId` = 21

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '586625' AND `ProducerId` = 21

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'v20600121' AND `ProducerId` = 183

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'VEMO V20-60-0121'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '19992801' AND `ProducerId` = 4346

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'vol807001' AND `ProducerId` = 7745

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

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

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

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'wl7502' AND `ProducerId` = 324

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '210917' AND `ProducerId` = 6347

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

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

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

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

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

Successfully disconnected from the database!
# [17-Apr-2026 13:51:45] /elitcar/www/bg/ajax/moneta/sort.html?_=1776423106405 108.61.209.243
# [17-Apr-2026 13:51:45] /elitcar/www/bg/ajax/history/parts.html?_=1776423106408 108.61.209.243
# [17-Apr-2026 13:51:45] /elitcar/www/bg/ajax/users/bar.html?_=1776423106477 108.61.209.243

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

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

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_Businessgroup].[FaxNo] AS ObjectPhone,
                                [N_Contragent].[VATBus_PostingGroup] AS VAT,
                                [N_Contragent].[Currency_Id],
                                [N_Contragent].CreditLimit_LCY AS Creditlimit,
                                [N_Contragent].PaymentTermsCode  AS PaymentTerms,
                                [N_Contragent].PaymentMethodCode  AS PaymentMethodCode,
                                COALESCE([N_DeliveryAddress]._TransportType, [N_Contragent].TransportType) AS TransportType,
                                -- [N_DeliveryAddress].Route_Id AS TransportType,
                                COALESCE([N_DeliveryAddress]._SubDocument_Code, [N_Contragent]._SaleDocSubType_EK) AS SaleDocSubType,
                                COALESCE([N_DeliveryAddress]._DefaultPrintForm, [N_Contragent]._DefaultPrintForm) AS DefaultPrintForm
                            FROM
                                [N_ContragentEShopSettings] WITH(NOLOCK)
                            INNER JOIN [N_Contragent] WITH(NOLOCK) ON
                                [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                            LEFT JOIN [N_DeliveryAddress] WITH(NOLOCK) ON
                                [N_Contragent].[Comp_Id] = [N_DeliveryAddress].[Comp_Id] AND
                                [N_Contragent].[Id] = [N_DeliveryAddress].[Contragent_Id] AND
                                [N_ContragentEShopSettings].[ServiceBG_Id] = [N_DeliveryAddress].[ServiceBG_Id]
                            LEFT JOIN [N_Businessgroup] WITH(NOLOCK) ON
                                [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                                [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                            WHERE
                                [N_ContragentEShopSettings].[ID] = 'E0B87CBDAA694AC480BCD81D96D4ABBB'

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '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 * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'
# [17-Apr-2026 13:51:46] /elitcar/www/bg/ajax/history/parts.html?_=1776423106408 108.61.209.243

set names utf8

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

Successfully disconnected from the database!

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'
# [17-Apr-2026 13:51:46] /elitcar/www/bg/ajax/moneta/sort.html?_=1776423106405 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` = '00'
            WHERE
                `elitcar_store`.`moneta`.`MonetaId` IN('ASHIKA 10-ECO143','BLUE PRINT ADB112114','BOSCH F 026 407 173','CASTROL FILTERS CO0318','CHAMPION COF100750E','DENCKERMANN A210725','FEBI 108315','FILTRON OE 672/5','HENGST E820H D245','JAPANPARTS FOE-143JM','JAPANPARTS FO-ECO143','KAMOKA F115201','KAVO PARTS FOF-10092','KNECHT OX 825D','KS 50 014 494','MAGNETI MARELLI 153071760764','MANN HU 7003 X','NTY FOF-BM-034','PURFLUX L972','TRUCKTEC 08.18.027','UFI 25.164.00','VAICO V20-1525','VALEO 586623','VALEO 586625','VEMO V20-60-0121')
            ORDER BY
                `elitcar_store`.`availabilities`.`Qty` DESC,
                `elitcar_store`.`moneta`.`Qty` DESC,
                `elitcar_store`.`moneta`.`QtyAll` DESC,
                `elitcar_store`.`moneta`.`Sales` DESC

Successfully disconnected from the database!
# [17-Apr-2026 13:51:46] /elitcar/www/bg/ajax/users/bar.html?_=1776423106477 108.61.209.243

set names utf8

SELECT `Qty` FROM `elitcar_store`.`basket` WHERE `UserName` = 'lubo' AND `ContragentID` = 'EE1D040DB23B48A6B8712B899CBA8660' LIMIT 1

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

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LClient') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

Successfully disconnected from the database!
# [17-Apr-2026 13:51:46] /elitcar/www/bg/ajax/prices/W00gS05FQ0hUIE9YIDgyNURd.html?_=1776423107110 108.61.209.243
# [17-Apr-2026 13:51:46] /elitcar/www/bg/ajax/prices/W00gTUFOTiBIVSA3MDAzIFhd.html?_=1776423107112 108.61.209.243
# [17-Apr-2026 13:51:46] /elitcar/www/bg/ajax/prices/W00gQk9TQ0ggRiAwMjYgNDA3IDE3M10.html?_=1776423107113 108.61.209.243
# [17-Apr-2026 13:51:46] /elitcar/www/bg/ajax/prices/W00gQkxVRSBQUklOVCBBREIxMTIxMTRd.html?_=1776423107113 108.61.209.243
# [17-Apr-2026 13:51:46] /elitcar/www/bg/ajax/prices/W00gRklMVFJPTiBPRSA2NzIvNV0.html?_=1776423107113 108.61.209.243
# [17-Apr-2026 13:51:46] /elitcar/www/bg/ajax/prices/W00gVUZJIDI1LjE2NC4wMF0.html?_=1776423107114 108.61.209.243

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

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

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

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

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

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

SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => ЛЮБОМИР НАЧКОВ
)


SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => ЛЮБОМИР НАЧКОВ
)


SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => ЛЮБОМИР НАЧКОВ
)


SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => ЛЮБОМИР НАЧКОВ
)


SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => ЛЮБОМИР НАЧКОВ
)


SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => ЛЮБОМИР НАЧКОВ
)


SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

SELECT * FROM  fn_EShopItemInfo_New('UFI 25.164.00', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT * FROM  fn_EShopItemInfo_New('FILTRON OE 672/5', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT * FROM  fn_EShopItemInfo_New('BLUE PRINT ADB112114', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT * FROM  fn_EShopItemInfo_New('BOSCH F 026 407 173', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT * FROM  fn_EShopItemInfo_New('KNECHT OX 825D', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT * FROM  fn_EShopItemInfo_New('MANN HU 7003 X', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('FILTRON OE 672/5', 'EE1D040DB23B48A6B8712B899CBA8660', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('UFI 25.164.00', 'EE1D040DB23B48A6B8712B899CBA8660', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BLUE PRINT ADB112114', 'EE1D040DB23B48A6B8712B899CBA8660', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BOSCH F 026 407 173', 'EE1D040DB23B48A6B8712B899CBA8660', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('MANN HU 7003 X', 'EE1D040DB23B48A6B8712B899CBA8660', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('KNECHT OX 825D', 'EE1D040DB23B48A6B8712B899CBA8660', '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 = 'FILTRON OE 672/5'
            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 = 'BLUE PRINT ADB112114'
            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 407 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 = 'MANN HU 7003 X'
            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 = 'KNECHT OX 825D'
            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 = 'UFI 25.164.00'
            GROUP BY fComp_Id,fItem_Id
# [17-Apr-2026 13:51:47] /elitcar/www/bg/ajax/prices/W00gRklMVFJPTiBPRSA2NzIvNV0.html?_=1776423107113 108.61.209.243

set names utf8

SELECT 
                COUNT(`MonetaId`) AS `Num`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = :nMonetaID;

Successfully disconnected from the database!
# [17-Apr-2026 13:51:47] /elitcar/www/bg/ajax/prices/W00gQkxVRSBQUklOVCBBREIxMTIxMTRd.html?_=1776423107113 108.61.209.243
# [17-Apr-2026 13:51:47] /elitcar/www/bg/ajax/prices/W00gQk9TQ0ggRiAwMjYgNDA3IDE3M10.html?_=1776423107113 108.61.209.243

set names utf8

SELECT 
                COUNT(`MonetaId`) AS `Num`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = :nMonetaID;

set names utf8

SELECT 
                COUNT(`MonetaId`) AS `Num`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = :nMonetaID;

Successfully disconnected from the database!

Successfully disconnected from the database!
# [17-Apr-2026 13:51:47] /elitcar/www/bg/ajax/prices/W00gTUFOTiBIVSA3MDAzIFhd.html?_=1776423107112 108.61.209.243

set names utf8

SELECT 
                COUNT(`MonetaId`) AS `Num`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = :nMonetaID;

Successfully disconnected from the database!
# [17-Apr-2026 13:51:47] /elitcar/www/bg/ajax/prices/W00gS05FQ0hUIE9YIDgyNURd.html?_=1776423107110 108.61.209.243

set names utf8

SELECT 
                COUNT(`MonetaId`) AS `Num`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = :nMonetaID;
# [17-Apr-2026 13:51:47] /elitcar/www/bg/ajax/prices/W00gVUZJIDI1LjE2NC4wMF0.html?_=1776423107114 108.61.209.243

Successfully disconnected from the database!

set names utf8

SELECT 
                COUNT(`MonetaId`) AS `Num`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = :nMonetaID;

Successfully disconnected from the database!
# [17-Apr-2026 13:51:47] /elitcar/www/bg/ajax/prices/W00gVkVNTyBWMjAtNjAtMDEyMV0.html?_=1776423107114 108.61.209.243
# [17-Apr-2026 13:51:47] /elitcar/www/bg/ajax/prices/W00gTlRZIEZPRi1CTS0wMzRd.html?_=1776423107116 108.61.209.243
# [17-Apr-2026 13:51:47] /elitcar/www/bg/ajax/prices/W00gRkVCSSAxMDgzMTVd.html?_=1776423107116 108.61.209.243

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

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

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

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

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

SELECT * FROM  fn_EShopItemInfo_New('NTY FOF-BM-034', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT * FROM  fn_EShopItemInfo_New('FEBI 108315', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT * FROM  fn_EShopItemInfo_New('VEMO V20-60-0121', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('NTY FOF-BM-034', 'EE1D040DB23B48A6B8712B899CBA8660', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('FEBI 108315', 'EE1D040DB23B48A6B8712B899CBA8660', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('VEMO V20-60-0121', 'EE1D040DB23B48A6B8712B899CBA8660', '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 = 'FEBI 108315'
            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 = 'NTY FOF-BM-034'
            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 = 'VEMO V20-60-0121'
            GROUP BY fComp_Id,fItem_Id
# [17-Apr-2026 13:51:47] /elitcar/www/bg/ajax/prices/W00gRkVCSSAxMDgzMTVd.html?_=1776423107116 108.61.209.243

set names utf8

SELECT 
                COUNT(`MonetaId`) AS `Num`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = :nMonetaID;

Successfully disconnected from the database!
# [17-Apr-2026 13:51:48] /elitcar/www/bg/ajax/prices/W00gTlRZIEZPRi1CTS0wMzRd.html?_=1776423107116 108.61.209.243

set names utf8

SELECT 
                COUNT(`MonetaId`) AS `Num`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = :nMonetaID;

Successfully disconnected from the database!
# [17-Apr-2026 13:51:48] /elitcar/www/bg/ajax/prices/W00gVkVNTyBWMjAtNjAtMDEyMV0.html?_=1776423107114 108.61.209.243

set names utf8

SELECT 
                COUNT(`MonetaId`) AS `Num`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = :nMonetaID;

Successfully disconnected from the database!
# [17-Apr-2026 13:54:07] /elitcar/www/bg/tecdoc/16-9620-10312/tn_100259.html 108.61.209.243
# [17-Apr-2026 13:54:07] /elitcar/www/bg/tecdoc/16-9620-10312/tn_100259.html 108.61.209.243

set names utf8

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'e50283' AND `ProducerId` = 4814

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'alo8716' AND `ProducerId` = 7681

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'foe143jm' AND `ProducerId` = 7370

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'azmt410401203' AND `ProducerId` = 5275

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'eo30180' AND `ProducerId` = 7957

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'te30390' AND `ProducerId` = 7957

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'md717' AND `ProducerId` = 180

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'fof10092' AND `ProducerId` = 146

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

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'foe143jm' AND `ProducerId` = 257

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'pal28058' AND `ProducerId` = 442

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'la009' AND `ProducerId` = 4280

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'bf0423470020' AND `ProducerId` = 6752

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'adb112114' AND `ProducerId` = 350

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BLUE PRINT ADB112114'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'bfo4142' AND `ProducerId` = 475

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'b12458' AND `ProducerId` = 4815

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'f026407173' AND `ProducerId` = 30

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'fl0697' AND `ProducerId` = 4872

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'bsg15140004' AND `ProducerId` = 4455

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'co0318' AND `ProducerId` = 7736

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'CASTROL FILTERS CO0318'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'cof100750e' AND `ProducerId` = 43

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'eof257' AND `ProducerId` = 421

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '28000222332' AND `ProducerId` = 4434

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'fa6093eco' AND `ProducerId` = 437

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'v016' AND `ProducerId` = 7368

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'a210725' AND `ProducerId` = 186

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'dl1293' AND `ProducerId` = 4396

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'dp1110110219' AND `ProducerId` = 4948

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '1689032180' AND `ProducerId` = 4391

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

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'f805' AND `ProducerId` = 4838

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'mle1759' AND `ProducerId` = 4659

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'oe6725' AND `ProducerId` = 256

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'FILTRON OE 672/5'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '15a90309' AND `ProducerId` = 7918

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'ch11461eco' AND `ProducerId` = 59

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '809105101' AND `ProducerId` = 6484

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '809108601' AND `ProducerId` = 6484

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '809514301' AND `ProducerId` = 6484

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'ct02705' AND `ProducerId` = 313

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '907481' AND `ProducerId` = 5251

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '8zo366100971' AND `ProducerId` = 2

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'e820hd245' AND `ProducerId` = 81

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'HENGST E820H D245'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'so7249' AND `ProducerId` = 6309

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '14140' AND `ProducerId` = 341

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'foe143jm' AND `ProducerId` = 156

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'JAPANPARTS FOE-143JM'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'foeco143' AND `ProducerId` = 156

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'JAPANPARTS FO-ECO143'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '1eco143' AND `ProducerId` = 481

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'foe143jm' AND `ProducerId` = 481

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'b1b033pr' AND `ProducerId` = 4689

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'f115201' AND `ProducerId` = 185

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'fof10092' AND `ProducerId` = 201

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'KAVO PARTS FOF-10092'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'ox825d' AND `ProducerId` = 34

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'KNECHT OX 825D'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '50014494' AND `ProducerId` = 432

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'KS 50 014 494'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '06020040' AND `ProducerId` = 6923

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'lfoe302' AND `ProducerId` = 4501

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'lfoe302' AND `ProducerId` = 4973

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'lo1918' AND `ProducerId` = 4600

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '153071760764' AND `ProducerId` = 95

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'MAGNETI MARELLI 153071760764'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'ox825d' AND `ProducerId` = 287

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'eeob0055y' AND `ProducerId` = 4008

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'hu7003x' AND `ProducerId` = 4

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'MANN HU 7003 X'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '7003xofpcsms' AND `ProducerId` = 358

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'mx01180064' AND `ProducerId` = 5568

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '261214' AND `ProducerId` = 403

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '14140' AND `ProducerId` = 244

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'elh4463' AND `ProducerId` = 218

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '3143220005' AND `ProducerId` = 144

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'te4044' AND `ProducerId` = 462

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'l153' AND `ProducerId` = 4470

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'lvfl794' AND `ProducerId` = 4564

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '8550500213' AND `ProducerId` = 5377

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'fop283' AND `ProducerId` = 490

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'fofbm034' AND `ProducerId` = 6355

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'NTY FOF-BM-034'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '2441314' AND `ProducerId` = 4380

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'eof422010' AND `ProducerId` = 378

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'opfof40209' AND `ProducerId` = 129

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '45924' AND `ProducerId` = 4683

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '1f0162' AND `ProducerId` = 6983

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'l972' AND `ProducerId` = 38

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'qfl0308' AND `ProducerId` = 57

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '7o0171' AND `ProducerId` = 6358

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'ce0169ex' AND `ProducerId` = 4263

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 's5164pe' AND `ProducerId` = 142

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'skof0860170' AND `ProducerId` = 6357

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '2050728sx' AND `ProducerId` = 4595

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'ol07003e' AND `ProducerId` = 4011

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'op1004' AND `ProducerId` = 91

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

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

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '2516400' AND `ProducerId` = 137

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'v201525' AND `ProducerId` = 162

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'VAICO V20-1525'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '586623' AND `ProducerId` = 21

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '586625' AND `ProducerId` = 21

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'v20600121' AND `ProducerId` = 183

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'VEMO V20-60-0121'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '19992801' AND `ProducerId` = 4346

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'vol807001' AND `ProducerId` = 7745

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

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

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

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'wl7502' AND `ProducerId` = 324

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '210917' AND `ProducerId` = 6347

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

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

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

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

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

Successfully disconnected from the database!
# [17-Apr-2026 13:54:11] /elitcar/www/bg/ajax/moneta/sort.html?_=1776423251712 108.61.209.243
# [17-Apr-2026 13:54:11] /elitcar/www/bg/ajax/history/parts.html?_=1776423251716 108.61.209.243
# [17-Apr-2026 13:54:11] /elitcar/www/bg/ajax/users/bar.html?_=1776423251832 108.61.209.243

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

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

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_Businessgroup].[FaxNo] AS ObjectPhone,
                                [N_Contragent].[VATBus_PostingGroup] AS VAT,
                                [N_Contragent].[Currency_Id],
                                [N_Contragent].CreditLimit_LCY AS Creditlimit,
                                [N_Contragent].PaymentTermsCode  AS PaymentTerms,
                                [N_Contragent].PaymentMethodCode  AS PaymentMethodCode,
                                COALESCE([N_DeliveryAddress]._TransportType, [N_Contragent].TransportType) AS TransportType,
                                -- [N_DeliveryAddress].Route_Id AS TransportType,
                                COALESCE([N_DeliveryAddress]._SubDocument_Code, [N_Contragent]._SaleDocSubType_EK) AS SaleDocSubType,
                                COALESCE([N_DeliveryAddress]._DefaultPrintForm, [N_Contragent]._DefaultPrintForm) AS DefaultPrintForm
                            FROM
                                [N_ContragentEShopSettings] WITH(NOLOCK)
                            INNER JOIN [N_Contragent] WITH(NOLOCK) ON
                                [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                            LEFT JOIN [N_DeliveryAddress] WITH(NOLOCK) ON
                                [N_Contragent].[Comp_Id] = [N_DeliveryAddress].[Comp_Id] AND
                                [N_Contragent].[Id] = [N_DeliveryAddress].[Contragent_Id] AND
                                [N_ContragentEShopSettings].[ServiceBG_Id] = [N_DeliveryAddress].[ServiceBG_Id]
                            LEFT JOIN [N_Businessgroup] WITH(NOLOCK) ON
                                [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                                [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                            WHERE
                                [N_ContragentEShopSettings].[ID] = 'E0B87CBDAA694AC480BCD81D96D4ABBB'

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '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] => ЛЮБОМИР НАЧКОВ
)


exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)
# [17-Apr-2026 13:54:11] /elitcar/www/bg/ajax/history/parts.html?_=1776423251716 108.61.209.243

set names utf8

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

Successfully disconnected from the database!
# [17-Apr-2026 13:54:11] /elitcar/www/bg/ajax/moneta/sort.html?_=1776423251712 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` = '00'
            WHERE
                `elitcar_store`.`moneta`.`MonetaId` IN('ASHIKA 10-ECO143','BLUE PRINT ADB112114','BOSCH F 026 407 173','CASTROL FILTERS CO0318','CHAMPION COF100750E','DENCKERMANN A210725','FEBI 108315','FILTRON OE 672/5','HENGST E820H D245','JAPANPARTS FOE-143JM','JAPANPARTS FO-ECO143','KAMOKA F115201','KAVO PARTS FOF-10092','KNECHT OX 825D','KS 50 014 494','MAGNETI MARELLI 153071760764','MANN HU 7003 X','NTY FOF-BM-034','PURFLUX L972','TRUCKTEC 08.18.027','UFI 25.164.00','VAICO V20-1525','VALEO 586623','VALEO 586625','VEMO V20-60-0121')
            ORDER BY
                `elitcar_store`.`availabilities`.`Qty` DESC,
                `elitcar_store`.`moneta`.`Qty` DESC,
                `elitcar_store`.`moneta`.`QtyAll` DESC,
                `elitcar_store`.`moneta`.`Sales` DESC

Successfully disconnected from the database!

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'
# [17-Apr-2026 13:54:11] /elitcar/www/bg/ajax/prices/W00gS05FQ0hUIE9YIDgyNURd.html?_=1776423252364 108.61.209.243
# [17-Apr-2026 13:54:11] /elitcar/www/bg/ajax/prices/W00gTUFOTiBIVSA3MDAzIFhd.html?_=1776423252365 108.61.209.243
# [17-Apr-2026 13:54:11] /elitcar/www/bg/ajax/prices/W00gQk9TQ0ggRiAwMjYgNDA3IDE3M10.html?_=1776423252366 108.61.209.243
# [17-Apr-2026 13:54:11] /elitcar/www/bg/ajax/prices/W00gQkxVRSBQUklOVCBBREIxMTIxMTRd.html?_=1776423252367 108.61.209.243
# [17-Apr-2026 13:54:11] /elitcar/www/bg/ajax/prices/W00gRklMVFJPTiBPRSA2NzIvNV0.html?_=1776423252368 108.61.209.243
# [17-Apr-2026 13:54:11] /elitcar/www/bg/ajax/users/bar.html?_=1776423251832 108.61.209.243

set names utf8

SELECT `Qty` FROM `elitcar_store`.`basket` WHERE `UserName` = 'lubo' AND `ContragentID` = 'EE1D040DB23B48A6B8712B899CBA8660' LIMIT 1

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

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LClient') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

Successfully disconnected from the database!
# [17-Apr-2026 13:54:11] /elitcar/www/bg/ajax/prices/W00gVUZJIDI1LjE2NC4wMF0.html?_=1776423252369 108.61.209.243

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

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

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

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

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

SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => ЛЮБОМИР НАЧКОВ
)


SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => ЛЮБОМИР НАЧКОВ
)


SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => ЛЮБОМИР НАЧКОВ
)


SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => ЛЮБОМИР НАЧКОВ
)


SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => ЛЮБОМИР НАЧКОВ
)


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

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '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 * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

SELECT * FROM  fn_EShopItemInfo_New('BLUE PRINT ADB112114', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT * FROM  fn_EShopItemInfo_New('KNECHT OX 825D', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT * FROM  fn_EShopItemInfo_New('MANN HU 7003 X', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BLUE PRINT ADB112114', 'EE1D040DB23B48A6B8712B899CBA8660', '00')

SELECT * FROM  fn_EShopItemInfo_New('FILTRON OE 672/5', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('MANN HU 7003 X', 'EE1D040DB23B48A6B8712B899CBA8660', '00')

SELECT * FROM  fn_EShopItemInfo_New('BOSCH F 026 407 173', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('KNECHT OX 825D', 'EE1D040DB23B48A6B8712B899CBA8660', '00')

SELECT * FROM  fn_EShopItemInfo_New('UFI 25.164.00', 'EE1D040DB23B48A6B8712B899CBA8660', '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 = 'BLUE PRINT ADB112114'
            GROUP BY fComp_Id,fItem_Id
# [17-Apr-2026 13:54:12] /elitcar/www/bg/ajax/prices/W00gQkxVRSBQUklOVCBBREIxMTIxMTRd.html?_=1776423252367 108.61.209.243

set names utf8

SELECT 
                COUNT(`MonetaId`) AS `Reusables`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = 'BLUE PRINT ADB112114';

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 = 'MANN HU 7003 X'
            GROUP BY fComp_Id,fItem_Id

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BOSCH F 026 407 173', 'EE1D040DB23B48A6B8712B899CBA8660', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('UFI 25.164.00', 'EE1D040DB23B48A6B8712B899CBA8660', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('FILTRON OE 672/5', 'EE1D040DB23B48A6B8712B899CBA8660', '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 = 'KNECHT OX 825D'
            GROUP BY fComp_Id,fItem_Id
# [17-Apr-2026 13:54:12] /elitcar/www/bg/ajax/prices/W00gTUFOTiBIVSA3MDAzIFhd.html?_=1776423252365 108.61.209.243

set names utf8

SELECT 
                COUNT(`MonetaId`) AS `Reusables`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = 'MANN HU 7003 X';

Successfully disconnected from the database!
# [17-Apr-2026 13:54:12] /elitcar/www/bg/ajax/prices/W00gVkVNTyBWMjAtNjAtMDEyMV0.html?_=1776423252370 108.61.209.243
# [17-Apr-2026 13:54:12] /elitcar/www/bg/ajax/prices/W00gS05FQ0hUIE9YIDgyNURd.html?_=1776423252364 108.61.209.243

set names utf8

SELECT 
                COUNT(`MonetaId`) AS `Reusables`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = 'KNECHT OX 825D';

Successfully disconnected from the database!
# [17-Apr-2026 13:54:12] /elitcar/www/bg/ajax/prices/W00gTlRZIEZPRi1CTS0wMzRd.html?_=1776423252370 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 = 'UFI 25.164.00'
            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 407 173'
            GROUP BY fComp_Id,fItem_Id
# [17-Apr-2026 13:54:12] /elitcar/www/bg/ajax/prices/W00gRkVCSSAxMDgzMTVd.html?_=1776423252371 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 = 'FILTRON OE 672/5'
            GROUP BY fComp_Id,fItem_Id
# [17-Apr-2026 13:54:12] /elitcar/www/bg/ajax/prices/W00gVUZJIDI1LjE2NC4wMF0.html?_=1776423252369 108.61.209.243
# [17-Apr-2026 13:54:12] /elitcar/www/bg/ajax/prices/W00gQk9TQ0ggRiAwMjYgNDA3IDE3M10.html?_=1776423252366 108.61.209.243

set names utf8

set names utf8

SELECT 
                COUNT(`MonetaId`) AS `Reusables`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = 'BOSCH F 026 407 173';

SELECT 
                COUNT(`MonetaId`) AS `Reusables`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = 'UFI 25.164.00';

Successfully disconnected from the database!
# [17-Apr-2026 13:54:12] /elitcar/www/bg/ajax/prices/W00gRklMVFJPTiBPRSA2NzIvNV0.html?_=1776423252368 108.61.209.243

set names utf8

SELECT 
                COUNT(`MonetaId`) AS `Reusables`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = 'FILTRON OE 672/5';

Successfully disconnected from the database!

Successfully disconnected from the database!

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

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

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

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

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

SELECT * FROM  fn_EShopItemInfo_New('VEMO V20-60-0121', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT * FROM  fn_EShopItemInfo_New('FEBI 108315', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('VEMO V20-60-0121', 'EE1D040DB23B48A6B8712B899CBA8660', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('FEBI 108315', 'EE1D040DB23B48A6B8712B899CBA8660', '00')

SELECT * FROM  fn_EShopItemInfo_New('NTY FOF-BM-034', 'EE1D040DB23B48A6B8712B899CBA8660', '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 = 'VEMO V20-60-0121'
            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 108315'
            GROUP BY fComp_Id,fItem_Id
# [17-Apr-2026 13:54:13] /elitcar/www/bg/ajax/prices/W00gVkVNTyBWMjAtNjAtMDEyMV0.html?_=1776423252370 108.61.209.243

set names utf8

SELECT 
                COUNT(`MonetaId`) AS `Reusables`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = 'VEMO V20-60-0121';

Successfully disconnected from the database!
# [17-Apr-2026 13:54:13] /elitcar/www/bg/ajax/prices/W00gRkVCSSAxMDgzMTVd.html?_=1776423252371 108.61.209.243

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('NTY FOF-BM-034', 'EE1D040DB23B48A6B8712B899CBA8660', '00')

set names utf8

SELECT 
                COUNT(`MonetaId`) AS `Reusables`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = 'FEBI 108315';

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 = 'NTY FOF-BM-034'
            GROUP BY fComp_Id,fItem_Id
# [17-Apr-2026 13:54:13] /elitcar/www/bg/ajax/prices/W00gTlRZIEZPRi1CTS0wMzRd.html?_=1776423252370 108.61.209.243

set names utf8

SELECT 
                COUNT(`MonetaId`) AS `Reusables`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = 'NTY FOF-BM-034';

Successfully disconnected from the database!
# [17-Apr-2026 13:55:05] /elitcar/www/bg/tecdoc/16-9620-10312/tn_100259.html 108.61.209.243
# [17-Apr-2026 13:55:05] /elitcar/www/bg/tecdoc/16-9620-10312/tn_100259.html 108.61.209.243

set names utf8

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'e50283' AND `ProducerId` = 4814

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'alo8716' AND `ProducerId` = 7681

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'foe143jm' AND `ProducerId` = 7370

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'azmt410401203' AND `ProducerId` = 5275

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'eo30180' AND `ProducerId` = 7957

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'te30390' AND `ProducerId` = 7957

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'md717' AND `ProducerId` = 180

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'fof10092' AND `ProducerId` = 146

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

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'foe143jm' AND `ProducerId` = 257

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'pal28058' AND `ProducerId` = 442

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'la009' AND `ProducerId` = 4280

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'bf0423470020' AND `ProducerId` = 6752

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'adb112114' AND `ProducerId` = 350

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BLUE PRINT ADB112114'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'bfo4142' AND `ProducerId` = 475

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'b12458' AND `ProducerId` = 4815

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'f026407173' AND `ProducerId` = 30

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'fl0697' AND `ProducerId` = 4872

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'bsg15140004' AND `ProducerId` = 4455

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'co0318' AND `ProducerId` = 7736

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'CASTROL FILTERS CO0318'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'cof100750e' AND `ProducerId` = 43

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'eof257' AND `ProducerId` = 421

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '28000222332' AND `ProducerId` = 4434

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'fa6093eco' AND `ProducerId` = 437

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'v016' AND `ProducerId` = 7368

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'a210725' AND `ProducerId` = 186

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'dl1293' AND `ProducerId` = 4396

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'dp1110110219' AND `ProducerId` = 4948

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '1689032180' AND `ProducerId` = 4391

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

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'f805' AND `ProducerId` = 4838

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'mle1759' AND `ProducerId` = 4659

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'oe6725' AND `ProducerId` = 256

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'FILTRON OE 672/5'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '15a90309' AND `ProducerId` = 7918

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'ch11461eco' AND `ProducerId` = 59

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '809105101' AND `ProducerId` = 6484

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '809108601' AND `ProducerId` = 6484

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '809514301' AND `ProducerId` = 6484

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'ct02705' AND `ProducerId` = 313

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '907481' AND `ProducerId` = 5251

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '8zo366100971' AND `ProducerId` = 2

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'e820hd245' AND `ProducerId` = 81

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'HENGST E820H D245'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'so7249' AND `ProducerId` = 6309

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '14140' AND `ProducerId` = 341

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'foe143jm' AND `ProducerId` = 156

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'JAPANPARTS FOE-143JM'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'foeco143' AND `ProducerId` = 156

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'JAPANPARTS FO-ECO143'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '1eco143' AND `ProducerId` = 481

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'foe143jm' AND `ProducerId` = 481

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'b1b033pr' AND `ProducerId` = 4689

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'f115201' AND `ProducerId` = 185

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'fof10092' AND `ProducerId` = 201

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'KAVO PARTS FOF-10092'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'ox825d' AND `ProducerId` = 34

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'KNECHT OX 825D'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '50014494' AND `ProducerId` = 432

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'KS 50 014 494'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '06020040' AND `ProducerId` = 6923

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'lfoe302' AND `ProducerId` = 4501

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'lfoe302' AND `ProducerId` = 4973

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'lo1918' AND `ProducerId` = 4600

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '153071760764' AND `ProducerId` = 95

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'MAGNETI MARELLI 153071760764'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'ox825d' AND `ProducerId` = 287

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'eeob0055y' AND `ProducerId` = 4008

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'hu7003x' AND `ProducerId` = 4

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'MANN HU 7003 X'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '7003xofpcsms' AND `ProducerId` = 358

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'mx01180064' AND `ProducerId` = 5568

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '261214' AND `ProducerId` = 403

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '14140' AND `ProducerId` = 244

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'elh4463' AND `ProducerId` = 218

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '3143220005' AND `ProducerId` = 144

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'te4044' AND `ProducerId` = 462

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'l153' AND `ProducerId` = 4470

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'lvfl794' AND `ProducerId` = 4564

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '8550500213' AND `ProducerId` = 5377

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'fop283' AND `ProducerId` = 490

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'fofbm034' AND `ProducerId` = 6355

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'NTY FOF-BM-034'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '2441314' AND `ProducerId` = 4380

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'eof422010' AND `ProducerId` = 378

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'opfof40209' AND `ProducerId` = 129

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '45924' AND `ProducerId` = 4683

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '1f0162' AND `ProducerId` = 6983

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'l972' AND `ProducerId` = 38

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'qfl0308' AND `ProducerId` = 57

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '7o0171' AND `ProducerId` = 6358

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'ce0169ex' AND `ProducerId` = 4263

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 's5164pe' AND `ProducerId` = 142

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'skof0860170' AND `ProducerId` = 6357

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '2050728sx' AND `ProducerId` = 4595

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'ol07003e' AND `ProducerId` = 4011

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'op1004' AND `ProducerId` = 91

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

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

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '2516400' AND `ProducerId` = 137

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'v201525' AND `ProducerId` = 162

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'VAICO V20-1525'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '586623' AND `ProducerId` = 21

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '586625' AND `ProducerId` = 21

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'v20600121' AND `ProducerId` = 183

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'VEMO V20-60-0121'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '19992801' AND `ProducerId` = 4346

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'vol807001' AND `ProducerId` = 7745

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

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

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

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'wl7502' AND `ProducerId` = 324

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '210917' AND `ProducerId` = 6347

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

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

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

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

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

Successfully disconnected from the database!
# [17-Apr-2026 13:55:09] /elitcar/www/bg/ajax/moneta/sort.html?_=1776423310193 108.61.209.243
# [17-Apr-2026 13:55:09] /elitcar/www/bg/ajax/history/parts.html?_=1776423310194 108.61.209.243
# [17-Apr-2026 13:55:09] /elitcar/www/bg/ajax/users/bar.html?_=1776423310246 108.61.209.243

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

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

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_Businessgroup].[FaxNo] AS ObjectPhone,
                                [N_Contragent].[VATBus_PostingGroup] AS VAT,
                                [N_Contragent].[Currency_Id],
                                [N_Contragent].CreditLimit_LCY AS Creditlimit,
                                [N_Contragent].PaymentTermsCode  AS PaymentTerms,
                                [N_Contragent].PaymentMethodCode  AS PaymentMethodCode,
                                COALESCE([N_DeliveryAddress]._TransportType, [N_Contragent].TransportType) AS TransportType,
                                -- [N_DeliveryAddress].Route_Id AS TransportType,
                                COALESCE([N_DeliveryAddress]._SubDocument_Code, [N_Contragent]._SaleDocSubType_EK) AS SaleDocSubType,
                                COALESCE([N_DeliveryAddress]._DefaultPrintForm, [N_Contragent]._DefaultPrintForm) AS DefaultPrintForm
                            FROM
                                [N_ContragentEShopSettings] WITH(NOLOCK)
                            INNER JOIN [N_Contragent] WITH(NOLOCK) ON
                                [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                            LEFT JOIN [N_DeliveryAddress] WITH(NOLOCK) ON
                                [N_Contragent].[Comp_Id] = [N_DeliveryAddress].[Comp_Id] AND
                                [N_Contragent].[Id] = [N_DeliveryAddress].[Contragent_Id] AND
                                [N_ContragentEShopSettings].[ServiceBG_Id] = [N_DeliveryAddress].[ServiceBG_Id]
                            LEFT JOIN [N_Businessgroup] WITH(NOLOCK) ON
                                [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                                [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                            WHERE
                                [N_ContragentEShopSettings].[ID] = 'E0B87CBDAA694AC480BCD81D96D4ABBB'

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

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'
# [17-Apr-2026 13:55:10] /elitcar/www/bg/ajax/history/parts.html?_=1776423310194 108.61.209.243

set names utf8

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

Successfully disconnected from the database!

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'
# [17-Apr-2026 13:55:10] /elitcar/www/bg/ajax/users/bar.html?_=1776423310246 108.61.209.243

set names utf8

SELECT `Qty` FROM `elitcar_store`.`basket` WHERE `UserName` = 'lubo' AND `ContragentID` = 'EE1D040DB23B48A6B8712B899CBA8660' LIMIT 1

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

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LClient') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

Successfully disconnected from the database!
# [17-Apr-2026 13:55:10] /elitcar/www/bg/ajax/moneta/sort.html?_=1776423310193 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` = '00'
            WHERE
                `elitcar_store`.`moneta`.`MonetaId` IN('ASHIKA 10-ECO143','BLUE PRINT ADB112114','BOSCH F 026 407 173','CASTROL FILTERS CO0318','CHAMPION COF100750E','DENCKERMANN A210725','FEBI 108315','FILTRON OE 672/5','HENGST E820H D245','JAPANPARTS FOE-143JM','JAPANPARTS FO-ECO143','KAMOKA F115201','KAVO PARTS FOF-10092','KNECHT OX 825D','KS 50 014 494','MAGNETI MARELLI 153071760764','MANN HU 7003 X','NTY FOF-BM-034','PURFLUX L972','TRUCKTEC 08.18.027','UFI 25.164.00','VAICO V20-1525','VALEO 586623','VALEO 586625','VEMO V20-60-0121')
            ORDER BY
                `elitcar_store`.`availabilities`.`Qty` DESC,
                `elitcar_store`.`moneta`.`Qty` DESC,
                `elitcar_store`.`moneta`.`QtyAll` DESC,
                `elitcar_store`.`moneta`.`Sales` DESC

Successfully disconnected from the database!
# [17-Apr-2026 13:55:10] /elitcar/www/bg/ajax/prices/W00gS05FQ0hUIE9YIDgyNURd.html?_=1776423310891 108.61.209.243
# [17-Apr-2026 13:55:10] /elitcar/www/bg/ajax/prices/W00gTUFOTiBIVSA3MDAzIFhd.html?_=1776423310892 108.61.209.243
# [17-Apr-2026 13:55:10] /elitcar/www/bg/ajax/prices/W00gQk9TQ0ggRiAwMjYgNDA3IDE3M10.html?_=1776423310894 108.61.209.243
# [17-Apr-2026 13:55:10] /elitcar/www/bg/ajax/prices/W00gQkxVRSBQUklOVCBBREIxMTIxMTRd.html?_=1776423310896 108.61.209.243
# [17-Apr-2026 13:55:10] /elitcar/www/bg/ajax/prices/W00gRklMVFJPTiBPRSA2NzIvNV0.html?_=1776423310897 108.61.209.243
# [17-Apr-2026 13:55:10] /elitcar/www/bg/ajax/prices/W00gVUZJIDI1LjE2NC4wMF0.html?_=1776423310898 108.61.209.243

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

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

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

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

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

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_Businessgroup].[FaxNo] AS ObjectPhone,
                                [N_Contragent].[VATBus_PostingGroup] AS VAT,
                                [N_Contragent].[Currency_Id],
                                [N_Contragent].CreditLimit_LCY AS Creditlimit,
                                [N_Contragent].PaymentTermsCode  AS PaymentTerms,
                                [N_Contragent].PaymentMethodCode  AS PaymentMethodCode,
                                COALESCE([N_DeliveryAddress]._TransportType, [N_Contragent].TransportType) AS TransportType,
                                -- [N_DeliveryAddress].Route_Id AS TransportType,
                                COALESCE([N_DeliveryAddress]._SubDocument_Code, [N_Contragent]._SaleDocSubType_EK) AS SaleDocSubType,
                                COALESCE([N_DeliveryAddress]._DefaultPrintForm, [N_Contragent]._DefaultPrintForm) AS DefaultPrintForm
                            FROM
                                [N_ContragentEShopSettings] WITH(NOLOCK)
                            INNER JOIN [N_Contragent] WITH(NOLOCK) ON
                                [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                            LEFT JOIN [N_DeliveryAddress] WITH(NOLOCK) ON
                                [N_Contragent].[Comp_Id] = [N_DeliveryAddress].[Comp_Id] AND
                                [N_Contragent].[Id] = [N_DeliveryAddress].[Contragent_Id] AND
                                [N_ContragentEShopSettings].[ServiceBG_Id] = [N_DeliveryAddress].[ServiceBG_Id]
                            LEFT JOIN [N_Businessgroup] WITH(NOLOCK) ON
                                [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                                [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                            WHERE
                                [N_ContragentEShopSettings].[ID] = 'E0B87CBDAA694AC480BCD81D96D4ABBB'

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

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

SELECT * FROM  fn_EShopItemInfo_New('BOSCH F 026 407 173', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT * FROM  fn_EShopItemInfo_New('BLUE PRINT ADB112114', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT * FROM  fn_EShopItemInfo_New('KNECHT OX 825D', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT * FROM  fn_EShopItemInfo_New('MANN HU 7003 X', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

SELECT * FROM  fn_EShopItemInfo_New('FILTRON OE 672/5', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BOSCH F 026 407 173', 'EE1D040DB23B48A6B8712B899CBA8660', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BLUE PRINT ADB112114', 'EE1D040DB23B48A6B8712B899CBA8660', '00')

SELECT * FROM  fn_EShopItemInfo_New('UFI 25.164.00', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('KNECHT OX 825D', 'EE1D040DB23B48A6B8712B899CBA8660', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('MANN HU 7003 X', 'EE1D040DB23B48A6B8712B899CBA8660', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('FILTRON OE 672/5', 'EE1D040DB23B48A6B8712B899CBA8660', '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 = 'BOSCH F 026 407 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 = 'BLUE PRINT ADB112114'
            GROUP BY fComp_Id,fItem_Id
# [17-Apr-2026 13:55:11] /elitcar/www/bg/ajax/prices/W00gQk9TQ0ggRiAwMjYgNDA3IDE3M10.html?_=1776423310894 108.61.209.243

set names utf8

SELECT 
                COUNT(m2.`MonetaId`) AS `Reusables`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = 'BOSCH F 026 407 173';

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
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LToday','LTomorrow','LMonday','LTuesday','LWednesday','LThursday','LFriday','LSaturday','LSunday','LFor','LQty','LUntil','LOClock','LInStock','LDeliveryTime','LAvailability','LOrderDeadline','LForToday','LForTomorrow') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT * FROM fn_GetDeliveryTS_ElitCar('001', '00', 'BOSCH F 026 407 173', 'МАРШРУТ  М2', null);

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 = 'MANN HU 7003 X'
            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 = 'KNECHT OX 825D'
            GROUP BY fComp_Id,fItem_Id
# [17-Apr-2026 13:55:11] /elitcar/www/bg/ajax/prices/W00gQkxVRSBQUklOVCBBREIxMTIxMTRd.html?_=1776423310896 108.61.209.243

set names utf8

SELECT 
                COUNT(m2.`MonetaId`) AS `Reusables`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = 'BLUE PRINT ADB112114';

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
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LToday','LTomorrow','LMonday','LTuesday','LWednesday','LThursday','LFriday','LSaturday','LSunday','LFor','LQty','LUntil','LOClock','LInStock','LDeliveryTime','LAvailability','LOrderDeadline','LForToday','LForTomorrow') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT * FROM fn_GetDeliveryTS_ElitCar('001', '00', 'BLUE PRINT ADB112114', 'МАРШРУТ  М2', null);

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 = 'FILTRON OE 672/5'
            GROUP BY fComp_Id,fItem_Id

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('UFI 25.164.00', 'EE1D040DB23B48A6B8712B899CBA8660', '00')
# [17-Apr-2026 13:55:11] /elitcar/www/bg/ajax/prices/W00gTUFOTiBIVSA3MDAzIFhd.html?_=1776423310892 108.61.209.243

set names utf8

SELECT 
                COUNT(m2.`MonetaId`) AS `Reusables`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = 'MANN HU 7003 X';
# [17-Apr-2026 13:55:11] /elitcar/www/bg/ajax/prices/W00gS05FQ0hUIE9YIDgyNURd.html?_=1776423310891 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 
                COUNT(m2.`MonetaId`) AS `Reusables`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = 'KNECHT OX 825D';

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LToday','LTomorrow','LMonday','LTuesday','LWednesday','LThursday','LFriday','LSaturday','LSunday','LFor','LQty','LUntil','LOClock','LInStock','LDeliveryTime','LAvailability','LOrderDeadline','LForToday','LForTomorrow') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

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 * FROM fn_GetDeliveryTS_ElitCar('001', '00', 'MANN HU 7003 X', 'МАРШРУТ  М2', null);

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LToday','LTomorrow','LMonday','LTuesday','LWednesday','LThursday','LFriday','LSaturday','LSunday','LFor','LQty','LUntil','LOClock','LInStock','LDeliveryTime','LAvailability','LOrderDeadline','LForToday','LForTomorrow') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT * FROM fn_GetDeliveryTS_ElitCar('001', '00', 'KNECHT OX 825D', 'МАРШРУТ  М2', null);
# [17-Apr-2026 13:55:11] /elitcar/www/bg/ajax/prices/W00gRklMVFJPTiBPRSA2NzIvNV0.html?_=1776423310897 108.61.209.243

set names utf8

SELECT 
                COUNT(m2.`MonetaId`) AS `Reusables`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = 'FILTRON OE 672/5';

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
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LToday','LTomorrow','LMonday','LTuesday','LWednesday','LThursday','LFriday','LSaturday','LSunday','LFor','LQty','LUntil','LOClock','LInStock','LDeliveryTime','LAvailability','LOrderDeadline','LForToday','LForTomorrow') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT * FROM fn_GetDeliveryTS_ElitCar('001', '00', 'FILTRON OE 672/5', 'МАРШРУТ  М2', null);

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'lubo' AND
                `ContragentID` = 'EE1D040DB23B48A6B8712B899CBA8660' AND
                `Items` LIKE '%W00gQk9TQ0ggRiAwMjYgNDA3IDE3M10%'
            LIMIT 1

Successfully disconnected from the database!

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'lubo' AND
                `ContragentID` = 'EE1D040DB23B48A6B8712B899CBA8660' AND
                `Items` LIKE '%W00gQkxVRSBQUklOVCBBREIxMTIxMTRd%'
            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 = 'UFI 25.164.00'
            GROUP BY fComp_Id,fItem_Id
# [17-Apr-2026 13:55:11] /elitcar/www/bg/ajax/prices/W00gVkVNTyBWMjAtNjAtMDEyMV0.html?_=1776423310898 108.61.209.243

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'lubo' AND
                `ContragentID` = 'EE1D040DB23B48A6B8712B899CBA8660' AND
                `Items` LIKE '%W00gTUFOTiBIVSA3MDAzIFhd%'
            LIMIT 1

Successfully disconnected from the database!

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'lubo' AND
                `ContragentID` = 'EE1D040DB23B48A6B8712B899CBA8660' AND
                `Items` LIKE '%W00gS05FQ0hUIE9YIDgyNURd%'
            LIMIT 1

Successfully disconnected from the database!
# [17-Apr-2026 13:55:11] /elitcar/www/bg/ajax/prices/W00gTlRZIEZPRi1CTS0wMzRd.html?_=1776423310899 108.61.209.243
# [17-Apr-2026 13:55:11] /elitcar/www/bg/ajax/prices/W00gVUZJIDI1LjE2NC4wMF0.html?_=1776423310898 108.61.209.243

set names utf8

SELECT 
                COUNT(m2.`MonetaId`) AS `Reusables`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = 'UFI 25.164.00';

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'lubo' AND
                `ContragentID` = 'EE1D040DB23B48A6B8712B899CBA8660' AND
                `Items` LIKE '%W00gRklMVFJPTiBPRSA2NzIvNV0%'
            LIMIT 1

Successfully disconnected from the database!
# [17-Apr-2026 13:55:11] /elitcar/www/bg/ajax/prices/W00gRkVCSSAxMDgzMTVd.html?_=1776423310900 108.61.209.243

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

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

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

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

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

SELECT * FROM  fn_EShopItemInfo_New('VEMO V20-60-0121', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT * FROM  fn_EShopItemInfo_New('NTY FOF-BM-034', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT * FROM  fn_EShopItemInfo_New('FEBI 108315', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('VEMO V20-60-0121', 'EE1D040DB23B48A6B8712B899CBA8660', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('NTY FOF-BM-034', 'EE1D040DB23B48A6B8712B899CBA8660', '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 = 'VEMO V20-60-0121'
            GROUP BY fComp_Id,fItem_Id

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('FEBI 108315', 'EE1D040DB23B48A6B8712B899CBA8660', '00')
# [17-Apr-2026 13:55:11] /elitcar/www/bg/ajax/prices/W00gVkVNTyBWMjAtNjAtMDEyMV0.html?_=1776423310898 108.61.209.243

set names utf8

SELECT 
                COUNT(m2.`MonetaId`) AS `Reusables`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = 'VEMO V20-60-0121';

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 = 'NTY FOF-BM-034'
            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 108315'
            GROUP BY fComp_Id,fItem_Id
# [17-Apr-2026 13:55:11] /elitcar/www/bg/ajax/prices/W00gTlRZIEZPRi1CTS0wMzRd.html?_=1776423310899 108.61.209.243

set names utf8

SELECT 
                COUNT(m2.`MonetaId`) AS `Reusables`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = 'NTY FOF-BM-034';
# [17-Apr-2026 13:55:11] /elitcar/www/bg/ajax/prices/W00gRkVCSSAxMDgzMTVd.html?_=1776423310900 108.61.209.243

set names utf8

SELECT 
                COUNT(m2.`MonetaId`) AS `Reusables`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = 'FEBI 108315';

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
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LToday','LTomorrow','LMonday','LTuesday','LWednesday','LThursday','LFriday','LSaturday','LSunday','LFor','LQty','LUntil','LOClock','LInStock','LDeliveryTime','LAvailability','LOrderDeadline','LForToday','LForTomorrow') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT * FROM fn_GetDeliveryTS_ElitCar('001', '00', 'FEBI 108315', 'МАРШРУТ  М2', null);

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'lubo' AND
                `ContragentID` = 'EE1D040DB23B48A6B8712B899CBA8660' AND
                `Items` LIKE '%W00gRkVCSSAxMDgzMTVd%'
            LIMIT 1

Successfully disconnected from the database!

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
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LToday','LTomorrow','LMonday','LTuesday','LWednesday','LThursday','LFriday','LSaturday','LSunday','LFor','LQty','LUntil','LOClock','LInStock','LDeliveryTime','LAvailability','LOrderDeadline','LForToday','LForTomorrow') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT * FROM fn_GetDeliveryTS_ElitCar('001', '00', 'UFI 25.164.00', 'МАРШРУТ  М2', null);

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
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LToday','LTomorrow','LMonday','LTuesday','LWednesday','LThursday','LFriday','LSaturday','LSunday','LFor','LQty','LUntil','LOClock','LInStock','LDeliveryTime','LAvailability','LOrderDeadline','LForToday','LForTomorrow') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT * FROM fn_GetDeliveryTS_ElitCar('001', '00', 'VEMO V20-60-0121', 'МАРШРУТ  М2', null);

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
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LToday','LTomorrow','LMonday','LTuesday','LWednesday','LThursday','LFriday','LSaturday','LSunday','LFor','LQty','LUntil','LOClock','LInStock','LDeliveryTime','LAvailability','LOrderDeadline','LForToday','LForTomorrow') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT * FROM fn_GetDeliveryTS_ElitCar('001', '00', 'NTY FOF-BM-034', 'МАРШРУТ  М2', null);

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'lubo' AND
                `ContragentID` = 'EE1D040DB23B48A6B8712B899CBA8660' AND
                `Items` LIKE '%W00gVUZJIDI1LjE2NC4wMF0%'
            LIMIT 1

Successfully disconnected from the database!

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'lubo' AND
                `ContragentID` = 'EE1D040DB23B48A6B8712B899CBA8660' AND
                `Items` LIKE '%W00gVkVNTyBWMjAtNjAtMDEyMV0%'
            LIMIT 1

Successfully disconnected from the database!

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'lubo' AND
                `ContragentID` = 'EE1D040DB23B48A6B8712B899CBA8660' AND
                `Items` LIKE '%W00gTlRZIEZPRi1CTS0wMzRd%'
            LIMIT 1

Successfully disconnected from the database!
# [17-Apr-2026 14:01:05] /elitcar/www/bg/tecdoc/16-9620-10312/tn_100259.html 108.61.209.243
# [17-Apr-2026 14:01:05] /elitcar/www/bg/tecdoc/16-9620-10312/tn_100259.html 108.61.209.243

set names utf8

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'e50283' AND `ProducerId` = 4814

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'alo8716' AND `ProducerId` = 7681

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'foe143jm' AND `ProducerId` = 7370

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'azmt410401203' AND `ProducerId` = 5275

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'eo30180' AND `ProducerId` = 7957

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'te30390' AND `ProducerId` = 7957

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'md717' AND `ProducerId` = 180

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'fof10092' AND `ProducerId` = 146

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

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'foe143jm' AND `ProducerId` = 257

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'pal28058' AND `ProducerId` = 442

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'la009' AND `ProducerId` = 4280

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'bf0423470020' AND `ProducerId` = 6752

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'adb112114' AND `ProducerId` = 350

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BLUE PRINT ADB112114'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'bfo4142' AND `ProducerId` = 475

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'b12458' AND `ProducerId` = 4815

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'f026407173' AND `ProducerId` = 30

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'fl0697' AND `ProducerId` = 4872

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'bsg15140004' AND `ProducerId` = 4455

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'co0318' AND `ProducerId` = 7736

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'CASTROL FILTERS CO0318'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'cof100750e' AND `ProducerId` = 43

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'eof257' AND `ProducerId` = 421

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '28000222332' AND `ProducerId` = 4434

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'fa6093eco' AND `ProducerId` = 437

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'v016' AND `ProducerId` = 7368

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'a210725' AND `ProducerId` = 186

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'dl1293' AND `ProducerId` = 4396

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'dp1110110219' AND `ProducerId` = 4948

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '1689032180' AND `ProducerId` = 4391

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

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'f805' AND `ProducerId` = 4838

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'mle1759' AND `ProducerId` = 4659

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'oe6725' AND `ProducerId` = 256

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'FILTRON OE 672/5'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '15a90309' AND `ProducerId` = 7918

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'ch11461eco' AND `ProducerId` = 59

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '809105101' AND `ProducerId` = 6484

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '809108601' AND `ProducerId` = 6484

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '809514301' AND `ProducerId` = 6484

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'ct02705' AND `ProducerId` = 313

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '907481' AND `ProducerId` = 5251

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '8zo366100971' AND `ProducerId` = 2

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'e820hd245' AND `ProducerId` = 81

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'HENGST E820H D245'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'so7249' AND `ProducerId` = 6309

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '14140' AND `ProducerId` = 341

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'foe143jm' AND `ProducerId` = 156

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'JAPANPARTS FOE-143JM'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'foeco143' AND `ProducerId` = 156

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'JAPANPARTS FO-ECO143'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '1eco143' AND `ProducerId` = 481

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'foe143jm' AND `ProducerId` = 481

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'b1b033pr' AND `ProducerId` = 4689

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'f115201' AND `ProducerId` = 185

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'fof10092' AND `ProducerId` = 201

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'KAVO PARTS FOF-10092'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'ox825d' AND `ProducerId` = 34

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'KNECHT OX 825D'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '50014494' AND `ProducerId` = 432

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'KS 50 014 494'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '06020040' AND `ProducerId` = 6923

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'lfoe302' AND `ProducerId` = 4501

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'lfoe302' AND `ProducerId` = 4973

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'lo1918' AND `ProducerId` = 4600

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '153071760764' AND `ProducerId` = 95

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'MAGNETI MARELLI 153071760764'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'ox825d' AND `ProducerId` = 287

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'eeob0055y' AND `ProducerId` = 4008

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'hu7003x' AND `ProducerId` = 4

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'MANN HU 7003 X'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '7003xofpcsms' AND `ProducerId` = 358

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'mx01180064' AND `ProducerId` = 5568

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '261214' AND `ProducerId` = 403

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '14140' AND `ProducerId` = 244

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'elh4463' AND `ProducerId` = 218

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '3143220005' AND `ProducerId` = 144

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'te4044' AND `ProducerId` = 462

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'l153' AND `ProducerId` = 4470

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'lvfl794' AND `ProducerId` = 4564

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '8550500213' AND `ProducerId` = 5377

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'fop283' AND `ProducerId` = 490

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'fofbm034' AND `ProducerId` = 6355

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'NTY FOF-BM-034'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '2441314' AND `ProducerId` = 4380

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'eof422010' AND `ProducerId` = 378

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'opfof40209' AND `ProducerId` = 129

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '45924' AND `ProducerId` = 4683

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '1f0162' AND `ProducerId` = 6983

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'l972' AND `ProducerId` = 38

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'qfl0308' AND `ProducerId` = 57

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '7o0171' AND `ProducerId` = 6358

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'ce0169ex' AND `ProducerId` = 4263

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 's5164pe' AND `ProducerId` = 142

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'skof0860170' AND `ProducerId` = 6357

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '2050728sx' AND `ProducerId` = 4595

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'ol07003e' AND `ProducerId` = 4011

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'op1004' AND `ProducerId` = 91

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

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

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '2516400' AND `ProducerId` = 137

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'v201525' AND `ProducerId` = 162

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'VAICO V20-1525'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '586623' AND `ProducerId` = 21

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '586625' AND `ProducerId` = 21

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'v20600121' AND `ProducerId` = 183

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'VEMO V20-60-0121'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '19992801' AND `ProducerId` = 4346

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'vol807001' AND `ProducerId` = 7745

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

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

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

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'wl7502' AND `ProducerId` = 324

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '210917' AND `ProducerId` = 6347

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

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

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

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

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

Successfully disconnected from the database!
# [17-Apr-2026 14:01:09] /elitcar/www/bg/ajax/moneta/sort.html?_=1776423670117 108.61.209.243
# [17-Apr-2026 14:01:09] /elitcar/www/bg/ajax/history/parts.html?_=1776423670118 108.61.209.243
# [17-Apr-2026 14:01:09] /elitcar/www/bg/ajax/users/bar.html?_=1776423670170 108.61.209.243

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

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

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_Businessgroup].[FaxNo] AS ObjectPhone,
                                [N_Contragent].[VATBus_PostingGroup] AS VAT,
                                [N_Contragent].[Currency_Id],
                                [N_Contragent].CreditLimit_LCY AS Creditlimit,
                                [N_Contragent].PaymentTermsCode  AS PaymentTerms,
                                [N_Contragent].PaymentMethodCode  AS PaymentMethodCode,
                                COALESCE([N_DeliveryAddress]._TransportType, [N_Contragent].TransportType) AS TransportType,
                                -- [N_DeliveryAddress].Route_Id AS TransportType,
                                COALESCE([N_DeliveryAddress]._SubDocument_Code, [N_Contragent]._SaleDocSubType_EK) AS SaleDocSubType,
                                COALESCE([N_DeliveryAddress]._DefaultPrintForm, [N_Contragent]._DefaultPrintForm) AS DefaultPrintForm
                            FROM
                                [N_ContragentEShopSettings] WITH(NOLOCK)
                            INNER JOIN [N_Contragent] WITH(NOLOCK) ON
                                [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                            LEFT JOIN [N_DeliveryAddress] WITH(NOLOCK) ON
                                [N_Contragent].[Comp_Id] = [N_DeliveryAddress].[Comp_Id] AND
                                [N_Contragent].[Id] = [N_DeliveryAddress].[Contragent_Id] AND
                                [N_ContragentEShopSettings].[ServiceBG_Id] = [N_DeliveryAddress].[ServiceBG_Id]
                            LEFT JOIN [N_Businessgroup] WITH(NOLOCK) ON
                                [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                                [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                            WHERE
                                [N_ContragentEShopSettings].[ID] = 'E0B87CBDAA694AC480BCD81D96D4ABBB'

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

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'
# [17-Apr-2026 14:01:09] /elitcar/www/bg/ajax/history/parts.html?_=1776423670118 108.61.209.243
# [17-Apr-2026 14:01:09] /elitcar/www/bg/ajax/moneta/sort.html?_=1776423670117 108.61.209.243

set names utf8

set names utf8

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

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` = '00'
            WHERE
                `elitcar_store`.`moneta`.`MonetaId` IN('ASHIKA 10-ECO143','BLUE PRINT ADB112114','BOSCH F 026 407 173','CASTROL FILTERS CO0318','CHAMPION COF100750E','DENCKERMANN A210725','FEBI 108315','FILTRON OE 672/5','HENGST E820H D245','JAPANPARTS FOE-143JM','JAPANPARTS FO-ECO143','KAMOKA F115201','KAVO PARTS FOF-10092','KNECHT OX 825D','KS 50 014 494','MAGNETI MARELLI 153071760764','MANN HU 7003 X','NTY FOF-BM-034','PURFLUX L972','TRUCKTEC 08.18.027','UFI 25.164.00','VAICO V20-1525','VALEO 586623','VALEO 586625','VEMO V20-60-0121')
            ORDER BY
                `elitcar_store`.`availabilities`.`Qty` DESC,
                `elitcar_store`.`moneta`.`Qty` DESC,
                `elitcar_store`.`moneta`.`QtyAll` DESC,
                `elitcar_store`.`moneta`.`Sales` DESC

Successfully disconnected from the database!

Successfully disconnected from the database!
# [17-Apr-2026 14:01:10] /elitcar/www/bg/ajax/users/bar.html?_=1776423670170 108.61.209.243

set names utf8

SELECT `Qty` FROM `elitcar_store`.`basket` WHERE `UserName` = 'lubo' AND `ContragentID` = 'EE1D040DB23B48A6B8712B899CBA8660' LIMIT 1

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

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LClient') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

Successfully disconnected from the database!
# [17-Apr-2026 14:01:10] /elitcar/www/bg/ajax/prices/W00gS05FQ0hUIE9YIDgyNURd.html?_=1776423670720 108.61.209.243
# [17-Apr-2026 14:01:10] /elitcar/www/bg/ajax/prices/W00gTUFOTiBIVSA3MDAzIFhd.html?_=1776423670721 108.61.209.243
# [17-Apr-2026 14:01:10] /elitcar/www/bg/ajax/prices/W00gQk9TQ0ggRiAwMjYgNDA3IDE3M10.html?_=1776423670721 108.61.209.243
# [17-Apr-2026 14:01:10] /elitcar/www/bg/ajax/prices/W00gRklMVFJPTiBPRSA2NzIvNV0.html?_=1776423670722 108.61.209.243
# [17-Apr-2026 14:01:10] /elitcar/www/bg/ajax/prices/W00gQkxVRSBQUklOVCBBREIxMTIxMTRd.html?_=1776423670721 108.61.209.243
# [17-Apr-2026 14:01:10] /elitcar/www/bg/ajax/prices/W00gVUZJIDI1LjE2NC4wMF0.html?_=1776423670722 108.61.209.243

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

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

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

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

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

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

SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => ЛЮБОМИР НАЧКОВ
)


SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => ЛЮБОМИР НАЧКОВ
)


SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => ЛЮБОМИР НАЧКОВ
)


SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => ЛЮБОМИР НАЧКОВ
)


SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => ЛЮБОМИР НАЧКОВ
)


SELECT
                                    _User_Id,
                                    _ChangeBlockedCntr
                                FROM
                                    N_ContragentEShopSettings
                                    INNER JOIN N_Users ON N_Users.Id = N_ContragentEShopSettings._User_Id
                                WHERE
                                    N_ContragentEShopSettings._User_Id = :sUser_Id /*това ти е променливата, която прочиташ при логване*/
                                    AND  N_Users.Is_Active = 1
Array
(
    [:sUser_Id] => ЛЮБОМИР НАЧКОВ
)


SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

SELECT * FROM  fn_EShopItemInfo_New('BLUE PRINT ADB112114', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT * FROM  fn_EShopItemInfo_New('UFI 25.164.00', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT * FROM  fn_EShopItemInfo_New('MANN HU 7003 X', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT * FROM  fn_EShopItemInfo_New('KNECHT OX 825D', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT * FROM  fn_EShopItemInfo_New('FILTRON OE 672/5', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT * FROM  fn_EShopItemInfo_New('BOSCH F 026 407 173', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BLUE PRINT ADB112114', 'EE1D040DB23B48A6B8712B899CBA8660', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('UFI 25.164.00', 'EE1D040DB23B48A6B8712B899CBA8660', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('MANN HU 7003 X', 'EE1D040DB23B48A6B8712B899CBA8660', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('KNECHT OX 825D', 'EE1D040DB23B48A6B8712B899CBA8660', '00')

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('FILTRON OE 672/5', 'EE1D040DB23B48A6B8712B899CBA8660', '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 = 'BLUE PRINT ADB112114'
            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 = 'UFI 25.164.00'
            GROUP BY fComp_Id,fItem_Id

SELECT AuctionDescription FROM fn_EShopItemInfoGiftsAuctionDesc_ElitCar('BOSCH F 026 407 173', 'EE1D040DB23B48A6B8712B899CBA8660', '00')
# [17-Apr-2026 14:01:10] /elitcar/www/bg/ajax/prices/W00gVUZJIDI1LjE2NC4wMF0.html?_=1776423670722 108.61.209.243

set names utf8

SELECT 
                COUNT(m2.`MonetaId`) AS `Reusables`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = 'UFI 25.164.00';
# [17-Apr-2026 14:01:10] /elitcar/www/bg/ajax/prices/W00gQkxVRSBQUklOVCBBREIxMTIxMTRd.html?_=1776423670721 108.61.209.243

set names utf8

SELECT 
                COUNT(m2.`MonetaId`) AS `Reusables`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = 'BLUE PRINT ADB112114';

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
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LToday','LTomorrow','LMonday','LTuesday','LWednesday','LThursday','LFriday','LSaturday','LSunday','LFor','LQty','LUntil','LOClock','LInStock','LDeliveryTime','LAvailability','LOrderDeadline','LForToday','LForTomorrow') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT * FROM fn_GetDeliveryTS_ElitCar('001', '00', 'BLUE PRINT ADB112114', 'МАРШРУТ  М2', null);

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 = 'MANN HU 7003 X'
            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 = 'KNECHT OX 825D'
            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 = 'FILTRON OE 672/5'
            GROUP BY fComp_Id,fItem_Id
# [17-Apr-2026 14:01:10] /elitcar/www/bg/ajax/prices/W00gTUFOTiBIVSA3MDAzIFhd.html?_=1776423670721 108.61.209.243

set names utf8

SELECT 
                COUNT(m2.`MonetaId`) AS `Reusables`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = 'MANN HU 7003 X';

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
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LToday','LTomorrow','LMonday','LTuesday','LWednesday','LThursday','LFriday','LSaturday','LSunday','LFor','LQty','LUntil','LOClock','LInStock','LDeliveryTime','LAvailability','LOrderDeadline','LForToday','LForTomorrow') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT * FROM fn_GetDeliveryTS_ElitCar('001', '00', 'MANN HU 7003 X', 'МАРШРУТ  М2', null);

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 407 173'
            GROUP BY fComp_Id,fItem_Id
# [17-Apr-2026 14:01:10] /elitcar/www/bg/ajax/prices/W00gS05FQ0hUIE9YIDgyNURd.html?_=1776423670720 108.61.209.243

set names utf8

SELECT 
                COUNT(m2.`MonetaId`) AS `Reusables`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = 'KNECHT OX 825D';

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
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LToday','LTomorrow','LMonday','LTuesday','LWednesday','LThursday','LFriday','LSaturday','LSunday','LFor','LQty','LUntil','LOClock','LInStock','LDeliveryTime','LAvailability','LOrderDeadline','LForToday','LForTomorrow') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT * FROM fn_GetDeliveryTS_ElitCar('001', '00', 'KNECHT OX 825D', 'МАРШРУТ  М2', null);

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'lubo' AND
                `ContragentID` = 'EE1D040DB23B48A6B8712B899CBA8660' AND
                `Items` LIKE '%W00gQkxVRSBQUklOVCBBREIxMTIxMTRd%'
            LIMIT 1
# [17-Apr-2026 14:01:10] /elitcar/www/bg/ajax/prices/W00gRklMVFJPTiBPRSA2NzIvNV0.html?_=1776423670722 108.61.209.243

Successfully disconnected from the database!

set names utf8

SELECT 
                COUNT(m2.`MonetaId`) AS `Reusables`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = 'FILTRON OE 672/5';

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
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LToday','LTomorrow','LMonday','LTuesday','LWednesday','LThursday','LFriday','LSaturday','LSunday','LFor','LQty','LUntil','LOClock','LInStock','LDeliveryTime','LAvailability','LOrderDeadline','LForToday','LForTomorrow') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT * FROM fn_GetDeliveryTS_ElitCar('001', '00', 'FILTRON OE 672/5', 'МАРШРУТ  М2', null);
# [17-Apr-2026 14:01:10] /elitcar/www/bg/ajax/prices/W00gQk9TQ0ggRiAwMjYgNDA3IDE3M10.html?_=1776423670721 108.61.209.243

set names utf8

SELECT 
                COUNT(m2.`MonetaId`) AS `Reusables`
            FROM 
                `moneta` m1
                JOIN `moneta` m2
                    ON m2.`ReusableGroupId` = m1.`ReusableGroupId` AND
                    m2.`MonetaId` <> m1.`MonetaId`
            WHERE m1.`MonetaId` = 'BOSCH F 026 407 173';

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
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LToday','LTomorrow','LMonday','LTuesday','LWednesday','LThursday','LFriday','LSaturday','LSunday','LFor','LQty','LUntil','LOClock','LInStock','LDeliveryTime','LAvailability','LOrderDeadline','LForToday','LForTomorrow') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT * FROM fn_GetDeliveryTS_ElitCar('001', '00', 'BOSCH F 026 407 173', 'МАРШРУТ  М2', null);
# [17-Apr-2026 14:01:10] /elitcar/www/bg/ajax/prices/W00gVkVNTyBWMjAtNjAtMDEyMV0.html?_=1776423670723 108.61.209.243

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'lubo' AND
                `ContragentID` = 'EE1D040DB23B48A6B8712B899CBA8660' AND
                `Items` LIKE '%W00gS05FQ0hUIE9YIDgyNURd%'
            LIMIT 1

Successfully disconnected from the database!

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'lubo' AND
                `ContragentID` = 'EE1D040DB23B48A6B8712B899CBA8660' AND
                `Items` LIKE '%W00gRklMVFJPTiBPRSA2NzIvNV0%'
            LIMIT 1

Successfully disconnected from the database!

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'lubo' AND
                `ContragentID` = 'EE1D040DB23B48A6B8712B899CBA8660' AND
                `Items` LIKE '%W00gQk9TQ0ggRiAwMjYgNDA3IDE3M10%'
            LIMIT 1

Successfully disconnected from the database!
# [17-Apr-2026 14:01:11] /elitcar/www/bg/ajax/prices/W00gTlRZIEZPRi1CTS0wMzRd.html?_=1776423670724 108.61.209.243
# [17-Apr-2026 14:01:11] /elitcar/www/bg/ajax/prices/W00gRkVCSSAxMDgzMTVd.html?_=1776423670725 108.61.209.243

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'lubo' AND
                `ContragentID` = 'EE1D040DB23B48A6B8712B899CBA8660' AND
                `Items` LIKE '%W00gTUFOTiBIVSA3MDAzIFhd%'
            LIMIT 1

Successfully disconnected from the database!

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

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

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_Businessgroup].[FaxNo] AS ObjectPhone,
                                [N_Contragent].[VATBus_PostingGroup] AS VAT,
                                [N_Contragent].[Currency_Id],
                                [N_Contragent].CreditLimit_LCY AS Creditlimit,
                                [N_Contragent].PaymentTermsCode  AS PaymentTerms,
                                [N_Contragent].PaymentMethodCode  AS PaymentMethodCode,
                                COALESCE([N_DeliveryAddress]._TransportType, [N_Contragent].TransportType) AS TransportType,
                                -- [N_DeliveryAddress].Route_Id AS TransportType,
                                COALESCE([N_DeliveryAddress]._SubDocument_Code, [N_Contragent]._SaleDocSubType_EK) AS SaleDocSubType,
                                COALESCE([N_DeliveryAddress]._DefaultPrintForm, [N_Contragent]._DefaultPrintForm) AS DefaultPrintForm
                            FROM
                                [N_ContragentEShopSettings] WITH(NOLOCK)
                            INNER JOIN [N_Contragent] WITH(NOLOCK) ON
                                [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                            LEFT JOIN [N_DeliveryAddress] WITH(NOLOCK) ON
                                [N_Contragent].[Comp_Id] = [N_DeliveryAddress].[Comp_Id] AND
                                [N_Contragent].[Id] = [N_DeliveryAddress].[Contragent_Id] AND
                                [N_ContragentEShopSettings].[ServiceBG_Id] = [N_DeliveryAddress].[ServiceBG_Id]
                            LEFT JOIN [N_Businessgroup] WITH(NOLOCK) ON
                                [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                                [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                            WHERE
                                [N_ContragentEShopSettings].[ID] = 'E0B87CBDAA694AC480BCD81D96D4ABBB'

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '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 * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

SELECT * FROM  fn_EShopItemInfo_New('VEMO V20-60-0121', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

SELECT * FROM  fn_EShopItemInfo_New('NTY FOF-BM-034', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

SELECT * FROM  fn_EShopItemInfo_New('FEBI 108315', 'EE1D040DB23B48A6B8712B899CBA8660', '00', '');

Successfully disconnected from the database!

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
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LToday','LTomorrow','LMonday','LTuesday','LWednesday','LThursday','LFriday','LSaturday','LSunday','LFor','LQty','LUntil','LOClock','LInStock','LDeliveryTime','LAvailability','LOrderDeadline','LForToday','LForTomorrow') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

SELECT * FROM fn_GetDeliveryTS_ElitCar('001', '00', 'UFI 25.164.00', 'МАРШРУТ  М2', null);

SELECT
                `Items`
            FROM
                `elitcar_store`.`basket`
            WHERE
                `UserName` = 'lubo' AND
                `ContragentID` = 'EE1D040DB23B48A6B8712B899CBA8660' AND
                `Items` LIKE '%W00gVUZJIDI1LjE2NC4wMF0%'
            LIMIT 1

Successfully disconnected from the database!

Successfully disconnected from the database!

Successfully disconnected from the database!
# [17-Apr-2026 14:01:44] /elitcar/www/bg/tecdoc/16-9620-10312/tn_100259.html 108.61.209.243
# [17-Apr-2026 14:01:44] /elitcar/www/bg/tecdoc/16-9620-10312/tn_100259.html 108.61.209.243

set names utf8

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'e50283' AND `ProducerId` = 4814

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'alo8716' AND `ProducerId` = 7681

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'foe143jm' AND `ProducerId` = 7370

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'azmt410401203' AND `ProducerId` = 5275

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'eo30180' AND `ProducerId` = 7957

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'te30390' AND `ProducerId` = 7957

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'md717' AND `ProducerId` = 180

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'fof10092' AND `ProducerId` = 146

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

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'foe143jm' AND `ProducerId` = 257

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'pal28058' AND `ProducerId` = 442

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'la009' AND `ProducerId` = 4280

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'bf0423470020' AND `ProducerId` = 6752

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'adb112114' AND `ProducerId` = 350

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'BLUE PRINT ADB112114'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'bfo4142' AND `ProducerId` = 475

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'b12458' AND `ProducerId` = 4815

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'f026407173' AND `ProducerId` = 30

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'fl0697' AND `ProducerId` = 4872

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'bsg15140004' AND `ProducerId` = 4455

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'co0318' AND `ProducerId` = 7736

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'CASTROL FILTERS CO0318'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'cof100750e' AND `ProducerId` = 43

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'eof257' AND `ProducerId` = 421

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '28000222332' AND `ProducerId` = 4434

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'fa6093eco' AND `ProducerId` = 437

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'v016' AND `ProducerId` = 7368

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'a210725' AND `ProducerId` = 186

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'dl1293' AND `ProducerId` = 4396

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'dp1110110219' AND `ProducerId` = 4948

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '1689032180' AND `ProducerId` = 4391

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

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'f805' AND `ProducerId` = 4838

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'mle1759' AND `ProducerId` = 4659

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'oe6725' AND `ProducerId` = 256

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'FILTRON OE 672/5'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '15a90309' AND `ProducerId` = 7918

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'ch11461eco' AND `ProducerId` = 59

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '809105101' AND `ProducerId` = 6484

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '809108601' AND `ProducerId` = 6484

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '809514301' AND `ProducerId` = 6484

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'ct02705' AND `ProducerId` = 313

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '907481' AND `ProducerId` = 5251

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '8zo366100971' AND `ProducerId` = 2

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'e820hd245' AND `ProducerId` = 81

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'HENGST E820H D245'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'so7249' AND `ProducerId` = 6309

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '14140' AND `ProducerId` = 341

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'foe143jm' AND `ProducerId` = 156

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'JAPANPARTS FOE-143JM'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'foeco143' AND `ProducerId` = 156

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'JAPANPARTS FO-ECO143'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '1eco143' AND `ProducerId` = 481

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'foe143jm' AND `ProducerId` = 481

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'b1b033pr' AND `ProducerId` = 4689

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'f115201' AND `ProducerId` = 185

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'fof10092' AND `ProducerId` = 201

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'KAVO PARTS FOF-10092'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'ox825d' AND `ProducerId` = 34

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'KNECHT OX 825D'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '50014494' AND `ProducerId` = 432

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'KS 50 014 494'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '06020040' AND `ProducerId` = 6923

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'lfoe302' AND `ProducerId` = 4501

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'lfoe302' AND `ProducerId` = 4973

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'lo1918' AND `ProducerId` = 4600

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '153071760764' AND `ProducerId` = 95

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'MAGNETI MARELLI 153071760764'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'ox825d' AND `ProducerId` = 287

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'eeob0055y' AND `ProducerId` = 4008

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'hu7003x' AND `ProducerId` = 4

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'MANN HU 7003 X'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '7003xofpcsms' AND `ProducerId` = 358

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'mx01180064' AND `ProducerId` = 5568

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '261214' AND `ProducerId` = 403

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '14140' AND `ProducerId` = 244

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'elh4463' AND `ProducerId` = 218

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '3143220005' AND `ProducerId` = 144

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'te4044' AND `ProducerId` = 462

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'l153' AND `ProducerId` = 4470

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'lvfl794' AND `ProducerId` = 4564

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '8550500213' AND `ProducerId` = 5377

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'fop283' AND `ProducerId` = 490

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'fofbm034' AND `ProducerId` = 6355

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'NTY FOF-BM-034'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '2441314' AND `ProducerId` = 4380

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'eof422010' AND `ProducerId` = 378

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'opfof40209' AND `ProducerId` = 129

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '45924' AND `ProducerId` = 4683

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '1f0162' AND `ProducerId` = 6983

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'l972' AND `ProducerId` = 38

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'qfl0308' AND `ProducerId` = 57

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '7o0171' AND `ProducerId` = 6358

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'ce0169ex' AND `ProducerId` = 4263

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 's5164pe' AND `ProducerId` = 142

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'skof0860170' AND `ProducerId` = 6357

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '2050728sx' AND `ProducerId` = 4595

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'ol07003e' AND `ProducerId` = 4011

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'op1004' AND `ProducerId` = 91

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

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

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '2516400' AND `ProducerId` = 137

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'v201525' AND `ProducerId` = 162

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'VAICO V20-1525'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '586623' AND `ProducerId` = 21

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '586625' AND `ProducerId` = 21

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'v20600121' AND `ProducerId` = 183

SELECT
                `BrandID`,
                `Gallery`,
                `Title`,
                `Content`
            FROM
                `elitcar_store`.`products`
            WHERE
                `MonetaID` = 'VEMO V20-60-0121'
            LIMIT 1

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '19992801' AND `ProducerId` = 4346

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'vol807001' AND `ProducerId` = 7745

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

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

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

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

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = 'wl7502' AND `ProducerId` = 324

SELECT `MonetaId` FROM `elitcar_store`.`moneta` WHERE `FullSearchTecDocId` = '210917' AND `ProducerId` = 6347

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

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

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

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

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

Successfully disconnected from the database!
# [17-Apr-2026 14:01:48] /elitcar/www/bg/ajax/moneta/sort.html?_=1776423709150 108.61.209.243
# [17-Apr-2026 14:01:48] /elitcar/www/bg/ajax/history/parts.html?_=1776423709151 108.61.209.243
# [17-Apr-2026 14:01:48] /elitcar/www/bg/ajax/users/bar.html?_=1776423709299 108.61.209.243

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

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

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_Businessgroup].[FaxNo] AS ObjectPhone,
                                [N_Contragent].[VATBus_PostingGroup] AS VAT,
                                [N_Contragent].[Currency_Id],
                                [N_Contragent].CreditLimit_LCY AS Creditlimit,
                                [N_Contragent].PaymentTermsCode  AS PaymentTerms,
                                [N_Contragent].PaymentMethodCode  AS PaymentMethodCode,
                                COALESCE([N_DeliveryAddress]._TransportType, [N_Contragent].TransportType) AS TransportType,
                                -- [N_DeliveryAddress].Route_Id AS TransportType,
                                COALESCE([N_DeliveryAddress]._SubDocument_Code, [N_Contragent]._SaleDocSubType_EK) AS SaleDocSubType,
                                COALESCE([N_DeliveryAddress]._DefaultPrintForm, [N_Contragent]._DefaultPrintForm) AS DefaultPrintForm
                            FROM
                                [N_ContragentEShopSettings] WITH(NOLOCK)
                            INNER JOIN [N_Contragent] WITH(NOLOCK) ON
                                [N_Contragent].[Id] = [N_ContragentEShopSettings].[Contragent_Id]
                            LEFT JOIN [N_DeliveryAddress] WITH(NOLOCK) ON
                                [N_Contragent].[Comp_Id] = [N_DeliveryAddress].[Comp_Id] AND
                                [N_Contragent].[Id] = [N_DeliveryAddress].[Contragent_Id] AND
                                [N_ContragentEShopSettings].[ServiceBG_Id] = [N_DeliveryAddress].[ServiceBG_Id]
                            LEFT JOIN [N_Businessgroup] WITH(NOLOCK) ON
                                [N_Businessgroup].[Id] = [N_ContragentEShopSettings].[ServiceBG_Id] AND
                                [N_Businessgroup].[Comp_Id] = [N_ContragentEShopSettings].[Comp_Id]
                            WHERE
                                [N_ContragentEShopSettings].[ID] = 'E0B87CBDAA694AC480BCD81D96D4ABBB'

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

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

SELECT * FROM fn_GetNextRouteForClient('001', 'EE1D040DB23B48A6B8712B899CBA8660', '00', 0)

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'

exec usp_CheckContragentDue_ElitCar_web 'EE1D040DB23B48A6B8712B899CBA8660', '001', 0, '2026-04-17', '00'
# [17-Apr-2026 14:01:49] /elitcar/www/bg/ajax/moneta/sort.html?_=1776423709150 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` = '00'
            WHERE
                `elitcar_store`.`moneta`.`MonetaId` IN('ASHIKA 10-ECO143','BLUE PRINT ADB112114','BOSCH F 026 407 173','CASTROL FILTERS CO0318','CHAMPION COF100750E','DENCKERMANN A210725','FEBI 108315','FILTRON OE 672/5','HENGST E820H D245','JAPANPARTS FOE-143JM','JAPANPARTS FO-ECO143','KAMOKA F115201','KAVO PARTS FOF-10092','KNECHT OX 825D','KS 50 014 494','MAGNETI MARELLI 153071760764','MANN HU 7003 X','NTY FOF-BM-034','PURFLUX L972','TRUCKTEC 08.18.027','UFI 25.164.00','VAICO V20-1525','VALEO 586623','VALEO 586625','VEMO V20-60-0121')
            ORDER BY
                `elitcar_store`.`availabilities`.`Qty` DESC,
                `elitcar_store`.`moneta`.`Qty` DESC,
                `elitcar_store`.`moneta`.`QtyAll` DESC,
                `elitcar_store`.`moneta`.`Sales` DESC

Successfully disconnected from the database!
# [17-Apr-2026 14:01:49] /elitcar/www/bg/ajax/history/parts.html?_=1776423709151 108.61.209.243

set names utf8

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

Successfully disconnected from the database!
# [17-Apr-2026 14:01:49] /elitcar/www/bg/ajax/users/bar.html?_=1776423709299 108.61.209.243

set names utf8

SELECT `Qty` FROM `elitcar_store`.`basket` WHERE `UserName` = 'lubo' AND `ContragentID` = 'EE1D040DB23B48A6B8712B899CBA8660' LIMIT 1

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

SELECT
                `Label`,
                `Value`
            FROM
                `elitcar_store`.`labels`
            WHERE
                `Label` IN ('LClient') AND
                `Language` = 'bg'
             ORDER BY
                `elitcar_store`.`labels`.`Label` ASC

Successfully disconnected from the database!
# [17-Apr-2026 14:01:49] /elitcar/www/bg/ajax/prices/W00gTUFOTiBIVSA3MDAzIFhd.html?_=1776423709860 108.61.209.243
# [17-Apr-2026 14:01:49] /elitcar/www/bg/ajax/prices/W00gS05FQ0hUIE9YIDgyNURd.html?_=1776423709859 108.61.209.243
# [17-Apr-2026 14:01:49] /elitcar/www/bg/ajax/prices/W00gQk9TQ0ggRiAwMjYgNDA3IDE3M10.html?_=1776423709861 108.61.209.243
# [17-Apr-2026 14:01:49] /elitcar/www/bg/ajax/prices/W00gRklMVFJPTiBPRSA2NzIvNV0.html?_=1776423709862 108.61.209.243
# [17-Apr-2026 14:01:49] /elitcar/www/bg/ajax/prices/W00gQkxVRSBQUklOVCBBREIxMTIxMTRd.html?_=1776423709861 108.61.209.243
# [17-Apr-2026 14:01:49] /elitcar/www/bg/ajax/prices/W00gVUZJIDI1LjE2NC4wMF0.html?_=1776423709862 108.61.209.243

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

