add_cyan_doc

This commit is contained in:
Anthony Berton 2021-08-11 17:32:09 +02:00
parent 8d1a53ce98
commit fc10fd0901

View File

@ -1689,14 +1689,16 @@ class pdf_cyan extends ModelePDFPropales
$widthrecbox = !empty($conf->global->MAIN_PDF_USE_ISO_LOCATION) ? 92 : 82; $widthrecbox = !empty($conf->global->MAIN_PDF_USE_ISO_LOCATION) ? 92 : 82;
// Show sender frame // Show sender frame
$pdf->SetTextColor(0, 0, 0); if (empty($conf->global->MAIN_PDF_NO_SENDER_FRAME)) {
$pdf->SetFont('', '', $default_font_size - 2); $pdf->SetTextColor(0, 0, 0);
$pdf->SetXY($posx, $posy - 5); $pdf->SetFont('', '', $default_font_size - 2);
$pdf->MultiCell($widthrecbox, 5, $outputlangs->transnoentities("BillFrom"), 0, $ltrdirection); $pdf->SetXY($posx, $posy - 5);
$pdf->SetXY($posx, $posy); $pdf->MultiCell($widthrecbox, 5, $outputlangs->transnoentities("BillFrom"), 0, $ltrdirection);
$pdf->SetFillColor(230, 230, 230); $pdf->SetXY($posx, $posy);
$pdf->MultiCell($widthrecbox, $hautcadre, "", 0, 'R', 1); $pdf->SetFillColor(230, 230, 230);
$pdf->SetTextColor(0, 0, 60); $pdf->MultiCell($widthrecbox, $hautcadre, "", 0, 'R', 1);
$pdf->SetTextColor(0, 0, 60);
}
// Show sender name // Show sender name
$pdf->SetXY($posx + 2, $posy + 3); $pdf->SetXY($posx + 2, $posy + 3);
@ -1743,11 +1745,13 @@ class pdf_cyan extends ModelePDFPropales
} }
// Show recipient frame // Show recipient frame
$pdf->SetTextColor(0, 0, 0); if (empty($conf->global->MAIN_PDF_NO_RECIPENT_FRAME)) {
$pdf->SetFont('', '', $default_font_size - 2); $pdf->SetTextColor(0, 0, 0);
$pdf->SetXY($posx + 2, $posy - 5); $pdf->SetFont('', '', $default_font_size - 2);
$pdf->MultiCell($widthrecbox, 5, $outputlangs->transnoentities("BillTo"), 0, $ltrdirection); $pdf->SetXY($posx + 2, $posy - 5);
$pdf->Rect($posx, $posy, $widthrecbox, $hautcadre); $pdf->MultiCell($widthrecbox, 5, $outputlangs->transnoentities("BillTo"), 0, $ltrdirection);
$pdf->Rect($posx, $posy, $widthrecbox, $hautcadre);
}
// Show recipient name // Show recipient name
$pdf->SetXY($posx + 2, $posy + 3); $pdf->SetXY($posx + 2, $posy + 3);