FIX Position of box for shipping address in PDF
This commit is contained in:
parent
6bd128071b
commit
3f00ea3d6b
2 changed files with 8 additions and 3 deletions
|
|
@ -928,7 +928,6 @@ class pdf_crabe extends ModelePDFFactures
|
|||
protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs, $heightforfooter = 0)
|
||||
{
|
||||
// phpcs:enable
|
||||
global $conf;
|
||||
|
||||
$sign = 1;
|
||||
if ($object->type == 2 && getDolGlobalString('INVOICE_POSITIVE_CREDIT_NOTE')) {
|
||||
|
|
@ -2176,6 +2175,8 @@ class pdf_crabe extends ModelePDFFactures
|
|||
if (!empty($carac_client_shipping)) {
|
||||
$posy += $hautcadre;
|
||||
|
||||
$hautcadre = $hautcadre - 10; // Height for the shipping address does not need to be as high as main box
|
||||
|
||||
// Show shipping frame
|
||||
$pdf->SetXY($posx + 2, $posy - 5);
|
||||
$pdf->SetFont('', '', $default_font_size - 2);
|
||||
|
|
@ -2193,7 +2194,8 @@ class pdf_crabe extends ModelePDFFactures
|
|||
$pdf->SetXY($posx + 2, $posy);
|
||||
$pdf->SetFont('', '', $default_font_size - 1);
|
||||
$pdf->MultiCell($widthrecbox - 2, 2, $carac_client_shipping, '', 'L');
|
||||
$top_shift += $hautcadre;
|
||||
|
||||
$top_shift += $hautcadre + 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2455,6 +2455,8 @@ class pdf_sponge extends ModelePDFFactures
|
|||
if (!empty($carac_client_shipping)) {
|
||||
$posy += $hautcadre;
|
||||
|
||||
$hautcadre = $hautcadre - 10; // Height for the shipping address does not need to be as high as main box
|
||||
|
||||
// Show shipping frame
|
||||
$pdf->SetXY($posx + 2, $posy - 5);
|
||||
$pdf->SetFont('', '', $default_font_size - 2);
|
||||
|
|
@ -2472,7 +2474,8 @@ class pdf_sponge extends ModelePDFFactures
|
|||
$pdf->SetXY($posx + 2, $posy);
|
||||
$pdf->SetFont('', '', $default_font_size - 1);
|
||||
$pdf->MultiCell($widthrecbox - 2, 2, $carac_client_shipping, '', 'L');
|
||||
$shipp_shift += $hautcadre;
|
||||
|
||||
$shipp_shift += $hautcadre + 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue