fix(expedition): use date_creation instead of date_delivery in linkedobjectblock (#37589)

Co-authored-by: Zakaria Boushaba <z.boushaba@vold.africa>
This commit is contained in:
Zakaria Boushaba 2026-03-25 01:10:00 +01:00 committed by GitHub
parent ab53343a44
commit 62c6e1db97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,7 +50,7 @@ foreach ($linkedObjectBlock as $key => $objectlink) {
<td><?php echo $langs->trans("Shipment"); ?></td>
<td class="tdoverflowmax125"><?php echo $objectlink->getNomUrl(1); ?></td>
<td class="tdoverflowmax125" title="<?php dolPrintHTMLForAttribute($objectlink->ref_customer); ?>"><?php echo dolPrintHTML($objectlink->ref_customer); ?></td>
<td class="center"><?php echo dol_print_date($objectlink->date_delivery ? $objectlink->date_delivery : $objectlink->date_creation, 'day'); ?></td>
<td class="center"><?php echo dol_print_date($objectlink->date_creation, 'day'); ?></td>
<td class="right"><?php
if ($user->hasRight('expedition', 'lire')) {
$total += $objectlink->total_ht;