From 7a28f4e1d9a3a2cae3dd2900c36c75e1eb4de14f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 15 Aug 2005 21:23:13 +0000 Subject: [PATCH] Fix: Le statut facture fournisseur s'affichait mal (patch Christophe). --- htdocs/fourn/fiche.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/fourn/fiche.php b/htdocs/fourn/fiche.php index 0baba1ae85f..d0c4986e4c7 100644 --- a/htdocs/fourn/fiche.php +++ b/htdocs/fourn/fiche.php @@ -251,7 +251,7 @@ if ( $societe->fetch($socid) ) $max=5; - $sql = "SELECT p.rowid,p.libelle,p.facnumber,".$db->pdate("p.datef")." as df, total_ttc as amount, paye"; + $sql = "SELECT p.rowid,p.libelle,p.facnumber,p.fk_statut,".$db->pdate("p.datef")." as df, total_ttc as amount, paye"; $sql .= " FROM ".MAIN_DB_PREFIX."facture_fourn as p WHERE p.fk_soc = $societe->id"; $sql .= " ORDER BY p.datef"; $resql=$db->query($sql); @@ -280,7 +280,7 @@ if ( $societe->fetch($socid) ) print "".dolibarr_print_date($obj->df).""; print ''.$obj->amount.''; $fac = new FactureFournisseur($db); - print ''.$fac->LibStatut($obj->paye,$obj->statut).''; + print ''.$fac->LibStatut($obj->paye,$obj->fk_statut).''; print ""; $i++; }