|
@@ -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;
|