Fix bug : for new TVA id not taken into account but auto-computed

This commit is contained in:
sparkyx 2022-12-27 16:41:22 +01:00
parent 0ad83ac24b
commit a76d9d1162
2 changed files with 11 additions and 8 deletions

View file

@ -112,7 +112,7 @@ abstract class Data_SQL
$this->$key=null;
}
$this->$pk=$p_id;
/* load it */
/* load it , if the pk id doesn't exist, it will be turned into -1 */
if ($p_id != -1 )$this->load();
if ( empty($this->date_format) ) $this->date_format="DD.MM.YYYY";
}