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: 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);
|
||||
@ -475,7 +489,7 @@ class pdf_azur extends ModelePDFPropales
|
||||
$pdf->SetXY(82, $posy);
|
||||
$lib_availability=$outputlangs->transnoentities("AvailabilityType".$object->availability_code)!=('AvailabilityType'.$object->availability_code)?$outputlangs->transnoentities("AvailabilityType".$object->availability_code):$outputlangs->convToOutputCharset($object->availability);
|
||||
$lib_availability=str_replace('\n',"\n",$lib_availability);
|
||||
$pdf->MultiCell(80, 4, $lib_availability,0,'L');
|
||||
$pdf->MultiCell(80, 4, $lib_availability, 0, 'L');
|
||||
|
||||
$posy=$pdf->GetY()+1;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user