/[dolibarr]/dolibarr/htdocs/telephonie/script/facturation-calcul.php
ViewVC logotype

Diff of /dolibarr/htdocs/telephonie/script/facturation-calcul.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by rodolphe, Mon Jun 6 14:08:44 2005 UTC revision 1.14 by rodolphe, Tue Jul 26 14:32:29 2005 UTC
# Line 253  if (!$error) Line 253  if (!$error)
253                  }                  }
254                                
255                $sql = "INSERT INTO ".MAIN_DB_PREFIX."telephonie_facture";                $sql = "INSERT INTO ".MAIN_DB_PREFIX."telephonie_facture";
256                $sql .= " (fk_ligne, ligne, date, isfacturable, fk_batch)";                $sql .= " (fk_ligne, ligne, date, isfacturable, fk_batch, fk_contrat)";
257                $sql .= " VALUES (".$ligne->id.",";                $sql .= " VALUES (".$ligne->id.",";
258                $sql .= " '$ligne->numero','".$year."-".$month."-01'";                $sql .= " '$ligne->numero','".$year."-".$month."-01'";
259                $sql .= ", '$facturable',".$batch_id.")";                $sql .= ", '$facturable',".$batch_id;
260                  $sql .= ", ".$ligne->contrat.")";
261                                
262                if ($db->query($sql))                if ($db->query($sql))
263                  {                  {

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26