mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
make PDF custom volume work as it work on expedition/card.php
This commit is contained in:
parent
45725a1e97
commit
4fdf930269
|
|
@ -846,12 +846,13 @@ class pdf_espadon extends ModelePdfExpedition
|
|||
$totalWeighttoshow = showDimensionInBestUnit($object->trueWeight, $object->weight_units, "weight", $outputlangs);
|
||||
}
|
||||
if ($object->trueVolume) {
|
||||
$totalVolumetoshow = showDimensionInBestUnit($object->trueVolume, $object->volume_units, "volume", $outputlangs);
|
||||
if ($object->volume_units < 50) {
|
||||
$totalVolumetoshow = showDimensionInBestUnit($object->trueVolume, $object->volume_units, "volume", $outputlangs);
|
||||
} else {
|
||||
$totalVolumetoshow = price($object->trueVolume, 0, $outputlangs, 0, 0).' '.measuringUnitString(0, "volume", $object->volume_units);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if ($this->getColumnStatus('desc')) {
|
||||
$this->printStdColumnContent($pdf, $tab2_top, 'desc', $outputlangs->transnoentities("Total"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user