Code comment
This commit is contained in:
parent
5f08a649eb
commit
46e019642f
@ -3687,7 +3687,7 @@ abstract class CommonObject
|
|||||||
if (empty($totalVolume)) $totalVolume=0; // Avoid warning because $totalVolume is ''
|
if (empty($totalVolume)) $totalVolume=0; // Avoid warning because $totalVolume is ''
|
||||||
|
|
||||||
//var_dump($line->volume_units);
|
//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);
|
$trueWeightUnit=pow(10, $weightUnit);
|
||||||
$totalWeight += $weight * $qty * $trueWeightUnit;
|
$totalWeight += $weight * $qty * $trueWeightUnit;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user