Merge branch '12.0_new_payments_on_salaries' of github.com:atm-gauthier/dolibarr into NEW/add_real_payments_on_salaries
This commit is contained in:
commit
3b8e804412
@ -293,8 +293,8 @@ class Salary extends CommonObject
|
||||
if ($result < 0) return -1;
|
||||
// End call triggers
|
||||
|
||||
// Delete donation
|
||||
if (!$error)
|
||||
// Delete extrafields
|
||||
/*if (!$error)
|
||||
{
|
||||
$sql = "DELETE FROM ".MAIN_DB_PREFIX."salary_extrafields";
|
||||
$sql .= " WHERE fk_object=".$this->id;
|
||||
@ -305,7 +305,7 @@ class Salary extends CommonObject
|
||||
$this->errors[] = $this->db->lasterror();
|
||||
$error++;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
$sql = "DELETE FROM ".MAIN_DB_PREFIX."salary";
|
||||
$sql .= " WHERE rowid=".$this->id;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user