diff --git a/controller/fact.php b/controller/fact.php index 3af3cbde93356a9daf4e63978cc2dc0fb6651608..fa39b526ec0cd3c60990210a96e28fa363795af2 100644 --- a/controller/fact.php +++ b/controller/fact.php @@ -24,7 +24,9 @@ switch($action) { case "detailFacture": // TODO: Ajouter bouton payer // TODO: Ajouter résumé de la facture (client, prix etc... ) - // TODO: Ajouter 3 boutons: "Ajouter Prestation", "Ajouter Produit", "Ajouter Medicament/Ordonnance" + echo '<a href="'.$base_url.$page.'/addPresta'.'?factId='.$_GET["id"].'" type="button" class="btn btn-success">Ajouter une Prestation</a>'; + echo '<a href="'.$base_url.$page.'/addProduit'.'?factId='.$_GET["id"].'" type="button" class="btn btn-success">Ajouter un Produit</a>'; + echo '<a href="'.$base_url.$page.'/addOrd'.'?factId='.$_GET["id"].'" type="button" class="btn btn-success">Ajouter une Ordonnance</a>'; $list = LigneFacture::getList("Détails de la facture", $_GET["id"]); include 'view/list.php'; break;