Skip to content
Snippets Groups Projects
Commit 75d73b18 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix bad vat rate used into sql request

parent b169f93a
No related branches found
No related tags found
No related merge requests found
......@@ -2321,7 +2321,7 @@ class CommandeFournisseur extends CommonOrder
if (preg_match('/\((.*)\)/', $txtva, $reg))
{
$vat_src_code = $reg[1];
$vatrate = preg_replace('/\s*\(.*\)/', '', $txtva); // Remove code into vatrate.
$txtva = preg_replace('/\s*\(.*\)/', '', $txtva); // Remove code into vatrate.
}
$tabprice=calcul_price_total($qty, $pu, $remise_percent, $txtva, $txlocaltax1, $txlocaltax2, 0, $price_base_type, $info_bits, $type, $this->thirdparty, $localtaxes_type, 100, $this->multicurrency_tx, $pu_ht_devise);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment