Merge pull request #22490 from FHenry/14_fix_warning

fix: remove php warning Non Numeric Value
This commit is contained in:
Laurent Destailleur 2022-10-06 11:46:36 +02:00 committed by GitHub
commit dc898fbc19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1428,7 +1428,7 @@ class pdf_sponge extends ModelePDFFactures
// Total remise
$total_line_remise = 0;
foreach ($object->lines as $i => $line) {
$total_line_remise += pdfGetLineTotalDiscountAmount($object, $i, $outputlangs, 2); // TODO: add this method to core/lib/pdf.lib
$total_line_remise += (float) pdfGetLineTotalDiscountAmount($object, $i, $outputlangs, 2); // TODO: add this method to core/lib/pdf.lib
// Gestion remise sous forme de ligne négative
if ($line->total_ht < 0) {
$total_line_remise += -$line->total_ht;