PHP8 Warnings
This commit is contained in:
parent
6f9305cb58
commit
f59795224f
@ -540,21 +540,24 @@ if ($action == 'create') {
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Date document export
|
// Don't show in tmp mode, inevitably empty
|
||||||
print '<tr>';
|
if ($mode != "_tmp") {
|
||||||
print '<td class="titlefield">'.$langs->trans("DateExport").'</td>';
|
// Date document export
|
||||||
print '<td>';
|
print '<tr>';
|
||||||
print $object->date_export ? dol_print_date($object->date_export, 'dayhour') : ' ';
|
print '<td class="titlefield">' . $langs->trans("DateExport") . '</td>';
|
||||||
print '</td>';
|
print '<td>';
|
||||||
print '</tr>';
|
print $object->date_export ? dol_print_date($object->date_export, 'dayhour') : ' ';
|
||||||
|
print '</td>';
|
||||||
|
print '</tr>';
|
||||||
|
|
||||||
// Date document validation
|
// Date document validation
|
||||||
print '<tr>';
|
print '<tr>';
|
||||||
print '<td class="titlefield">'.$langs->trans("DateValidation").'</td>';
|
print '<td class="titlefield">' . $langs->trans("DateValidation") . '</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
print $object->date_validation ? dol_print_date($object->date_validation, 'dayhour') : ' ';
|
print $object->date_validation ? dol_print_date($object->date_validation, 'dayhour') : ' ';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
}
|
||||||
|
|
||||||
// Validate
|
// Validate
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -1667,7 +1667,9 @@ class BookKeeping extends CommonObject
|
|||||||
$this->doc_type = $obj->doc_type;
|
$this->doc_type = $obj->doc_type;
|
||||||
$this->date_creation = $this->db->jdate($obj->date_creation);
|
$this->date_creation = $this->db->jdate($obj->date_creation);
|
||||||
$this->date_modification = $this->db->jdate($obj->date_modification);
|
$this->date_modification = $this->db->jdate($obj->date_modification);
|
||||||
$this->date_export = $this->db->jdate($obj->date_export);
|
if ($mode != "_tmp") {
|
||||||
|
$this->date_export = $this->db->jdate($obj->date_export);
|
||||||
|
}
|
||||||
$this->date_validation = $this->db->jdate($obj->date_validation);
|
$this->date_validation = $this->db->jdate($obj->date_validation);
|
||||||
} else {
|
} else {
|
||||||
$this->error = "Error ".$this->db->lasterror();
|
$this->error = "Error ".$this->db->lasterror();
|
||||||
@ -1764,7 +1766,9 @@ class BookKeeping extends CommonObject
|
|||||||
$line->piece_num = $obj->piece_num;
|
$line->piece_num = $obj->piece_num;
|
||||||
$line->date_creation = $obj->date_creation;
|
$line->date_creation = $obj->date_creation;
|
||||||
$line->date_modification = $obj->date_modification;
|
$line->date_modification = $obj->date_modification;
|
||||||
$line->date_export = $obj->date_export;
|
if ($mode != "_tmp") {
|
||||||
|
$line->date_export = $obj->date_export;
|
||||||
|
}
|
||||||
$line->date_validation = $obj->date_validation;
|
$line->date_validation = $obj->date_validation;
|
||||||
|
|
||||||
$this->linesmvt[] = $line;
|
$this->linesmvt[] = $line;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user