php V8 warning

This commit is contained in:
This Charlène 2022-08-22 13:57:23 +02:00 committed by GitHub
parent 49315de03a
commit 5ddd0c20ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2079,6 +2079,10 @@ if ($action == 'create') {
// Date
if ($object->methode_commande_id > 0) {
$usehourmin = 0;
if (!empty($conf->global->SUPPLIER_ORDER_USE_HOUR_FOR_DELIVERY_DATE)) {
$usehourmin = 1;
}
print '<tr><td class="titlefield">'.$langs->trans("Date").'</td><td>';
print $object->date_commande ? dol_print_date($object->date_commande, $usehourmin ? 'dayhour' : 'day') : '';
if ($object->hasDelay() && !empty($object->date_delivery) && !empty($object->date_commande)) {