FIX Position of signature on strato template

This commit is contained in:
Laurent Destailleur 2017-09-16 00:49:00 +02:00
parent 8773a6860f
commit f4de75afc3

View File

@ -465,17 +465,20 @@ class pdf_strato extends ModelePDFContract
if (empty($hidebottom)) if (empty($hidebottom))
{ {
$pdf->SetXY(20,230); $posmiddle = $this->marge_gauche + round(($this->page_largeur - $this->marge_gauche - $this->marge_droite)/2);
$pdf->MultiCell(66,5, $outputlangs->transnoentities("ContactNameAndSignature", $this->emetteur->name),0,'L',0); $posy = $tab_top + $tab_height + 3 + 3;
$pdf->SetXY(20,235); $pdf->SetXY($this->marge_gauche, $posy);
$pdf->MultiCell(80,25, '', 1); $pdf->MultiCell($posmiddle - $this->marge_gauche - 5, 5, $outputlangs->transnoentities("ContactNameAndSignature", $this->emetteur->name),0,'L',0);
$pdf->SetXY(110,230); $pdf->SetXY($this->marge_gauche, $posy + 5);
$pdf->MultiCell(80,5, $outputlangs->transnoentities("ContactNameAndSignature", $this->recipient->name),0,'L',0); $pdf->MultiCell($posmiddle - $this->marge_gauche - 5, 20, '', 1);
$pdf->SetXY(110,235); $pdf->SetXY($posmiddle + 5, $posy);
$pdf->MultiCell(80,25, '', 1); $pdf->MultiCell($this->page_largeur-$this->marge_droite - $posmiddle - 5, 5, $outputlangs->transnoentities("ContactNameAndSignature", $this->recipient->name),0,'L',0);
$pdf->SetXY($posmiddle + 5, $posy + 5);
$pdf->MultiCell($this->page_largeur-$this->marge_droite - $posmiddle - 5, 20, '', 1);
} }
} }