diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php index 786d2c53a34..c42a673976e 100644 --- a/htdocs/core/class/html.formother.class.php +++ b/htdocs/core/class/html.formother.class.php @@ -374,9 +374,13 @@ class FormOther if ($conf->use_javascript_ajax) { include_once DOL_DOCUMENT_ROOT . '/core/lib/ajax.lib.php'; + $comboenhancement = ajax_combobox($htmlname); - $out.=$comboenhancement; - $nodatarole=($comboenhancement?' data-role="none"':''); + if ($comboenhancement) + { + $out.=$comboenhancement; + $nodatarole=($comboenhancement?' data-role="none"':''); + } } // Select each sales and print them in a select input $out.=''; print ''; + // Date print ' '; - if($conf->expedition_bon->enabled) { + if ($conf->livraison_bon->enabled) + { print ''; print ''; - } - if($conf->livraison_bon->enabled) { + print ' '; } print ''; @@ -193,14 +193,23 @@ if ($resql) { }*/ print "\n"; - if($conf->expedition_bon->enabled) { - // Date real - print ''; - print dol_print_date($db->jdate($objp->date_expedition),"day"); - print ''."\n"; - } - if($conf->livraison_bon->enabled) { - print ''; + + // Date real + print ''; + print dol_print_date($db->jdate($objp->date_expedition),"day"); + print ''."\n"; + + if ($conf->livraison_bon->enabled) + { + $shipment->fetchObjectLinked($shipment->id,$shipment->element); + $receiving=(! empty($shipment->linkedObjects['delivery'][0])?$shipment->linkedObjects['delivery'][0]:''); + + // Ref + print ''; + print !empty($receiving) ? $receiving->getNomUrl($db) : ''; + print ''; + + print ''; print dol_print_date($db->jdate($objp->date_reception),"day"); print ''."\n"; }