From 016b83024082d82c4fbc152b6082e02135a9b3f4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 2 Jul 2006 14:45:46 +0000 Subject: [PATCH] =?UTF-8?q?Qual:=20Uniformisation=20du=20code.=20La=20fonc?= =?UTF-8?q?tion=20update=5Fline=20pour=20les=20commandes=20et=20renomm=E9e?= =?UTF-8?q?=20updateline=20comme=20pour=20les=20entit=E9s=20cousines?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/commande/commande.class.php | 2 +- htdocs/commande/fiche.php | 2 +- htdocs/fourn/commande/fiche.php | 2 +- htdocs/propal.class.php | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php index d3b9d7ca35e..44f51f8035f 100644 --- a/htdocs/commande/commande.class.php +++ b/htdocs/commande/commande.class.php @@ -1566,7 +1566,7 @@ class Commande extends CommonObject * \param tva_tx Taux TVA * \return int < 0 si erreur, > 0 si ok */ - function update_line($rowid, $desc, $pu, $qty, $remise_percent=0, $txtva) + function updateline($rowid, $desc, $pu, $qty, $remise_percent=0, $txtva) { dolibarr_syslog("Commande::UpdateLine $rowid, $desc, $pu, $qty, $remise_percent, $txtva"); include_once(DOL_DOCUMENT_ROOT.'/lib/price.lib.php'); diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 020e5bd8428..69b50ece82a 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -313,7 +313,7 @@ if ($_POST['action'] == 'updateligne' && $user->rights->commande->creer && $_POS $commande = new Commande($db,'',$_POST['id']); if (! $commande->fetch($_POST['id']) > 0) dolibarr_print_error($db); - $result = $commande->update_line($_POST['elrowid'], + $result = $commande->updateline($_POST['elrowid'], $_POST['eldesc'], $_POST['pu'], $_POST['qty'], diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php index 9ff10b8b5cd..3f0b73f32f4 100644 --- a/htdocs/fourn/commande/fiche.php +++ b/htdocs/fourn/commande/fiche.php @@ -108,7 +108,7 @@ if ($_POST["action"] == 'updateligne' && $user->rights->commande->creer) $commande = new CommandeFournisseur($db,"",$_GET["id"]); if ($commande->fetch($_GET["id"]) ) { - $result = $commande->update_line($_POST["elrowid"], + $result = $commande->updateline($_POST["elrowid"], $_POST["eldesc"], $_POST["elprice"], $_POST["elqty"], diff --git a/htdocs/propal.class.php b/htdocs/propal.class.php index 0f92cd3adcd..af3b1cb592b 100644 --- a/htdocs/propal.class.php +++ b/htdocs/propal.class.php @@ -322,7 +322,7 @@ class Propal extends CommonObject */ function updateline($rowid, $pu, $qty, $remise_percent=0, $txtva, $desc='') { - dolibarr_syslog("propal.class.php::updateligne $rowid, $pu, $qty, $remise_percent, $txtva, $desc"); + dolibarr_syslog("propal.class.php::UpdateLine $rowid, $pu, $qty, $remise_percent, $txtva, $desc"); include_once(DOL_DOCUMENT_ROOT.'/lib/price.lib.php'); if ($this->statut == 0) @@ -377,7 +377,7 @@ class Propal extends CommonObject { $this->error=$this->db->error(); $this->db->rollback(); - dolibarr_syslog("Propal::UpdateLigne Erreur sql=$sql, error=".$this->error); + dolibarr_syslog("Propal::UpdateLine Erreur sql=$sql, error=".$this->error); return -1; } }