Commit ffb70060 authored by Chanon.u's avatar Chanon.u
Browse files

Add log message type

parent af5aebe3
......@@ -228,10 +228,12 @@ class ManualResponse extends Component
$error = curl_error($ch);
curl_close($ch);
$messageType = MasterMessages::where('id', $this->messageId)->value('name') ?? '';
TabManualResponseLog::create([
'uid' => $currentUser->id,
'title' => 'Send Manual Response',
'detail' => "Username: " . $userConnect->username . "\nLink: " . $userConnect->link,
'message_type' => $messageType,
'xml_content' => base64_encode($this->xmlContent),
'reference_number' => $this->xmlData['ReferenceNumber'] ?? $this->xmlData['ReferenceNo'] ?? '',
'declaration_number' => $this->xmlData['DeclarationNumber'] ?? $this->xmlData['DocumentNumber'] ?? '',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment