mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
NEW date and user signature on proposal (Issue 16062)
This commit is contained in:
@@ -507,6 +507,61 @@ function dol_print_object_info($object, $usetable = 0)
|
||||
}
|
||||
}
|
||||
|
||||
// User signature
|
||||
if (!empty($object->user_signature)) {
|
||||
if ($usetable) {
|
||||
print '<tr><td class="titlefield">';
|
||||
}
|
||||
print $langs->trans('SignedBy');
|
||||
if ($usetable) {
|
||||
print '</td><td>';
|
||||
} else {
|
||||
print ': ';
|
||||
}
|
||||
if (is_object($object->user_signature)) {
|
||||
if ($object->user_signature->id) {
|
||||
print $object->user_signature->getNomUrl(-1, '', 0, 0, 0);
|
||||
} else {
|
||||
print $langs->trans('Unknown');
|
||||
}
|
||||
} else {
|
||||
$userstatic = new User($db);
|
||||
$userstatic->fetch($object->user_signature);
|
||||
if ($userstatic->id) {
|
||||
print $userstatic->getNomUrl(-1, '', 0, 0, 0);
|
||||
} else {
|
||||
print $langs->trans('Unknown');
|
||||
}
|
||||
}
|
||||
if ($usetable) {
|
||||
print '</td></tr>';
|
||||
} else {
|
||||
print '<br>';
|
||||
}
|
||||
}
|
||||
|
||||
// Date signature
|
||||
if (!empty($object->date_signature)) {
|
||||
if ($usetable) {
|
||||
print '<tr><td class="titlefield">';
|
||||
}
|
||||
print $langs->trans('DateSigning');
|
||||
if ($usetable) {
|
||||
print '</td><td>';
|
||||
} else {
|
||||
print ': ';
|
||||
}
|
||||
print dol_print_date($object->date_signature, 'dayhour');
|
||||
if ($deltadateforuser) {
|
||||
print ' '.$langs->trans('CurrentHour').' / '.dol_print_date($object->date_signature,'dayhour', 'tzuserrel').' '.$langs->trans('ClientHour');
|
||||
}
|
||||
if ($usetable) {
|
||||
print '</td></tr>';
|
||||
} else {
|
||||
print '<br>';
|
||||
}
|
||||
}
|
||||
|
||||
// User close
|
||||
if (!empty($object->user_cloture) || !empty($object->user_closing)) {
|
||||
if (isset($object->user_cloture) && !empty($object->user_cloture)) {
|
||||
|
||||
Reference in New Issue
Block a user