Fix: tva sur ajout ligne produit prédéfinie
This commit is contained in:
parent
7a3b7633dd
commit
05414f8898
@ -979,7 +979,8 @@ class Facture
|
|||||||
{
|
{
|
||||||
$prod = new Product($this->db, $fk_product);
|
$prod = new Product($this->db, $fk_product);
|
||||||
$prod->fetch($fk_product);
|
$prod->fetch($fk_product);
|
||||||
$pu=$prod->price;
|
$pu=$prod->price;
|
||||||
|
$txtva=$prod->tva_tx;
|
||||||
}
|
}
|
||||||
$_price = $pu;
|
$_price = $pu;
|
||||||
$subprice = $pu;
|
$subprice = $pu;
|
||||||
@ -1015,8 +1016,8 @@ class Facture
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Formatage des prix
|
// Formatage des prix
|
||||||
$_price = ereg_replace(',','.',$_price);
|
$_price = price2num($_price);
|
||||||
$subprice = ereg_replace(',','.',$subprice);
|
$subprice = price2num($subprice);
|
||||||
|
|
||||||
$sql = 'INSERT INTO '.MAIN_DB_PREFIX.'facturedet ';
|
$sql = 'INSERT INTO '.MAIN_DB_PREFIX.'facturedet ';
|
||||||
$sql.= ' (fk_facture, description, price, qty, tva_taux, fk_product, remise_percent, subprice, remise, date_start, date_end, fk_code_ventilation, rang)';
|
$sql.= ' (fk_facture, description, price, qty, tva_taux, fk_product, remise_percent, subprice, remise, date_start, date_end, fk_code_ventilation, rang)';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user