From 71a6cc925b72109ab19cf1e9146cc9ecbb5e9f17 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 3 Mar 2005 10:07:59 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20num=E9ro=20de=20ligne=20de=20prev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/prelevement/liste_factures.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/htdocs/compta/prelevement/liste_factures.php b/htdocs/compta/prelevement/liste_factures.php index 1db9b3e29e7..be0cceccf93 100644 --- a/htdocs/compta/prelevement/liste_factures.php +++ b/htdocs/compta/prelevement/liste_factures.php @@ -45,7 +45,7 @@ $offset = $conf->liste_limit * $page ; $sql = "SELECT p.rowid, p.ref, p.statut"; $sql .= " ,f.rowid as facid, f.facnumber, f.total_ttc"; $sql .= " , s.idp, s.nom"; -$sql .= " , pl.statut as statut_ligne"; +$sql .= " , pl.statut as statut_ligne, pl.rowid as rowid_ligne"; $sql .= " FROM ".MAIN_DB_PREFIX."prelevement_bons as p"; $sql .= " , ".MAIN_DB_PREFIX."prelevement_lignes as pl"; $sql .= " , ".MAIN_DB_PREFIX."prelevement_facture as pf"; @@ -85,15 +85,15 @@ if ($result) print_barre_liste("Factures prélevées", $page, "liste_factures.php", $urladd, $sortfield, $sortorder, '', $num); print"\n\n"; print ''; - print ''; + print ''; print_liste_field_titre("Facture","liste_factures.php","f.facnumber",'',$urladd); print_liste_field_titre("Société","liste_factures.php","s.nom",'',$urladd); - print_liste_field_titre("Montant","liste_factures.php","f.total_ttc","",$urladd,'align="center"'); + print_liste_field_titre("Montant","liste_factures.php","f.total_ttc","",$urladd,'align="right"'); print_liste_field_titre("Bon","liste_factures.php","p.rowid","",$urladd,'align="center"'); print ''; print ''; - print ''; + print ''; print ''; + + + print '\n"; - print '\n"; + print '\n"; print '
Ligne
 '; print ''; print ''; @@ -118,7 +118,11 @@ if ($result) print ' '; - print ''; + print ''; + print substr('000000'.$obj->rowid_ligne, -6).''; print img_object($langs->trans("ShowBill"),"bill"); print ' '; @@ -127,7 +131,7 @@ if ($result) print ''; print img_object($langs->trans("ShowCompany"),"company"). ' '.stripslashes($obj->nom)."'.price($obj->total_ttc)."'.price($obj->total_ttc)."'; print ' ';