|
@@ -520,7 +520,7 @@ class pdf_merou extends ModelePdfExpedition
|
|
|
* @param Expedition $object Object to show
|
|
|
* @param int $showaddress 0=no, 1=yes
|
|
|
* @param Translate $outputlangs Object lang for output
|
|
|
- * @return void
|
|
|
+ * @return int <0 if KO, > if OK
|
|
|
*/
|
|
|
protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
|
|
|
{
|
|
@@ -700,6 +700,16 @@ class pdf_merou extends ModelePdfExpedition
|
|
|
|
|
|
$widthrecbox = $blW;
|
|
|
|
|
|
+ $top_shift = 0;
|
|
|
+ // Show list of linked objects
|
|
|
+ /*
|
|
|
+ $current_y = $pdf->getY();
|
|
|
+ $posy = pdf_writeLinkedObjects($pdf, $object, $outputlangs, $posx, $posy, $w, 3, 'R', $default_font_size);
|
|
|
+ if ($current_y < $pdf->getY()) {
|
|
|
+ $top_shift = $pdf->getY() - $current_y;
|
|
|
+ }
|
|
|
+ */
|
|
|
+
|
|
|
// Show Recipient frame
|
|
|
$pdf->SetFont('', 'B', $default_font_size - 3);
|
|
|
$pdf->SetXY($blDestX, $Yoff - 4);
|
|
@@ -717,5 +727,7 @@ class pdf_merou extends ModelePdfExpedition
|
|
|
$pdf->SetFont('', '', $default_font_size - 3);
|
|
|
$pdf->SetXY($blDestX, $posy);
|
|
|
$pdf->MultiCell($widthrecbox, 4, $carac_client, 0, 'L');
|
|
|
+
|
|
|
+ return $top_shift;
|
|
|
}
|
|
|
}
|