Update pdf_espadon.modules.php
This commit is contained in:
parent
74ed754fcc
commit
4ae29c53aa
@ -651,6 +651,11 @@ class pdf_espadon extends ModelePdfExpedition
|
|||||||
$nexY = max($pdf->GetY(), $nexY);
|
$nexY = max($pdf->GetY(), $nexY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($this->getColumnStatus('unit_order')) {
|
||||||
|
$this->printStdColumnContent($pdf, $curY, 'unit_order', measuringUnitString($object->lines[$i]->fk_unit));
|
||||||
|
$nexY = max($pdf->GetY(), $nexY);
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->getColumnStatus('qty_shipped')) {
|
if ($this->getColumnStatus('qty_shipped')) {
|
||||||
$this->printStdColumnContent($pdf, $curY, 'qty_shipped', $object->lines[$i]->qty_shipped);
|
$this->printStdColumnContent($pdf, $curY, 'qty_shipped', $object->lines[$i]->qty_shipped);
|
||||||
$nexY = max($pdf->GetY(), $nexY);
|
$nexY = max($pdf->GetY(), $nexY);
|
||||||
@ -1312,6 +1317,20 @@ class pdf_espadon extends ModelePdfExpedition
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$rank = $rank + 10;
|
||||||
|
$this->cols['unit_order'] = array(
|
||||||
|
'rank' => $rank,
|
||||||
|
'width' => 15, // in mm
|
||||||
|
'status' => empty($conf->global->PRODUCT_USE_UNITS) ? 0 : 1,
|
||||||
|
'title' => array(
|
||||||
|
'textkey' => 'Unit'
|
||||||
|
),
|
||||||
|
'border-left' => true, // add left line separator
|
||||||
|
'content' => array(
|
||||||
|
'align' => 'C',
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
$rank = $rank + 10;
|
$rank = $rank + 10;
|
||||||
$this->cols['qty_shipped'] = array(
|
$this->cols['qty_shipped'] = array(
|
||||||
'rank' => $rank,
|
'rank' => $rank,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user