Improve Exception for accountancy ACH, VEN, ODS, FIN

This commit is contained in:
sparkyx 2024-12-28 11:16:31 +01:00
parent d15e85649d
commit 5f33bc1bd3
11 changed files with 94 additions and 46 deletions

View file

@ -113,9 +113,6 @@ if (!defined('LOGINPUT')) {
define("LOGINPUT", false);
}
if (!defined('DEBUGNOALYSS')) {
define('DEBUGNOALYSS', 0);
}
$version_noalyss = NOALYSS_VERSION;
// If you don't want to be notified of the update
@ -158,6 +155,7 @@ if (DEBUGNOALYSS == 0) {
ini_set("html_errors", 0);
ini_set('log_errors', 1);
ini_set('log_errors_max_len', 0);
if(function_exists('xdebug_disable')) { xdebug_disable(); }
} elseif (DEBUGNOALYSS == 1) {
/* DEVELOPPEMENT : display all errors warning notice deprecated ...*/
error_reporting(2147483647);
@ -347,6 +345,8 @@ define('EXC_PARAM_TYPE', 1006);
define('EXC_DUPLICATE', 1200);
define('EXC_INVALID', 1400);
define('EXC_FORBIDDEN', 1500);
// exception when balance is incorrect when saving an operation
define('EXC_BALANCE', 1501);
define("UNPINDG", "");
define("PINDG", "");