add optional esign field in pdf propal

This commit is contained in:
Frédéric FRANCE 2018-04-15 11:34:21 +02:00
parent db385d64b6
commit d4c03230a0
No known key found for this signature in database
GPG Key ID: 06809324E4B2ABC1

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);
}