From 85611356bf7dd9868718896bb9b686d64851057f Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 18 Jun 2003 13:01:15 +0000 Subject: [PATCH] Correction nom de table societe en llx_societe --- htdocs/compta/exercices.php3 | 12 +++---- htdocs/compta/resultat/index.php3 | 4 +-- htdocs/fourn/facture/fiche.php3 | 4 +-- htdocs/fourn/facture/index.php3 | 4 +-- htdocs/fourn/facture/paiement.php | 2 +- htdocs/fourn/fiche.php3 | 14 ++++---- htdocs/fourn/people.php3 | 55 +++++++++++++++---------------- 7 files changed, 46 insertions(+), 49 deletions(-) diff --git a/htdocs/compta/exercices.php3 b/htdocs/compta/exercices.php3 index 65a3941b399..5b6ac7aba62 100644 --- a/htdocs/compta/exercices.php3 +++ b/htdocs/compta/exercices.php3 @@ -1,8 +1,5 @@ - * - * $Id$ - * $Source$ +/* Copyright (C) 2001-2003 Rodolphe Quiedeville * * 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 @@ -18,6 +15,9 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * $Id$ + * $Source$ + * */ require("./pre.inc.php3"); @@ -60,7 +60,7 @@ function get_ca ($db, $year, $socidp) { function propals ($db, $year, $month) { global $bc; $sql = "SELECT s.nom, s.idp, p.rowid as propalid, p.price - p.remise as price, p.ref,".$db->pdate("p.datep")." as dp, c.label as statut, c.id as statutid"; - $sql .= " FROM societe as s, llx_propal as p, c_propalst as c WHERE p.fk_soc = s.idp AND p.fk_statut = c.id"; + $sql .= " FROM llx_societe as s, llx_propal as p, c_propalst as c WHERE p.fk_soc = s.idp AND p.fk_statut = c.id"; $sql .= " AND c.id in (1,2)"; $sql .= " AND date_format(p.datep, '%Y') = $year "; $sql .= " AND round(date_format(p.datep, '%m')) = $month "; @@ -131,7 +131,7 @@ function factures ($db, $year, $month, $paye) { global $bc; $sql = "SELECT s.nom, s.idp, f.facnumber, f.amount,".$db->pdate("f.datef")." as df, f.paye, f.rowid as facid "; - $sql .= " FROM societe as s,llx_facture as f WHERE f.fk_soc = s.idp AND f.paye = $paye"; + $sql .= " FROM llx_societe as s,llx_facture as f WHERE f.fk_soc = s.idp AND f.paye = $paye"; $sql .= " AND date_format(f.datef, '%Y') = $year "; $sql .= " AND round(date_format(f.datef, '%m')) = $month "; $sql .= " ORDER BY f.datef DESC "; diff --git a/htdocs/compta/resultat/index.php3 b/htdocs/compta/resultat/index.php3 index b354ac06283..8eb9a216e23 100644 --- a/htdocs/compta/resultat/index.php3 +++ b/htdocs/compta/resultat/index.php3 @@ -44,7 +44,7 @@ print "MontantSolde"; print "\n"; $sql = "SELECT s.nom,sum(f.amount) as amount"; -$sql .= " FROM societe as s,llx_facture as f WHERE f.fk_soc = s.idp"; +$sql .= " FROM llx_societe as s,llx_facture as f WHERE f.fk_soc = s.idp"; if ($year > 0) { $sql .= " AND date_format(f.datef, '%Y') = $year"; } @@ -87,7 +87,7 @@ print ''.price($total).''; * */ $sql = "SELECT s.nom,sum(f.amount) as amount"; -$sql .= " FROM societe as s,llx_facture_fourn as f WHERE f.fk_soc = s.idp"; +$sql .= " FROM llx_societe as s,llx_facture_fourn as f WHERE f.fk_soc = s.idp"; if ($year > 0) { $sql .= " AND date_format(f.datef, '%Y') = $year"; } diff --git a/htdocs/fourn/facture/fiche.php3 b/htdocs/fourn/facture/fiche.php3 index 6bba83381ed..1ff2c616fd3 100644 --- a/htdocs/fourn/facture/fiche.php3 +++ b/htdocs/fourn/facture/fiche.php3 @@ -157,7 +157,7 @@ if ($action == 'create') print '