Skip to content
Snippets Groups Projects
Commit f743cbaf authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: doxygen

parent 46e9b5d5
No related branches found
No related tags found
No related merge requests found
......@@ -1395,19 +1395,21 @@ class CommandeFournisseur extends CommonOrder
/**
* Delete line
*
* @param int $idligne Id of line to delete
* @param int $idline Id of line to delete
* @param int $notrigger 1=Disable call to triggers
* @return 0 if Ok, <0 ik Ko
*/
function deleteline($idligne, $notrigger=0)
function deleteline($idline, $notrigger=0)
{
if ($this->statut == 0)
{
$sql = "DELETE FROM ".MAIN_DB_PREFIX."commande_fournisseurdet WHERE rowid = ".$idligne;
$sql = "DELETE FROM ".MAIN_DB_PREFIX."commande_fournisseurdet WHERE rowid = ".$idline;
$resql=$this->db->query($sql);
dol_syslog(get_class($this)."::deleteline sql=".$sql);
if(!$notrigger && $resql){
if (!$notrigger && $resql)
{
// Appel des triggers
include_once DOL_DOCUMENT_ROOT . '/core/class/interfaces.class.php';
$result = 0;
......@@ -1418,9 +1420,9 @@ class CommandeFournisseur extends CommonOrder
}
// Fin appel triggers
}
if ($resql)
{
{
$result=$this->update_price();
return 0;
}
......@@ -1431,7 +1433,7 @@ class CommandeFournisseur extends CommonOrder
}
}
else
{
{
return -1;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment