Fix: [bug #325]
This commit is contained in:
parent
099d8ee06b
commit
1aa3b79005
@ -2,6 +2,7 @@
|
|||||||
/* Copyright (C) 2002-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2002-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
|
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
|
||||||
* Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
|
* Copyright (C) 2005-2012 Regis Houssin <regis@dolibarr.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -34,8 +35,7 @@ $langs->load("companies");
|
|||||||
$langs->load("bills");
|
$langs->load("bills");
|
||||||
|
|
||||||
|
|
||||||
|
$socid=GETPOST('socid','int');
|
||||||
if ($_GET["socid"]) { $socid=$_GET["socid"]; }
|
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
if ($user->societe_id > 0)
|
if ($user->societe_id > 0)
|
||||||
@ -75,7 +75,7 @@ if (! $sortorder) $sortorder="ASC";
|
|||||||
|
|
||||||
if ($user->rights->fournisseur->facture->lire)
|
if ($user->rights->fournisseur->facture->lire)
|
||||||
{
|
{
|
||||||
$sql = "SELECT s.rowid as socid, s.nom";
|
$sql = "SELECT s.rowid as socid, s.nom,";
|
||||||
$sql.= " f.rowid as ref, f.facnumber, f.total_ht, f.total_ttc,";
|
$sql.= " f.rowid as ref, f.facnumber, f.total_ht, f.total_ttc,";
|
||||||
$sql.= " f.datef as df, f.date_lim_reglement as datelimite, ";
|
$sql.= " f.datef as df, f.date_lim_reglement as datelimite, ";
|
||||||
$sql.= " f.paye as paye, f.rowid as facid, f.fk_statut";
|
$sql.= " f.paye as paye, f.rowid as facid, f.fk_statut";
|
||||||
@ -256,8 +256,7 @@ if ($user->rights->fournisseur->facture->lire)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// End of page
|
||||||
llxFooter();
|
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
llxFooter();
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user