Update facture.class.php (#28591)

* Update facture.class.php

FIX  #22948

* Update facture.class.php
This commit is contained in:
PsyCrow 2024-03-03 09:58:52 -06:00 committed by GitHub
parent 16319e5103
commit 41bdcff4da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);