feat: add datetime to val1 and val2 on report - Display validation timestamps in dd-MM-yyyy hh:mm format
This commit is contained in:
parent
f2e01adfc5
commit
0d8e998c50
6
TODO.md
6
TODO.md
@ -3,9 +3,6 @@
|
|||||||
**Last Updated:** 20260212
|
**Last Updated:** 20260212
|
||||||
|
|
||||||
Pending:
|
Pending:
|
||||||
- preview result for validate for su adm lab
|
|
||||||
- auto generate pdf after 2 val
|
|
||||||
- add datetime val1 val2
|
|
||||||
- sample other for MCU is annoying
|
- sample other for MCU is annoying
|
||||||
- report2 go to cmod
|
- report2 go to cmod
|
||||||
|
|
||||||
@ -42,3 +39,6 @@ Completed:
|
|||||||
- Print Result Audit (Track when result reports are printed/exported, log user and timestamp)
|
- Print Result Audit (Track when result reports are printed/exported, log user and timestamp)
|
||||||
- Test and fix Reprint label
|
- Test and fix Reprint label
|
||||||
- fasten the load of val page
|
- fasten the load of val page
|
||||||
|
- preview result for validate for su adm lab
|
||||||
|
- auto generate pdf after 2 val from preview
|
||||||
|
- add datetime val1 val2
|
||||||
@ -46,6 +46,8 @@ class ReportHelper
|
|||||||
'valBy' => $valBy,
|
'valBy' => $valBy,
|
||||||
'val1User' => $valData['VAL1USER'] ?? '',
|
'val1User' => $valData['VAL1USER'] ?? '',
|
||||||
'val2User' => $valData['VAL2USER'] ?? '',
|
'val2User' => $valData['VAL2USER'] ?? '',
|
||||||
|
'val1Date' => isset($valData['VAL1DATE']) ? date('d-m-Y H:i', strtotime($valData['VAL1DATE'])) : '',
|
||||||
|
'val2Date' => isset($valData['VAL2DATE']) ? date('d-m-Y H:i', strtotime($valData['VAL2DATE'])) : '',
|
||||||
'date' => date('d-m-Y H:i'),
|
'date' => date('d-m-Y H:i'),
|
||||||
'collectionDate' => $collectionDate
|
'collectionDate' => $collectionDate
|
||||||
];
|
];
|
||||||
|
|||||||
@ -84,7 +84,7 @@ $i = 1;
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<pre class='small'>Collected on <?= esc($collData) ?>
|
<pre class='small'>Collected on <?= esc($collData) ?>
|
||||||
Received on <?= esc($recvData) ?>
|
Received on <?= esc($recvData) ?>
|
||||||
Val1 By : <?= esc($val1User) ?> | Val2 By : <?= esc($val2User) ?>
|
Val1 By : <?= esc($val1User) ?> (<?= esc($val1Date) ?>) | Val2 By : <?= esc($val2User) ?> (<?= esc($val2Date) ?>)
|
||||||
Page <?= $i ?>/<?= $npage ?> Printed By : <?= esc($valBy) ?> <?= esc($date) ?></pre>
|
Page <?= $i ?>/<?= $npage ?> Printed By : <?= esc($valBy) ?> <?= esc($date) ?></pre>
|
||||||
</td>
|
</td>
|
||||||
<td class='right'>
|
<td class='right'>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user