# [19-Jun-2025 12:03:49] /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
# [19-Jun-2025 12:03:59] /finance/root/bg/invoices.html?from=&to=&keyword=freshsupport 167.99.142.201

set names utf8

SELECT * FROM `invoices` AS `Inv` WHERE `Inv`.`Type` > 0 AND `Inv`.`SearchKey` LIKE '%wrHDhsK6w5rCsMKew5TDrsK3wrDCrsORw4fCnsKkw%' ORDER BY `Inv`.`PostDate` DESC, `Inv`.`ID` DESC
# [19-Jun-2025 12:04:02] /finance/root/bg/invoices.html?from=&to=&keyword=ooyes 167.99.142.201

set names utf8

SELECT * FROM `invoices` AS `Inv` WHERE `Inv`.`Type` > 0 AND `Inv`.`SearchKey` LIKE '%wrnCisKpwqPCp8OEw%' ORDER BY `Inv`.`PostDate` DESC, `Inv`.`ID` DESC
# [19-Jun-2025 12:04:04] /finance/root/bg/invoices/2463.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` = 2463
            LIMIT 1

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