Skip to content

Commit

Permalink
Update list.php
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy authored Nov 13, 2024
1 parent d8c4214 commit 7c7c1de
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions htdocs/expedition/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -1260,25 +1260,25 @@

print '</td>';
}
// Date shipping
if (!empty($arrayfields['e.date_expedition']['checked'])) {
// Date delivery planned
if (!empty($arrayfields['e.date_delivery']['checked'])) {
print '<td class="liste_titre center">';
print '<div class="nowrapfordate">';
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 '</div>';
print '<div class="nowrapfordate">';
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 '</div>';
print '</td>';
}
// Date delivery planned
if (!empty($arrayfields['e.date_delivery']['checked'])) {
// Date shipping
if (!empty($arrayfields['e.date_expedition']['checked'])) {
print '<td class="liste_titre center">';
print '<div class="nowrapfordate">';
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 '</div>';
print '<div class="nowrapfordate">';
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 '</div>';
print '</td>';
}
Expand Down Expand Up @@ -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 '<td class="center nowraponall">';
print dol_print_date($db->jdate($obj->date_expedition), "dayhour");
print dol_print_date($db->jdate($obj->delivery_date), "dayhour");
print "</td>\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 '<td class="center nowraponall">';
print dol_print_date($db->jdate($obj->delivery_date), "dayhour");
print dol_print_date($db->jdate($obj->date_expedition), "dayhour");
print "</td>\n";
if (!$i) {
$totalarray['nbfield']++;
Expand Down

0 comments on commit 7c7c1de

Please sign in to comment.