Align fisik result headers
This commit is contained in:
@@ -2454,11 +2454,12 @@ class Resultentry extends MY_Controller
|
||||
));
|
||||
$this->soresultlog->log_result($data_log, $trx['re_id'], $userid);
|
||||
|
||||
$sql = "SELECT * FROM so_resultentry WHERE So_ResultEntryID = {$last_id} LIMIT 1";
|
||||
$fresh_header = $this->db_onedev->query($sql)->row_array();
|
||||
$sql = "SELECT * FROM so_resultentry WHERE So_ResultEntryID = {$last_id} LIMIT 1";
|
||||
$fresh_header = $this->db_onedev->query($sql)->row_array();
|
||||
$fresh_header['status_name'] = $this->alias_resultentry_status_name(isset($fresh_header['So_ResultEntryStatus']) ? $fresh_header['So_ResultEntryStatus'] : null);
|
||||
|
||||
$result = array(
|
||||
"total" => 1,
|
||||
$result = array(
|
||||
"total" => 1,
|
||||
"records" => array('status' => 'OK'),
|
||||
"header" => $fresh_header,
|
||||
"numbering" => $prm['trx_numbering'],
|
||||
@@ -5290,6 +5291,7 @@ class Resultentry extends MY_Controller
|
||||
$this->db_onedev->trans_commit();
|
||||
$sql = "SELECT * FROM so_resultentry WHERE So_ResultEntryID = ? LIMIT 1";
|
||||
$fresh_header = $this->db_onedev->query($sql, array($prm['trx']['re_id']))->row_array();
|
||||
$fresh_header['status_name'] = $this->alias_resultentry_status_name(isset($fresh_header['So_ResultEntryStatus']) ? $fresh_header['So_ResultEntryStatus'] : null);
|
||||
|
||||
$result = array(
|
||||
"total" => 1,
|
||||
@@ -5300,9 +5302,24 @@ class Resultentry extends MY_Controller
|
||||
$this->sys_ok($result);
|
||||
exit;
|
||||
}
|
||||
|
||||
function add_action_log($act, $re_id, $userid)
|
||||
{
|
||||
|
||||
private function alias_resultentry_status_name($status)
|
||||
{
|
||||
if ($status === 'NEW') {
|
||||
return 'BARU';
|
||||
}
|
||||
if ($status === 'VAL1') {
|
||||
return 'VALIDASI';
|
||||
}
|
||||
if ($status === 'VAL2') {
|
||||
return 'VERIFIKASI';
|
||||
}
|
||||
|
||||
return $status;
|
||||
}
|
||||
|
||||
function add_action_log($act, $re_id, $userid)
|
||||
{
|
||||
$sql = "INSERT INTO so_reactionlog(
|
||||
So_REActionLogDate,
|
||||
So_REActionLogSo_ResultEntryID,
|
||||
|
||||
Reference in New Issue
Block a user