Code comment

This commit is contained in:
Laurent Destailleur 2019-09-27 17:51:22 +02:00
parent 5f08a649eb
commit 46e019642f

View File

@ -3687,7 +3687,7 @@ abstract class CommonObject
if (empty($totalVolume)) $totalVolume=0; // Avoid warning because $totalVolume is ''
//var_dump($line->volume_units);
if ($weight_units < 50) // >50 means a standard unit (power of 10 of official unit), > 50 means an exotic unit (like inch)
if ($weight_units < 50) // < 50 means a standard unit (power of 10 of official unit), > 50 means an exotic unit (like inch)
{
$trueWeightUnit=pow(10, $weightUnit);
$totalWeight += $weight * $qty * $trueWeightUnit;