/[dolibarr]/dolibarr/htdocs/contrat/contrat.class.php
ViewVC logotype

Diff of /dolibarr/htdocs/contrat/contrat.class.php

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

revision 1.58 by eldy, Wed Oct 26 19:00:46 2005 UTC revision 1.59 by eldy, Mon Nov 7 22:33:30 2005 UTC
# Line 388  class Contrat Line 388  class Contrat
388              while ($j < $num)              while ($j < $num)
389              {              {
390                  $objp                  = $this->db->fetch_object($result);                  $objp                  = $this->db->fetch_object($result);
391                  $ligne                 = new PropaleLigne();                  $ligne                 = new ContratLigne();
392                  $ligne->libelle        = stripslashes($objp->description);                  $ligne->libelle        = stripslashes($objp->description);
393                  $ligne->desc           = stripslashes($objp->description);                  $ligne->desc           = stripslashes($objp->description);
394                  $ligne->qty            = $objp->qty;                  $ligne->qty            = $objp->qty;
# Line 768  class Contrat Line 768  class Contrat
768          $this->total_ht       = $calculs[0];          $this->total_ht       = $calculs[0];
769          $this->total_tva      = $calculs[1];          $this->total_tva      = $calculs[1];
770          $this->total_ttc      = $calculs[2];          $this->total_ttc      = $calculs[2];
   
         /*  
         // Met a jour en base  
         $sql = "UPDATE ".MAIN_DB_PREFIX."propal SET";  
         $sql .= " price='".  ereg_replace(",",".",$this->total_ht)."'";  
         $sql .= ", tva='".   ereg_replace(",",".",$this->total_tva)."'";  
         $sql .= ", total='". ereg_replace(",",".",$this->total_ttc)."'";  
         $sql .= ", remise='".ereg_replace(",",".",$this->remise)."'";  
         $sql .=" WHERE rowid = $this->id";  
       
         if ( $this->db->query($sql) )  
         {  
             return 1;  
         }  
         else  
         {  
             $this->error=$this->db->error();  
             return -1;  
         }  
         */  
771      }      }
772            
773    

Legend:
Removed from v.1.58  
changed lines
  Added in v.1.59

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