Keep same behaviour by default.
This commit is contained in:
parent
817e7a826c
commit
88bc1ea328
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue