|
@@ -195,18 +195,18 @@ class AccountancyCategory // extends CommonObject
|
|
|
{
|
|
|
$this->id = $this->db->last_insert_id(MAIN_DB_PREFIX."c_accounting_category");
|
|
|
|
|
|
- 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
|
|
@@ -334,18 +334,17 @@ class AccountancyCategory // extends CommonObject
|
|
|
|
|
|
if (! $error)
|
|
|
{
|
|
|
- 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_MODIFY',$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_MODIFY',$this,$user,$langs,$conf);
|
|
|
+ // if ($result < 0) { $error++; $this->errors=$interface->errors; }
|
|
|
+ // // End call triggers
|
|
|
+ //}
|
|
|
}
|
|
|
|
|
|
// Commit or rollback
|
|
@@ -390,18 +389,17 @@ class AccountancyCategory // extends CommonObject
|
|
|
|
|
|
if (! $error)
|
|
|
{
|
|
|
- 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_DELETE',$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_DELETE',$this,$user,$langs,$conf);
|
|
|
+ // if ($result < 0) { $error++; $this->errors=$interface->errors; }
|
|
|
+ // // End call triggers
|
|
|
+ //}
|
|
|
}
|
|
|
|
|
|
// Commit or rollback
|