Skip to content
Snippets Groups Projects
Commit c9150c8e authored by Rodolphe Quiedeville's avatar Rodolphe Quiedeville
Browse files

Correction bug sur ligne->facturable

parent fe36911c
No related branches found
No related tags found
No related merge requests found
...@@ -226,7 +226,7 @@ if (!$error) ...@@ -226,7 +226,7 @@ if (!$error)
if (!$error) if (!$error)
{ {
if ($ligne->isfacturable == 1) if ($ligne->facturable == 1)
{ {
$facturable = 'oui'; $facturable = 'oui';
} }
...@@ -235,7 +235,7 @@ if (!$error) ...@@ -235,7 +235,7 @@ if (!$error)
$facturable = 'non'; $facturable = 'non';
} }
$sql = "INSERT INTO llx_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)";
$sql .= " VALUES (".$ligne->id.","; $sql .= " VALUES (".$ligne->id.",";
$sql .= " '$ligne->numero','".$year."-".$month."-01'"; $sql .= " '$ligne->numero','".$year."-".$month."-01'";
...@@ -243,7 +243,7 @@ if (!$error) ...@@ -243,7 +243,7 @@ if (!$error)
if ($db->query($sql)) if ($db->query($sql))
{ {
$facid = $db->last_insert_id("llx_telephonie_facture"); $facid = $db->last_insert_id(MAIN_DB_PREFIX."telephonie_facture");
} }
else else
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment