Merge pull request #21833 from defrance/patch-235
php V8 warning (supplier order)
This commit is contained in:
commit
456c0f8dff
@ -416,7 +416,7 @@ function dol_print_object_info($object, $usetable = 0)
|
|||||||
} else {
|
} else {
|
||||||
print ': ';
|
print ': ';
|
||||||
}
|
}
|
||||||
if (is_object($object->user_approve)) {
|
if (!empty($object->user_approve) && is_object($object->user_approve)) {
|
||||||
if ($object->user_approve->id) {
|
if ($object->user_approve->id) {
|
||||||
print $object->user_approve->getNomUrl(-1, '', 0, 0, 0);
|
print $object->user_approve->getNomUrl(-1, '', 0, 0, 0);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -2084,6 +2084,10 @@ if ($action == 'create') {
|
|||||||
|
|
||||||
// Date
|
// Date
|
||||||
if ($object->methode_commande_id > 0) {
|
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 '<tr><td class="titlefield">'.$langs->trans("Date").'</td><td>';
|
||||||
print $object->date_commande ? dol_print_date($object->date_commande, $usehourmin ? 'dayhour' : 'day') : '';
|
print $object->date_commande ? dol_print_date($object->date_commande, $usehourmin ? 'dayhour' : 'day') : '';
|
||||||
if ($object->hasDelay() && !empty($object->date_delivery) && !empty($object->date_commande)) {
|
if ($object->hasDelay() && !empty($object->date_delivery) && !empty($object->date_commande)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user