Merge pull request #8601 from frederic34/esign

NEW add optional esign field in pdf propal
This commit is contained in:
Laurent Destailleur
2018-04-17 16:12:53 +02:00
committed by GitHub

View File

@@ -1624,6 +1624,7 @@ class pdf_azur extends ModelePDFPropales
*/
function _signature_area(&$pdf, $object, $posy, $outputlangs)
{
global $conf;
$default_font_size = pdf_getPDFFontSize($outputlangs);
$tab_top = $posy + 4;
$tab_hl = 4;
@@ -1640,6 +1641,9 @@ class pdf_azur extends ModelePDFPropales
$pdf->SetXY($posx, $tab_top + $tab_hl);
$pdf->MultiCell($largcol, $tab_hl*3, '', 1, 'R');
if (! empty($conf->global->MAIN_PDF_PROPAL_USE_ELECTRONIC_SIGNING)) {
$pdf->addEmptySignatureAppearance($posx, $tab_top + $tab_hl, $largcol, $tab_hl*3);
}
return ($tab_hl*7);
}