Fix: Suppression trace incorrecte

This commit is contained in:
Laurent Destailleur
2006-02-25 14:34:25 +00:00
parent 89e4d8afa5
commit 6792a90785

View File

@@ -497,7 +497,7 @@ class Commande
$sql = 'INSERT INTO '.MAIN_DB_PREFIX.'commandedet (fk_commande,label,description,fk_product, price,qty,tva_tx, remise_percent, subprice, remise)';
$sql .= " VALUES ($this->id, '" . addslashes($desc) . "','" . addslashes($desc) . "','$fk_product',".price2num($price).", '$qty', '$txtva', $remise_percent,'".price2num($subprice)."','".price2num( $remise)."') ;";
print $sql;
if ( $this->db->query( $sql) )
{
$this->update_price();