Document : generate document with VAT code or VAT id

This commit is contained in:
sparkyx 2025-07-10 16:22:09 +02:00
parent 717707adc4
commit bfc2fb3f9d

View file

@ -1778,8 +1778,8 @@ class Document
$this->db->exec_sql($sql, array($this->d_lob, $this->d_filename, $this->d_mimetype, $p_internal));
// clean the table document
$sql='delete from document where d_id='.$this->d_id;
$this->db->exec_sql($sql);
$sql='delete from document where d_id=$1';
$this->db->exec_sql($sql,[$this->d_id]);
}
/**