Fix: lorsqu'on éditait une ligne, le prix (ex: 12 000€) affichait 12€
This commit is contained in:
parent
83051a8c7c
commit
490bca3772
@ -1144,12 +1144,12 @@ class Facture
|
|||||||
$qty=1;
|
$qty=1;
|
||||||
}
|
}
|
||||||
$remise = 0;
|
$remise = 0;
|
||||||
$price = price2num($pu);
|
$subprice = price2num($pu);
|
||||||
$subprice = $price;
|
$price = $subprice;
|
||||||
if (trim(strlen($remise_percent)) > 0)
|
if (trim(strlen($remise_percent)) > 0)
|
||||||
{
|
{
|
||||||
$remise = round(($pu * $remise_percent / 100), 2);
|
$remise = round(($subprice * $remise_percent / 100), 2);
|
||||||
$price = $pu - $remise;
|
$price = $subprice - $remise;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user