Fix typing with casts

This commit is contained in:
MDW 2024-03-21 22:13:50 +01:00
parent 6eeab82dd4
commit 629e445f30
No known key found for this signature in database

View file

@ -387,7 +387,7 @@ if ($resql) {
print '<br>';
}
print $langs->trans("Total").' ('.$totalqty.' '.$langs->trans("Articles").') : <div class="inline-block amount width100">'.price($cash + $cheque + $bank + $other).'</div>';
print $langs->trans("Total").' ('.$totalqty.' '.$langs->trans("Articles").') : <div class="inline-block amount width100">'.price((float) $cash + (float) $cheque + (float) $bank + (float) $other).'</div>';
print '<br>'.$langs->trans("TotalVAT").' : <div class="inline-block amount width100">'.price($totalvat).'</div>';