Fix PhanTypeInvalid{Left,Right}OperandOfNumericOp mostly by typing, casting, idate
This commit is contained in:
parent
7fe931c46f
commit
c97e400b9d
1 changed files with 2 additions and 2 deletions
|
|
@ -694,8 +694,8 @@ class pdf_rouget extends ModelePdfExpedition
|
|||
$totalToShip = $tmparray['toship'];
|
||||
// Set trueVolume and volume_units not currently stored into database
|
||||
if ($object->trueWidth && $object->trueHeight && $object->trueDepth) {
|
||||
$object->trueVolume = price(($object->trueWidth * $object->trueHeight * $object->trueDepth), 0, $outputlangs, 0, 0);
|
||||
$object->volume_units = $object->size_units * 3;
|
||||
$object->trueVolume = price(((float) $object->trueWidth * (float) $object->trueHeight * (float) $object->trueDepth), 0, $outputlangs, 0, 0);
|
||||
$object->volume_units = (float) $object->size_units * 3;
|
||||
}
|
||||
|
||||
if ($totalWeight != '') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue