FIX : several fixes on salary and vat

This commit is contained in:
Gauthier PC portable 024 2021-04-28 11:56:07 +02:00
parent e50494152d
commit c25b044da5
2 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ class Tva extends CommonObject
$sql .= " '".$this->db->escape($this->note)."',";
$sql .= " '".$this->db->escape($this->fk_account)."',";
$sql .= " '".$this->db->escape($this->type_payment)."',";
$sql .= " '".$this->db->escape($this->fk_user_creat)."',";
$sql .= " '".($this->fk_user_creat > 0 ? (int)$this->fk_user_creat : (int)$user->id)."',";
$sql .= " '".$this->db->escape($this->fk_user_modif)."'";
$sql .= ")";

View File

@ -146,7 +146,7 @@ class Salary extends CommonObject
$sql .= " note='".$this->db->escape($this->note)."',";
$sql .= " fk_bank=".($this->fk_bank > 0 ? (int) $this->fk_bank : "null").",";
$sql .= " fk_user_author=".((int) $this->fk_user_author).",";
$sql .= " fk_user_modif=".($this->fk_user_modif > 0 ? (int) $this->fk_user_modif : 'null');
$sql .= " fk_user_modif=".($this->fk_user_modif > 0 ? (int)$this->fk_user_modif : (int)$user->id);
$sql .= " WHERE rowid=".((int) $this->id);