forked from Wavyzz/dolibarr
quand on expdie une propale on peut maintenant saisir le texte qu'on veut, mettre qqn en copie et rajouter un fichier attach
This commit is contained in:
@@ -288,7 +288,7 @@ class Commande
|
||||
}
|
||||
|
||||
$sql = "INSERT INTO llx_commandedet (fk_commande, fk_product, qty, price, tva_tx, description, remise_percent, subprice) VALUES ";
|
||||
$sql .= " (".$this->id.", $p_product_id,". $p_qty.",". $price.",".$p_tva_tx.",'".$p_desc."',$remise_percent, $subprice) ; ";
|
||||
$sql .= " ('".$this->id."', '$p_product_id','". $p_qty."','". $price."','".$p_tva_tx."',''".addslashes($p_desc)."','$remise_percent', '$subprice') ; ";
|
||||
|
||||
if ($this->db->query($sql) )
|
||||
{
|
||||
@@ -345,7 +345,7 @@ class Commande
|
||||
}
|
||||
|
||||
$sql = "INSERT INTO llx_commandedet (fk_commande,label,description,price,qty,tva_tx, fk_product, remise_percent, subprice, remise)";
|
||||
$sql .= " VALUES ($this->id, '$desc','$desc', $price, $qty, $txtva, $fk_product, $remise_percent, $subprice, $remise) ;";
|
||||
$sql .= " VALUES ($this->id, '" . addslashes($desc) . "','" . addslashes($desc) . "', $price, $qty, $txtva, $fk_product, $remise_percent, $subprice, $remise) ;";
|
||||
|
||||
if ( $this->db->query( $sql) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user