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
dca149f8
Commit
dca149f8
authored
Dec 02, 2024
by
Chanon.u
Browse files
Change condition for validate template before send
For cancel template
parent
15ad9d03
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Livewire/Pages/ManualResponse/ManualResponse.php
View file @
dca149f8
...
@@ -279,7 +279,7 @@ class ManualResponse extends Component
...
@@ -279,7 +279,7 @@ class ManualResponse extends Component
}
}
//Validate profile production
//Validate profile production
if
(
in_array
(
$messageType
,
[
'XCDA'
,
'XCDR'
])
||
$declarationNo
==
''
){
if
(
in_array
(
$messageType
,
[
'XCDA'
,
'XCDR'
])
&&
$declarationNo
==
''
){
return
[
return
[
"success"
=>
false
,
"success"
=>
false
,
'message'
=>
'Cancel template is required "Declaration Number" field.'
'message'
=>
'Cancel template is required "Declaration Number" field.'
...
...
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