Rename variables to avoid confusion between id and scale.

This commit is contained in:
Laurent Destailleur
2024-11-10 18:09:18 +01:00
parent 9114162a42
commit 607f2708fc
2 changed files with 19 additions and 19 deletions

View File

@@ -1472,7 +1472,7 @@ class BOM extends CommonObject
} else {
// Convert qty of line into hours
$unitforline = measuringUnitString($line->fk_unit, '', '', 1);
$qtyhourforline = convertDurationtoHour($line->qty, $unitforline);
$qtyhourforline = convertDurationtoHour((float) $line->qty, $unitforline);
if (isModEnabled('workstation') && !empty($line->fk_default_workstation)) {
$workstation = new Workstation($this->db);