Ajout du l'id du contrat dans la table llx_telephonie_facture

This commit is contained in:
Rodolphe Quiedeville 2005-07-26 14:32:29 +00:00
parent a9e01d96f7
commit 7c486a1b24

View File

@ -253,10 +253,11 @@ if (!$error)
}
$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 .= " '$ligne->numero','".$year."-".$month."-01'";
$sql .= ", '$facturable',".$batch_id.")";
$sql .= ", '$facturable',".$batch_id;
$sql .= ", ".$ligne->contrat.")";
if ($db->query($sql))
{