Qual: Uniformisation du code. La fonction update_line pour les commandes et renomme updateline comme pour les entits cousines

This commit is contained in:
Laurent Destailleur 2006-07-02 14:45:46 +00:00
parent f439283e15
commit 016b830240
4 changed files with 5 additions and 5 deletions

View File

@ -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');

View File

@ -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'],

View File

@ -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"],

View File

@ -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;
}
}