Skip to content
Snippets Groups Projects
Commit 918bc9cc authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

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

parent 038526bb
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment