Update facture.class.php (#28591)
* Update facture.class.php FIX #22948 * Update facture.class.php
This commit is contained in:
parent
16319e5103
commit
41bdcff4da
1 changed files with 2 additions and 2 deletions
|
|
@ -4167,8 +4167,8 @@ class Facture extends CommonInvoice
|
|||
$price = $pu;
|
||||
$remise = 0;
|
||||
if ($remise_percent > 0) {
|
||||
$remise = round(($pu * $remise_percent / 100), 2);
|
||||
$price = ($pu - $remise);
|
||||
$remise = round(((float) $pu * (float) $remise_percent / 100), 2);
|
||||
$price = ((float) $pu - $remise);
|
||||
}
|
||||
$price = price2num($price);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue