Affectation de la correspondance avec la propale

This commit is contained in:
Rodolphe Quiedeville 2003-06-24 20:55:27 +00:00
parent 72c56ce676
commit bf6d081456

View File

@ -97,7 +97,12 @@ class Facture {
if ( $this->db->query($sql) )
{
$this->id = $this->db->last_insert_id();
if ($this->id && $this->propalid)
{
$sql = "INSERT INTO llx_fa_pr (fk_facture, fk_propal) VALUES (".$this->id.",".$this->propalid.")";
$this->db->query($sql);
}
return $this->id;
}
else