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; |
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 |
|
|