Skip to content
Snippets Groups Projects
Commit bb8e592f authored by goujonpa's avatar goujonpa
Browse files

Merge branch 'master' of gitlab.utc.fr:nf17-camp-p14/clivi

parents 0d1261a0 e84b7783
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ class Facture extends Objet
),
"date_paiement" => array(
"label" => "Date de paiement",
"i" => -1
"i" => 8
),
"moyen_paiement" => array(
"label" => "Moyen de paiement",
......
......@@ -59,7 +59,7 @@ class Stats
LIMIT 3" ); // on prépare notre requête
$requete_prepare->execute();
$ligne = $requete_prepare->fetch(PDO::FETCH_ASSOC);
$ligne = $requete_prepare->fetchAll(PDO::FETCH_ASSOC);
return $ligne;
}
......
......@@ -22,13 +22,17 @@ switch($action) {
include 'view/form.php';
break;
case "detailFacture":
$list = Facture::getList("Liste des Factures");
/*$list = Facture::getList("Liste des Factures");
$facture = new Facture();
$facture->select($_GET['id']);
$formConf = $facture->getForm();
include 'view/formDetail.php';
include 'view/formDetail.php';*/
$ligneFacture = new LigneFacture();
$formConf = $ligneFacture->getForm();
include 'view/form.php';
$list = LigneFacture::getList("Détail de la facture", $_GET["id"]);
$list = LigneFacture::getList("Détails de la facture", $_GET["id"]);
include 'view/list.php';
break;
default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment