Fix: Option MAIN_INVERT_SENDER_RECIPIENT broken with typhon template.
This commit is contained in:
parent
537ada96a8
commit
bd8cdd337a
@ -6,6 +6,7 @@ English Dolibarr ChangeLog
|
|||||||
Fix: Error on field accountancy code for export profile of invoices.
|
Fix: Error on field accountancy code for export profile of invoices.
|
||||||
Fix: [ bug #1351 ] VIES verification link broken.
|
Fix: [ bug #1351 ] VIES verification link broken.
|
||||||
Fix: [ bug #1352 ] Removing a shipping does not remove the delivery.
|
Fix: [ bug #1352 ] Removing a shipping does not remove the delivery.
|
||||||
|
Fix: Option MAIN_INVERT_SENDER_RECIPIENT broken with typhon template.
|
||||||
|
|
||||||
|
|
||||||
***** ChangeLog for 3.5.2 compared to 3.5.1 *****
|
***** ChangeLog for 3.5.2 compared to 3.5.1 *****
|
||||||
|
|||||||
@ -780,9 +780,11 @@ class pdf_typhon extends ModelePDFDeliveryOrder
|
|||||||
|
|
||||||
// Client destinataire
|
// Client destinataire
|
||||||
$posy=42;
|
$posy=42;
|
||||||
|
$posx=102;
|
||||||
|
if (! empty($conf->global->MAIN_INVERT_SENDER_RECIPIENT)) $posx=$this->marge_gauche;
|
||||||
$pdf->SetTextColor(0,0,0);
|
$pdf->SetTextColor(0,0,0);
|
||||||
$pdf->SetFont('','', $default_font_size - 2);
|
$pdf->SetFont('','', $default_font_size - 2);
|
||||||
$pdf->SetXY(102,$posy-5);
|
$pdf->SetXY($posx,$posy-5);
|
||||||
$pdf->MultiCell(80,5, $outputlangs->transnoentities("DeliveryAddress").":", 0, 'L');
|
$pdf->MultiCell(80,5, $outputlangs->transnoentities("DeliveryAddress").":", 0, 'L');
|
||||||
|
|
||||||
// If SHIPPING contact defined on order, we use it
|
// If SHIPPING contact defined on order, we use it
|
||||||
@ -814,7 +816,7 @@ class pdf_typhon extends ModelePDFDeliveryOrder
|
|||||||
if ($this->page_largeur < 210) $widthrecbox=84; // To work with US executive format
|
if ($this->page_largeur < 210) $widthrecbox=84; // To work with US executive format
|
||||||
$posy=42;
|
$posy=42;
|
||||||
$posx=$this->page_largeur-$this->marge_droite-$widthrecbox;
|
$posx=$this->page_largeur-$this->marge_droite-$widthrecbox;
|
||||||
//if (! empty($conf->global->MAIN_INVERT_SENDER_RECIPIENT)) $posx=$this->marge_gauche;
|
if (! empty($conf->global->MAIN_INVERT_SENDER_RECIPIENT)) $posx=$this->marge_gauche;
|
||||||
|
|
||||||
// Show recipient frame
|
// Show recipient frame
|
||||||
$pdf->SetTextColor(0,0,0);
|
$pdf->SetTextColor(0,0,0);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user