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
163fe1c8
Commit
163fe1c8
authored
Dec 12, 2024
by
Sarun Mungthanya
Browse files
issue fiel format
parent
bbb4c63d
Changes
1
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/MasterFileController.php
View file @
163fe1c8
...
@@ -269,7 +269,7 @@ class MasterFileController extends Controller
...
@@ -269,7 +269,7 @@ class MasterFileController extends Controller
// $fieldValue = substr($text, $Y, $type);
// $fieldValue = substr($text, $Y, $type);
$Y
+=
$type
;
$Y
+=
$type
;
if
(
$fieldFormat
[
'
FORMAT
'
]
===
'date'
)
{
if
(
$fieldFormat
[
'
format
'
]
===
'date'
)
{
$fieldValue
=
$this
->
convertDate
(
$fieldValue
);
$fieldValue
=
$this
->
convertDate
(
$fieldValue
);
}
}
...
@@ -295,7 +295,7 @@ class MasterFileController extends Controller
...
@@ -295,7 +295,7 @@ class MasterFileController extends Controller
$fieldValue
=
mb_substr
(
$text
,
$X
,
$type
,
'UTF-8'
);
$fieldValue
=
mb_substr
(
$text
,
$X
,
$type
,
'UTF-8'
);
// $fieldValue = substr($text, $Y, $type);
// $fieldValue = substr($text, $Y, $type);
$X
+=
$type
;
$X
+=
$type
;
if
(
$fieldFormat
[
'
FORMAT
'
]
===
'date'
)
{
if
(
$fieldFormat
[
'
format
'
]
===
'date'
)
{
$fieldValue
=
$this
->
convertDate
(
$fieldValue
);
$fieldValue
=
$this
->
convertDate
(
$fieldValue
);
}
}
...
@@ -343,7 +343,7 @@ class MasterFileController extends Controller
...
@@ -343,7 +343,7 @@ class MasterFileController extends Controller
$fieldValue
=
mb_substr
(
$text
,
$Z
,
$type
);
$fieldValue
=
mb_substr
(
$text
,
$Z
,
$type
);
$Z
+=
$type
;
$Z
+=
$type
;
if
(
$fieldFormat
[
'
FORMAT
'
]
===
'date'
)
{
if
(
$fieldFormat
[
'
format
'
]
===
'date'
)
{
$fieldValue
=
$this
->
convertDate
(
$fieldValue
);
$fieldValue
=
$this
->
convertDate
(
$fieldValue
);
}
}
...
...
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