Browse Source

MMIDocument option to hide delivery date in Shipping PDF

Mathieu Moulin 2 năm trước cách đây
mục cha
commit
b1633d24ad
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      htdocs/core/modules/expedition/doc/pdf_rouget.modules.php

+ 1 - 1
htdocs/core/modules/expedition/doc/pdf_rouget.modules.php

@@ -964,7 +964,7 @@ class pdf_rouget extends ModelePdfExpedition
 		$pdf->MultiCell($w, 4, $outputlangs->transnoentities("RefSending")." : ".$object->ref, '', 'R');
 
 		// Date planned delivery
-		if (!empty($object->date_delivery)) {
+		if (empty($conf->global->SHIPPING_PDF_HIDE_DELIVERY_DATE) && !empty($object->date_delivery)) {
 				$posy += 4;
 				$pdf->SetXY($posx, $posy);
 				$pdf->SetTextColor(0, 0, 60);