diff --git a/htdocs/expedition/list.php b/htdocs/expedition/list.php index 97183c3feff24..fca893fb9c6fc 100644 --- a/htdocs/expedition/list.php +++ b/htdocs/expedition/list.php @@ -1260,25 +1260,25 @@ print ''; } -// Date shipping -if (!empty($arrayfields['e.date_expedition']['checked'])) { +// Date delivery planned +if (!empty($arrayfields['e.date_delivery']['checked'])) { print ''; print '
'; - print $form->selectDate($search_dateshipping_start ? $search_dateshipping_start : -1, 'search_dateshipping_start', 0, 0, 1, '', 1, 0, 0, '', '', '', '', 1, '', $langs->trans('From')); + print $form->selectDate($search_datedelivery_start ? $search_datedelivery_start : -1, 'search_datedelivery_start', 0, 0, 1, '', 1, 0, 0, '', '', '', '', 1, '', $langs->trans('From')); print '
'; print '
'; - print $form->selectDate($search_dateshipping_end ? $search_dateshipping_end : -1, 'search_dateshipping_end', 0, 0, 1, '', 1, 0, 0, '', '', '', '', 1, '', $langs->trans('to')); + print $form->selectDate($search_datedelivery_end ? $search_datedelivery_end : -1, 'search_datedelivery_end', 0, 0, 1, '', 1, 0, 0, '', '', '', '', 1, '', $langs->trans('to')); print '
'; print ''; } -// Date delivery planned -if (!empty($arrayfields['e.date_delivery']['checked'])) { +// Date shipping +if (!empty($arrayfields['e.date_expedition']['checked'])) { print ''; print '
'; - print $form->selectDate($search_datedelivery_start ? $search_datedelivery_start : -1, 'search_datedelivery_start', 0, 0, 1, '', 1, 0, 0, '', '', '', '', 1, '', $langs->trans('From')); + print $form->selectDate($search_dateshipping_start ? $search_dateshipping_start : -1, 'search_dateshipping_start', 0, 0, 1, '', 1, 0, 0, '', '', '', '', 1, '', $langs->trans('From')); print '
'; print '
'; - print $form->selectDate($search_datedelivery_end ? $search_datedelivery_end : -1, 'search_datedelivery_end', 0, 0, 1, '', 1, 0, 0, '', '', '', '', 1, '', $langs->trans('to')); + print $form->selectDate($search_dateshipping_end ? $search_dateshipping_end : -1, 'search_dateshipping_end', 0, 0, 1, '', 1, 0, 0, '', '', '', '', 1, '', $langs->trans('to')); print '
'; print ''; } @@ -1631,19 +1631,19 @@ $totalarray['nbfield']++; } } - // Date shipping - if (!empty($arrayfields['e.date_expedition']['checked'])) { + // Date delivery planned + if (!empty($arrayfields['e.date_delivery']['checked'])) { print ''; - print dol_print_date($db->jdate($obj->date_expedition), "dayhour"); + print dol_print_date($db->jdate($obj->delivery_date), "dayhour"); print "\n"; if (!$i) { $totalarray['nbfield']++; } } - // Date delivery planned - if (!empty($arrayfields['e.date_delivery']['checked'])) { + // Date shipping + if (!empty($arrayfields['e.date_expedition']['checked'])) { print ''; - print dol_print_date($db->jdate($obj->delivery_date), "dayhour"); + print dol_print_date($db->jdate($obj->date_expedition), "dayhour"); print "\n"; if (!$i) { $totalarray['nbfield']++;