New: Show delivery date into proposal template azur.
This commit is contained in:
parent
f241e338b3
commit
e4b697fa75
@ -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: [ 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: 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: 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: Can use POS module with several concurrent users.
|
||||||
- Fix: Installer don't fails with Mysql version that added a ssl_cypher field.
|
- Fix: Installer don't fails with Mysql version that added a ssl_cypher field.
|
||||||
- Fix: Sanitize input parameters.
|
- Fix: Sanitize input parameters.
|
||||||
|
|||||||
@ -463,8 +463,22 @@ class pdf_azur extends ModelePDFPropales
|
|||||||
$posy=$pdf->GetY()+4;
|
$posy=$pdf->GetY()+4;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show availability conditions
|
// Show shipping date
|
||||||
if ($object->type != 2 && ($object->availability_code || $object->availability))
|
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->SetFont('','B', $default_font_size - 2);
|
||||||
$pdf->SetXY($this->marge_gauche, $posy);
|
$pdf->SetXY($this->marge_gauche, $posy);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user