Fix: If user can approve, show button to deny to.

This commit is contained in:
Laurent Destailleur 2016-07-20 16:07:15 +02:00
parent 038526bb71
commit 918bc9cc26

View File

@ -1984,6 +1984,11 @@ if ($action != 'create' && $action != 'edit')
}
}
if ($user->rights->expensereport->approve && $object->fk_statut == 5)
{
print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?action=refuse&id='.$object->id.'">'.$langs->trans('Deny').'</a>';
}
/* Si l'état est "A payer"
* ET user à droit de "to_paid"
* Afficher : "Annuler" / "Payer" / "Supprimer"