Ajout du l'id du contrat dans la table llx_telephonie_facture
This commit is contained in:
parent
a9e01d96f7
commit
7c486a1b24
@ -253,10 +253,11 @@ if (!$error)
|
|||||||
}
|
}
|
||||||
|
|
||||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."telephonie_facture";
|
$sql = "INSERT INTO ".MAIN_DB_PREFIX."telephonie_facture";
|
||||||
$sql .= " (fk_ligne, ligne, date, isfacturable, fk_batch)";
|
$sql .= " (fk_ligne, ligne, date, isfacturable, fk_batch, fk_contrat)";
|
||||||
$sql .= " VALUES (".$ligne->id.",";
|
$sql .= " VALUES (".$ligne->id.",";
|
||||||
$sql .= " '$ligne->numero','".$year."-".$month."-01'";
|
$sql .= " '$ligne->numero','".$year."-".$month."-01'";
|
||||||
$sql .= ", '$facturable',".$batch_id.")";
|
$sql .= ", '$facturable',".$batch_id;
|
||||||
|
$sql .= ", ".$ligne->contrat.")";
|
||||||
|
|
||||||
if ($db->query($sql))
|
if ($db->query($sql))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user