Browse Source

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

Laurent Destailleur 9 years ago
parent
commit
918bc9cc26
1 changed files with 5 additions and 0 deletions
  1. 5 0
      htdocs/expensereport/card.php

+ 5 - 0
htdocs/expensereport/card.php

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