NEW|New Add delivery date in supplier order linked object block (#38351)

* Feat: Add delivery date in supplier order linked object block

* Fix indents

---------

Co-authored-by: Zakaria Boushaba <z.boushaba@vold.africa>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
Zakaria Boushaba 2026-05-22 20:24:05 +01:00 committed by GitHub
parent 951a73b79f
commit d0209abc43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,7 +70,12 @@ foreach ($linkedObjectBlock as $key => $objectlink) {
<td class="tdoverflowmax125" title="<?php echo dolPrintHTMLForAttribute($langs->trans("SupplierOrder")); ?>"><?php echo dolPrintHTML($langs->trans("SupplierOrder")); ?></td>
<td><?php print $objectlink->getNomUrl(1); ?></td>
<td class="left linkedcol-ref tdoverflowmax125 nopaddingtopimp nopaddingbottomimp" title="<?php echo dolPrintHTMLForAttributeUrl($objectlink->ref_supplier); ?>"><?php echo $refSupplierWithThirdparty ?></td>
<td class="center"><?php echo dol_print_date($objectlink->date, 'day'); ?></td>
<td class="center"><?php
echo img_picto($langs->trans("Date"), 'generic', 'class="pictofixedwidth"').dol_print_date($objectlink->date, 'day');
if (!empty($objectlink->delivery_date)) {
echo '<br>'.img_picto($langs->trans("DateDeliveryPlanned"), 'reception', 'class="pictofixedwidth"').dol_print_date($objectlink->delivery_date, 'day');
}
?></td>
<td class="right"><?php
if ($user->hasRight("fournisseur", "commande", "lire")) {
$total += $objectlink->total_ht;