FIX : no fetch required

This commit is contained in:
Adrien Raze 2021-03-09 11:48:25 +01:00
parent 1afddabed4
commit b82f14859c

View File

@ -603,12 +603,10 @@ if ($id) {
$morehtmlref .= '<input type="submit" class="button valignmiddle" value="'.$langs->trans("Modify").'">';
$morehtmlref .= '</form>';
}
$sal = new Salary($db);
$sal->fetch($object->id);
//Employee
if ($action != 'editfk_user') {
if ($sal->getSommePaiement() > 0 && !empty($object->fk_user)) {
if ($object->getSommePaiement() > 0 && !empty($object->fk_user)) {
$userstatic = new User($db);
$result = $userstatic->fetch($object->fk_user);
if ($result > 0) {