Skip to content
Snippets Groups Projects
Commit e4b697fa authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

New: Show delivery date into proposal template azur.

parent f241e338
Branches main
No related tags found
No related merge requests found
......@@ -58,6 +58,7 @@ For users:
- New: [ task #176 ] Allow to use ODT templates for proposals and orders like it's done for invoices
- New: Add hidden option MAIN_ADD_PDF_BACKGROUND to add a PDF as background of invoice/order generated PDF.
- New: Can convert a product/service into service/product.
- New: Show delivery date into proposal template azur.
- Fix: Can use POS module with several concurrent users.
- Fix: Installer don't fails with Mysql version that added a ssl_cypher field.
- Fix: Sanitize input parameters.
......
......@@ -463,8 +463,22 @@ class pdf_azur extends ModelePDFPropales
$posy=$pdf->GetY()+4;
}
// Show availability conditions
if ($object->type != 2 && ($object->availability_code || $object->availability))
// Show shipping date
if ($object->type != 2 && $object->date_livraison)
{
$outputlangs->load("sendings");
$pdf->SetFont('','B', $default_font_size - 2);
$pdf->SetXY($this->marge_gauche, $posy);
$titre = $outputlangs->transnoentities("DateDeliveryPlanned").':';
$pdf->MultiCell(80, 4, $titre, 0, 'L');
$pdf->SetFont('','', $default_font_size - 2);
$pdf->SetXY(82, $posy);
$dlp=dol_print_date($object->date_livraison,"daytext",false,$outputlangs,true);
$pdf->MultiCell(80, 4, $dlp, 0, 'L');
$posy=$pdf->GetY()+1;
}
elseif ($object->type != 2 && ($object->availability_code || $object->availability)) // Show availability conditions
{
$pdf->SetFont('','B', $default_font_size - 2);
$pdf->SetXY($this->marge_gauche, $posy);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment