# [08-Jan-2024 14:58:00] /finance/root/bg/invoices.html 167.99.142.201

set names utf8

SELECT * FROM `invoices` AS `Inv` WHERE `Inv`.`Type` > 0 ORDER BY `Inv`.`PostDate` DESC, `Inv`.`ID` DESC
# [08-Jan-2024 14:58:40] /finance/root/bg/invoices/1000000064.html 167.99.142.201

set names utf8

SELECT
                `Inv`.*,
                `Original`.`PostDate` AS `OriginalPostDate`
            FROM
                `invoices` AS `Inv`
                LEFT JOIN `invoices` AS `Original` ON `Inv`.`ParentID` = `Original`.`ID`
            WHERE
                `Inv`.`ID` = 1000000064
            LIMIT 1

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('Dec') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [08-Jan-2024 15:43:07] /finance/root/bg/invoices.html 167.99.142.201

set names utf8

SELECT * FROM `invoices` AS `Inv` WHERE `Inv`.`Type` > 0 ORDER BY `Inv`.`PostDate` DESC, `Inv`.`ID` DESC
# [08-Jan-2024 15:43:12] /finance/root/bg/proforma.html 167.99.142.201

set names utf8

SELECT
                    `Inv`.*,
                    `Original`.`ID` AS `OriginalID`
                FROM
                    `invoices` AS `Inv`
                    LEFT JOIN `invoices` AS `Original` ON `Inv`.`ID` = `Original`.`ParentID`
                WHERE
                    `Inv`.`Type` = 0
             ORDER BY `Inv`.`PostDate` DESC, `Inv`.`ID` DESC
# [08-Jan-2024 15:43:36] /finance/root/bg/invoices.html 167.99.142.201

set names utf8

SELECT * FROM `invoices` AS `Inv` WHERE `Inv`.`Type` > 0 ORDER BY `Inv`.`PostDate` DESC, `Inv`.`ID` DESC
# [08-Jan-2024 15:43:38] /finance/root/bg/invoices.html 167.99.142.201

set names utf8

SELECT * FROM `invoices` AS `Inv` WHERE `Inv`.`Type` > 0 ORDER BY `Inv`.`PostDate` DESC, `Inv`.`ID` DESC
# [08-Jan-2024 15:44:14] /finance/root/bg/proforma.html 167.99.142.201

set names utf8

SELECT
                    `Inv`.*,
                    `Original`.`ID` AS `OriginalID`
                FROM
                    `invoices` AS `Inv`
                    LEFT JOIN `invoices` AS `Original` ON `Inv`.`ID` = `Original`.`ParentID`
                WHERE
                    `Inv`.`Type` = 0
             ORDER BY `Inv`.`PostDate` DESC, `Inv`.`ID` DESC
# [08-Jan-2024 15:44:17] /finance/root/bg/ajax/invoices/form/clone/10386.html?pid=10386&_=1704721457505 167.99.142.201

set names utf8

SELECT
                *
            FROM
                `invoices`
            WHERE
                `ID` = 10386
            LIMIT 1

SELECT
                `ID`,
                `Data`
            FROM
                `clients`
            WHERE
         `Type` = 0 AND 
                    `Top` = 1
                ORDER BY
                    `PostDate`
                LIMIT 20

SELECT
                `ID`,
                `Data`
            FROM
                `clients`
            WHERE
         `Type` = 1 AND 
                    `Top` = 1
                ORDER BY
                    `PostDate`
                LIMIT 20
# [08-Jan-2024 15:44:21] /finance/root/bg/ajax/invoices/insert.html?_=1704721461621 167.99.142.201

set names utf8

SELECT
                *
            FROM
                `clients`
            WHERE
                `ID` = 37 AND
                `Visible` = 1
            LIMIT 1

SELECT
                *
            FROM
                `clients`
            WHERE
                `ID` = 1 AND
                `Visible` = 1
            LIMIT 1

SELECT MAX(`ID`) + 1 FROM `invoices` WHERE `Type` > 0 AND `ID` < 1000000000

SELECT * FROM `invoices` LIMIT 1

SHOW COLUMNS FROM `invoices`

INSERT INTO `invoices` SET `ID` = '2165', `Language` = 'bg', `PostDate` = '2024-01-08 15:44:21', `LastUpdate` = '2024-01-08 15:44:21', `Type` = '1', `ParentID` = 10386, `Data` = 'xwQnraNg2B5PE5jvQ1mGoW00weGnr-PYL_WCGzRGNjPgPcM_1Jvm8VDSj3ah47ew2E4rtODuAYAXIi3gTTGqnEkoTETUntDu3Q7GK4VS59QOwffSUh6t-npOsHKTFI8tYfKsyYyf7EOIwaUvqyu_aeaUPkWbGpCf7RPZ4qjLb0wNIQgunlUroFhqvOBwZGFIzT3yFboZQXqV-fxfpNmwAR10RH-C0k6schtUn9tQcsvRtG_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w-Ljf7tBuprHOO9mBjUMZpOZWHsQUmnlS8h3Axa7bz8GwCNyu9axSZJBZejJemqCutYjf6ZY7SqJpXGbjld0HNRK_fGDZMqUqgY_4IM5p_Pp7H8jDdvF6z-md2XvaLPvPxKuFQTAnFcvjxnSMDjfmaP9gQSZ_Cwj-Gh1nB0cLCMcZ1HHDaBCYgM113dJ0ns1EgwVZdjUH6eyX1IYPxrhtwv461DSSWKPg1ppjeMKrNNIAcHVSnai7NWn-brWLymxyfNyUGQoQ8sf47N1j1ArqPEZUcF4cZd9S44oeh8fCjbLZLQe-n268HHHD2-06Asy9ICpFNPeKFi6CBvEjR9UzQWsGfGKejZHGA0QvqbGzRdMKgPSAWh7m7g01g1siuV_XNHJSD_z-d_UHCgfzAmgMWT_YL23gv', `SearchKey` = 'wofCpMOiw4DCt8wofCpMOPwrDgMK6wrPCtcKDwqTDnsKrw5nDj8KhwwofCpMOIwrDg8OgwqCocKDwqTCwrrCsMKyw5bCsMOawrLCpcKtwrDCwofCscOAwrDg8KlwrPCtcKDwqTCsMKrw5jDn8KdwqbChMKhwqrCvMOXw5TCiMKHwp3DgMwofCpMKjwrDgMwofCscK0wrDgcOQwqCqsKDwqTDosKrw5jCucKdwqfChMKhwoXCvMOUwwofCpMOiwr'
# [08-Jan-2024 15:44:21] /finance/root/bg/proforma.html 167.99.142.201

set names utf8

SELECT
                    `Inv`.*,
                    `Original`.`ID` AS `OriginalID`
                FROM
                    `invoices` AS `Inv`
                    LEFT JOIN `invoices` AS `Original` ON `Inv`.`ID` = `Original`.`ParentID`
                WHERE
                    `Inv`.`Type` = 0
             ORDER BY `Inv`.`PostDate` DESC, `Inv`.`ID` DESC
# [08-Jan-2024 15:44:23] /finance/root/bg/invoices.html 167.99.142.201

set names utf8

SELECT * FROM `invoices` AS `Inv` WHERE `Inv`.`Type` > 0 ORDER BY `Inv`.`PostDate` DESC, `Inv`.`ID` DESC
# [08-Jan-2024 15:44:40] /finance/root/bg/ajax/invoices/form/2165.html?_=1704721481018 167.99.142.201

set names utf8

SELECT
                *
            FROM
                `invoices`
            WHERE
                `ID` = 2165
            LIMIT 1

SELECT
                `ID`,
                `Data`
            FROM
                `clients`
            WHERE
         `Type` = 0 AND 
                    `Top` = 1
                ORDER BY
                    `PostDate`
                LIMIT 20

SELECT
                `ID`,
                `Data`
            FROM
                `clients`
            WHERE
         `Type` = 1 AND 
                    `Top` = 1
                ORDER BY
                    `PostDate`
                LIMIT 20
# [08-Jan-2024 15:44:45] /finance/root/bg/ajax/invoices/update/2165.html?_=1704721485468 167.99.142.201

set names utf8

SELECT
                *
            FROM
                `clients`
            WHERE
                `ID` = 37 AND
                `Visible` = 1
            LIMIT 1

SELECT
                *
            FROM
                `clients`
            WHERE
                `ID` = 1 AND
                `Visible` = 1
            LIMIT 1

SELECT * FROM `invoices` WHERE 1  AND ID = '2165' AND Language = 'bg' LIMIT 1

INSERT INTO `history`
                (`ID`, `PostDate`, `TableName`, `PrimaryKey`, `Data`) VALUES
                (NULL, NOW(), 'invoices', '2165bg', 'eP6-mcfmizjwCuPhUZH13-PatYtGTd0r3Sc_chrfwrqf3Nz1lp4Be4jkPfqbeV1C4FCPGzUGp9STaI5uwC-L9k7xLq-MJyNXixqqtmJ_stWZAZDn2F7evxgDpZSB-bZRX0_5L36gzN2hRPz4giz_8XVFBbxWwR2oV-eV8MqL15BCbmmtI5CG24w6oRWBr1qw4wOfzPoIaNxlJc73lI4_Z83p8Gvq-xaR4fXmbTikgDyzZSek6rYPAXplbiA_n66KV1SQqRIpFC1cU2mPlR_xrTIqG3Mo2b0nUPpZr1osYBF3DtJMjtdGxFGNifVZCOLnqAamW3UBZfAeJx6ymQYbYrm8I5rNCkFypia6Rwy7Kai7nl2gDP6v4Bqnw6xgt_iHY3lS_NTlaT8csccHghJnmzfrflFvXPkmN3b5WzzvWUJd0q3RT_z-EFVG-35HLh2aKauWR65deZPqTYkh7TXZfvcaLOXmHQ0gknC0oh9b7Jy02P1im1PmlBkbeAhmXjkmUYFLM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vlOjrb7kh9Soi-577O9XbhjMSE4bYDSmXtKfHTGtaxfpnAFQc_j8e5jINi6CNV--q4vZI7rbEmxe5tFvWfVscb4R4f6Z4UJk61aF_Thyat_RIvAICW8jz4SHqPCgZwOtbtH5L8GCr64tPQE4QipqIyp4Z0Tty6AFAtXmw5lSOzq7_QiHQi9uOqDhDOaSxYhkOmUUU66z_CXlhm4TO-CYEaP9wyWZsnT3-HqrRFMVJEukzbwhYwBX7XAJt42SU8')

SELECT * FROM `invoices` LIMIT 1

SHOW COLUMNS FROM `invoices`

UPDATE `invoices` SET `ID` = '2165', `Language` = 'bg', `PostDate` = '2024-01-05 15:44:45', `LastUpdate` = '2024-01-08 15:44:45', `Type` = '1', `ParentID` = 10386, `Data` = 'hayALTpJbpCIha539qZDF7FH5opXDuoWoPT5Nc_vO3ePIcouhMTNsUDeKsNkiy_8kY_KRYNPBW92AYJfo3EYuNMk3D2qY4SpH8waKCuAxzbxWmld9OHH5LdtRoI4zlfsh1V2tYYeTSz1CFHRDKMMv9m_Ryeyv8YUtFbYaGdSuut4CJ79v0CqVnkRSYfNAPFwQszmR9QlUWgtSbM9spwlH5bAL3eeJHio8vTVA9wn4KLtf_yDn60cUfeQtWtKpyoxcYRzz087mT4J1liBxXtauMPWWGy2BMpbLO2Udpv_NHHunysFqC9HYjNin4dc38cjRzkLC5haaTV3KOyt7UTBj2D4ZNq55D0g2gAkI9nBPrErqih3t3MU7ja56ltGjjUMyZkSl-jHmzu8Mco2g_7iRB6AqljpQbu09gNv8yg_N1cLThKeLYIRbBR-_bv4ziDBXBemZsvlwFm-HGj5GGtXU09WLXg11ZanD205OKe0JWZ_fJHloQmVzFTv2rwaCoMMEd1cpEfcr4_aOMVpX2SgVFMt61GBQXfHekB6D6fBSG7tYPbQiNgedyRNtImhHXhTh0EXLsW33n0f_knfSANY8X4QCduciSDodLjg7oCESUJ5UI-bgSULp401LuV4f--RNjTGOaNxgIePhsGQkkDETgL0qrb84CMK2hYryTDjj8ZsnEuo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sKrw5nDj8KhwwofCpMOIwrDg8OgwqCocKDwqTCwrrCsMKyw5bCsMOawrLCpcKtwrDCwofCscOAwrDg8KlwrPCtcKDwqTCsMKrw5jDn8KdwqbChMKhwqrCvMOXw5TCiMKHwp3DgMwofCpMKjwrDgMwofCscK0wrDgcOQwqCqsKDwqTDosKrw5jCucKdwqfChMKhwoXCvMOUwwofCpMOiwr' WHERE `ID` = '2165'
# [08-Jan-2024 15:44:45] /finance/root/bg/invoices.html 167.99.142.201

set names utf8

SELECT * FROM `invoices` AS `Inv` WHERE `Inv`.`Type` > 0 ORDER BY `Inv`.`PostDate` DESC, `Inv`.`ID` DESC
# [08-Jan-2024 15:57:24] /finance/root/bg/invoices/2165.html 167.99.142.201

set names utf8

SELECT
                `Inv`.*,
                `Original`.`PostDate` AS `OriginalPostDate`
            FROM
                `invoices` AS `Inv`
                LEFT JOIN `invoices` AS `Original` ON `Inv`.`ParentID` = `Original`.`ID`
            WHERE
                `Inv`.`ID` = 2165
            LIMIT 1

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('Jan') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [08-Jan-2024 16:32:14] /finance/root/bg/invoices.html 167.99.142.201

set names utf8

SELECT * FROM `invoices` AS `Inv` WHERE `Inv`.`Type` > 0 ORDER BY `Inv`.`PostDate` DESC, `Inv`.`ID` DESC
# [08-Jan-2024 16:32:17] /finance/root/bg/invoices/2165.html 167.99.142.201

set names utf8

SELECT
                `Inv`.*,
                `Original`.`PostDate` AS `OriginalPostDate`
            FROM
                `invoices` AS `Inv`
                LEFT JOIN `invoices` AS `Original` ON `Inv`.`ParentID` = `Original`.`ID`
            WHERE
                `Inv`.`ID` = 2165
            LIMIT 1

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('Jan') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [08-Jan-2024 16:36:06] /finance/root/bg/invoices/2162.html 167.99.142.201

set names utf8

SELECT
                `Inv`.*,
                `Original`.`PostDate` AS `OriginalPostDate`
            FROM
                `invoices` AS `Inv`
                LEFT JOIN `invoices` AS `Original` ON `Inv`.`ParentID` = `Original`.`ID`
            WHERE
                `Inv`.`ID` = 2162
            LIMIT 1

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