Skip to content

Commit

Permalink
completely comment unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 committed Sep 16, 2018
1 parent 3941936 commit 7b3b020
Showing 1 changed file with 22 additions and 36 deletions.
58 changes: 22 additions & 36 deletions htdocs/compta/facture/class/paymentterm.class.php
Expand Up @@ -135,18 +135,17 @@ function create($user, $notrigger=0)
{
$this->id = $this->db->last_insert_id(MAIN_DB_PREFIX."c_payment_term");

if (! $notrigger)
{
// Uncomment this and change MYOBJECT to your own tag if you
// want this action call a trigger.

//// Call triggers
//include_once DOL_DOCUMENT_ROOT . '/core/class/interfaces.class.php';
//$interface=new Interfaces($this->db);
//$result=$interface->run_triggers('MYOBJECT_CREATE',$this,$user,$langs,$conf);
//if ($result < 0) { $error++; $this->errors=$interface->errors; }
//// End call triggers
}
// Uncomment this and change MYOBJECT to your own tag if you
// want this action call a trigger.
//if (! $notrigger) {

// // Call triggers
// include_once DOL_DOCUMENT_ROOT . '/core/class/interfaces.class.php';
// $interface=new Interfaces($this->db);
// $result=$interface->run_triggers('MYOBJECT_CREATE',$this,$user,$langs,$conf);
// if ($result < 0) { $error++; $this->errors=$interface->errors; }
// // End call triggers
//}
}

// Commit or rollback
Expand Down Expand Up @@ -311,21 +310,16 @@ function update($user=null, $notrigger=0)
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }

if (! $error)
{
if (! $notrigger)
{
// Uncomment this and change MYOBJECT to your own tag if you
// want this action call a trigger.

// Uncomment this and change MYOBJECT to your own tag if you
// want this action call a trigger.
//if (! $error && ! $notrigger) {
// Call triggers
//include_once DOL_DOCUMENT_ROOT . '/core/class/interfaces.class.php';
//$interface=new Interfaces($this->db);
//$result=$interface->run_triggers('MYOBJECT_MODIFY',$this,$user,$langs,$conf);
//if ($result < 0) { $error++; $this->errors=$interface->errors; }
// End call triggers
}
}
//}

// Commit or rollback
if ($error)
Expand Down Expand Up @@ -367,21 +361,16 @@ function delete($user, $notrigger=0)
$resql = $this->db->query($sql);
if (! $resql) { $error++; $this->errors[]="Error ".$this->db->lasterror(); }

if (! $error)
{
if (! $notrigger)
{
// Uncomment this and change MYOBJECT to your own tag if you
// want this action call a trigger.

// Uncomment this and change MYOBJECT to your own tag if you
// want this action call a trigger.
//if (! $error && ! $notrigger) {
//// Call triggers
//include_once DOL_DOCUMENT_ROOT . '/core/class/interfaces.class.php';
//$interface=new Interfaces($this->db);
//$result=$interface->run_triggers('MYOBJECT_DELETE',$this,$user,$langs,$conf);
//if ($result < 0) { $error++; $this->errors=$interface->errors; }
//// End call triggers
}
}
//}

// Commit or rollback
if ($error)
Expand Down Expand Up @@ -439,12 +428,9 @@ function createFromClone($fromid)
$error++;
}

if (! $error)
{



}
//if (! $error)
//{
//}

unset($this->context['createfromclone']);

Expand Down

0 comments on commit 7b3b020

Please sign in to comment.