Affectation de la correspondance avec la propale
This commit is contained in:
parent
72c56ce676
commit
bf6d081456
@ -98,6 +98,11 @@ class Facture {
|
|||||||
{
|
{
|
||||||
$this->id = $this->db->last_insert_id();
|
$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;
|
return $this->id;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user