Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sarun Mungthanya
SpnPatch-Laravel
Commits
14743758
Commit
14743758
authored
Dec 02, 2024
by
Chanon.u
Browse files
Add gen error date and lock data for refere
parent
dca149f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/ManualResponse/GenXmlController.php
View file @
14743758
...
...
@@ -61,7 +61,7 @@ class GenXmlController extends Controller
$value
=
$this
->
generateGCLNo
();
}
if
(
in_array
(
$key
,
[
'AuditDateTime'
])){
if
(
in_array
(
$key
,
[
'AuditDateTime'
,
'ErrorDate'
])){
$value
=
Carbon
::
now
()
->
setTimezone
(
'GMT+7'
)
->
format
(
'Y-m-d\TH:i:s'
);
}
$child
=
$xml
->
addChild
(
$key
);
...
...
app/Http/Livewire/Pages/ManualResponse/ManualResponse.php
View file @
14743758
...
...
@@ -137,6 +137,10 @@ class ManualResponse extends Component
if
(
isset
(
$tmp_xmlData
[
$key
])
&&
!
in_array
(
$key
,
$this
->
listNonLockData
)){
$this
->
xmlData
[
$key
]
=
$tmp_xmlData
[
$key
];
}
if
(
isset
(
$tmp_xmlData
[
'ReferenceNumber'
])
&&
isset
(
$this
->
xmlData
[
'ReferenceNo'
])){
$this
->
xmlData
[
'ReferenceNo'
]
=
$tmp_xmlData
[
'ReferenceNumber'
];
}
}
}
...
...
@@ -258,7 +262,7 @@ class ManualResponse extends Component
private
function
validateBeforeSend
(){
$messageType
=
$this
->
xmlData
[
'MessageType'
]
??
''
;
$referenceNo
=
$this
->
xmlData
[
'ReferenceNumber'
]
??
''
;
$referenceNo
=
$this
->
xmlData
[
'ReferenceNumber'
]
??
$this
->
xmlData
[
'ReferenceNo'
]
??
''
;
$declarationNo
=
$this
->
xmlData
[
'DeclarationNumber'
]
??
''
;
$profileProds
=
ConfListProfile
::
where
(
'type'
,
'PROD'
)
->
pluck
(
'name'
)
->
toArray
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment