Skip to content

Commit

Permalink
Fix PhanTypeInvalid{Left,Right}OperandOfNumericOp mostly by typing, c…
Browse files Browse the repository at this point in the history
…asting, idate
  • Loading branch information
mdeweerd committed Mar 23, 2024
1 parent 8c75bcd commit 48c2923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/supplier_proposal/class/supplier_proposal.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ public function addline($desc, $pu_ht, $qty, $txtva, $txlocaltax1 = 0, $txlocalt
$price = $pu;
$remise = 0;
if ($remise_percent > 0) {
$remise = round(($pu * $remise_percent / 100), 2);
$remise = round(($pu * (float) $remise_percent / 100), 2);
$price = $pu - $remise;
}

Expand Down

0 comments on commit 48c2923

Please sign in to comment.