Update pdf_espadon.modules.php
This commit is contained in:
parent
74ed754fcc
commit
4ae29c53aa
@ -650,6 +650,11 @@ class pdf_espadon extends ModelePdfExpedition
|
||||
$this->printStdColumnContent($pdf, $curY, 'qty_asked', $object->lines[$i]->qty_asked);
|
||||
$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')) {
|
||||
$this->printStdColumnContent($pdf, $curY, 'qty_shipped', $object->lines[$i]->qty_shipped);
|
||||
@ -1311,6 +1316,20 @@ class pdf_espadon extends ModelePdfExpedition
|
||||
'align' => 'C',
|
||||
),
|
||||
);
|
||||
|
||||
$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;
|
||||
$this->cols['qty_shipped'] = array(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user