From a47720965de0ba2f56bd7b8dabd69d06d07bd99b Mon Sep 17 00:00:00 2001 From: Matthieu Guffroy <mattgu74@gmail.com> Date: Thu, 19 Jun 2014 01:16:23 +0200 Subject: [PATCH] change --- class/facture.php | 2 +- controller/fact.php | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/class/facture.php b/class/facture.php index d274878..80d12d6 100644 --- a/class/facture.php +++ b/class/facture.php @@ -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", diff --git a/controller/fact.php b/controller/fact.php index 128db53..c3d040c 100644 --- a/controller/fact.php +++ b/controller/fact.php @@ -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: -- GitLab