Keep same behaviour by default.

This commit is contained in:
Laurent Destailleur
2025-11-07 18:50:34 +01:00
parent 817e7a826c
commit 88bc1ea328

View File

@@ -899,7 +899,7 @@ class Holiday extends CommonObject
$balance = $this->getCPforUser($this->fk_user, $this->fk_type);
$days = num_between_day($this->date_debut, $this->date_fin);
if ($balance - $days < 0 && !getDolGlobalString('HOLIDAY_ALLOW_NEGATIVE_BALANCE')) {
if ($balance - $days < 0 && getDolGlobalString('HOLIDAY_DISALLOW_NEGATIVE_BALANCE')) {
$this->error = 'LeaveRequestCreationBlockedBecauseBalanceIsNegative';
return -1;
}