Update commonobject.class.php

This commit is contained in:
BENKE Charlene 2017-06-17 16:31:54 +02:00 committed by GitHub
parent db17363267
commit fcdf68db6a

View File

@ -3099,11 +3099,11 @@ abstract class CommonObject
}
else {
if ($weight_units == 99) {
// conversion 1 Livre = 0.45359237 KG
// conversion 1 Pound = 0.45359237 KG
$trueWeightUnit = 0.45359237;
$totalWeight += $weight * $qty * $trueWeightUnit;
} elseif ($weight_units == 98) {
// conversion 1 once = 0.0283495 KG
// conversion 1 Ounce = 0.0283495 KG
$trueWeightUnit = 0.0283495;
$totalWeight += $weight * $qty * $trueWeightUnit;
}