diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php index da968d7a92e..f31c3b57936 100644 --- a/htdocs/fourn/facture/fiche.php +++ b/htdocs/fourn/facture/fiche.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2002-2004 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 @@ -34,19 +34,19 @@ $html = new Form($db); if ($action == 'valid') { - $sql = "UPDATE llx_facture_fourn set fk_statut = 1 WHERE rowid = $facid ;"; + $sql = "UPDATE ".MAIN_DB_PREFIX."facture_fourn set fk_statut = 1 WHERE rowid = $facid ;"; $result = $db->query( $sql); } if ($action == 'payed') { - $sql = "UPDATE llx_facture_fourn set paye = 1 WHERE rowid = $facid ;"; + $sql = "UPDATE ".MAIN_DB_PREFIX."facture_fourn set paye = 1 WHERE rowid = $facid ;"; $result = $db->query( $sql); } if ($HTTP_POST_VARS["action"] == 'modif_libelle') { - $sql = "UPDATE llx_facture_fourn set libelle = '$form_libelle' WHERE rowid = $facid ;"; + $sql = "UPDATE ".MAIN_DB_PREFIX."facture_fourn set libelle = '$form_libelle' WHERE rowid = $facid ;"; $result = $db->query( $sql); } @@ -55,7 +55,7 @@ if ($action == 'update') { $datefacture = $db->idate(mktime(12, 0 , 0, $HTTP_POST_VARS["remonth"], $HTTP_POST_VARS["reday"], $HTTP_POST_VARS["reyear"])); - $sql = "UPDATE llx_facture_fourn set "; + $sql = "UPDATE ".MAIN_DB_PREFIX."facture_fourn set "; $sql .= " facnumber='".trim($HTTP_POST_VARS["facnumber"])."'"; $sql .= ", libelle='".trim($HTTP_POST_VARS["libelle"])."'"; $sql .= ", note='".$HTTP_POST_VARS["note"]."'"; @@ -153,7 +153,7 @@ if ($action == 'create' or $action == 'copy') print '