diff --git a/controller/fact.php b/controller/fact.php index 71eb6c3edf76bdcb656d0fd4d84ad8cc6564d00b..40a08d46c71baa118a1d18a5b673c86ff3824a5d 100644 --- a/controller/fact.php +++ b/controller/fact.php @@ -24,19 +24,19 @@ switch($action) { case "addPresta": $ligne = new LigneFacturePrestation(); $ligne->setFacture($_GET['factId']); - $formConf = $facture->getForm(); + $formConf = $ligne->getForm(); include 'view/form.php'; break; case "addProduit": $ligne = new LigneFactureProduit(); $ligne->setFacture($_GET['factId']); - $formConf = $facture->getForm(); + $formConf = $ligne->getForm(); include 'view/form.php'; break; case "addOrd": $ligne = new LigneFactureOrdonnance(); $ligne->setFacture($_GET['factId']); - $formConf = $facture->getForm(); + $formConf = $ligne->getForm(); include 'view/form.php'; break; case "detailFacture":