mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Use isModEnabled
This commit is contained in:
parent
6fe80c3031
commit
ccea57423a
|
|
@ -372,12 +372,12 @@ class Salary extends CommonObject
|
|||
$this->error = $langs->trans("ErrorFieldRequired", $langs->transnoentities("Amount"));
|
||||
return -5;
|
||||
}
|
||||
/* if (!empty($conf->banque->enabled) && (empty($this->accountid) || $this->accountid <= 0))
|
||||
/* if (isModEnabled('banque') && (empty($this->accountid) || $this->accountid <= 0))
|
||||
{
|
||||
$this->error = $langs->trans("ErrorFieldRequired", $langs->transnoentities("Account"));
|
||||
return -6;
|
||||
}
|
||||
if (!empty($conf->banque->enabled) && (empty($this->type_payment) || $this->type_payment <= 0))
|
||||
if (isModEnabled('banque') && (empty($this->type_payment) || $this->type_payment <= 0))
|
||||
{
|
||||
$this->error = $langs->trans("ErrorFieldRequired", $langs->transnoentities("PaymentMode"));
|
||||
return -7;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user