Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Tia-dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dida Adams Arizona
Tia-dev
Commits
e05d96a6
Commit
e05d96a6
authored
Dec 15, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ENV-DEV' into 'ENV-DEPLOYMENT'
validate save lov See merge request
!2257
parents
0116d9d5
4ab49346
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
5 deletions
+18
-5
ListOfCreditFacilitiesMR.js
src/container/MonthlyReport/ListOfCreditFacilitiesMR.js
+18
-5
No files found.
src/container/MonthlyReport/ListOfCreditFacilitiesMR.js
View file @
e05d96a6
...
@@ -474,11 +474,15 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -474,11 +474,15 @@ export default class ListOfCreditFacilities extends Component {
console
.
log
(
dataTable2
);
console
.
log
(
dataTable2
);
dataTable2
.
map
(
i
=>
{
dataTable2
.
map
(
i
=>
{
if
(
i
[
0
]
==
3
)
{
if
(
i
[
0
]
==
3
)
{
if
(
i
[
6
]
==
null
||
i
[
7
]
==
null
||
i
[
8
]
==
""
||
i
[
9
]
==
""
||
i
[
10
]
==
""
||
i
[
11
]
==
""
||
i
[
12
]
==
""
)
{
if
(
i
[
6
]
==
null
||
i
[
7
]
==
null
||
i
[
9
]
==
""
||
i
[
10
]
==
""
||
i
[
11
]
==
""
||
i
[
12
]
==
""
)
{
console
.
log
(
'masuk sini'
);
error
=
true
error
=
true
}
}
console
.
log
(
i
[
7
]?.
value
);
if
(
i
[
8
]
==
''
&&
i
[
7
]?.
value
==
'Time deposit'
||
i
[
7
]?.
value
==
'N/A'
)
{
if
(
i
[
7
].
value
==
'N/A'
||
i
[
7
].
value
==
'Time deposit'
&&
i
[
8
]
==
''
)
{
error
=
false
}
else
{
error
=
true
error
=
true
}
}
let
tgl
=
String
(
i
[
9
]).
split
(
'-'
)
let
tgl
=
String
(
i
[
9
]).
split
(
'-'
)
...
@@ -929,13 +933,19 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -929,13 +933,19 @@ export default class ListOfCreditFacilities extends Component {
bankNameEmpty
=
true
bankNameEmpty
=
true
}
}
if
(
i
[
0
]
==
3
)
{
if
(
i
[
0
]
==
3
)
{
if
(
i
[
6
]
==
null
||
i
[
7
]
==
null
||
i
[
8
]
==
""
||
i
[
9
]
==
""
||
i
[
10
]
==
""
||
i
[
11
]
==
""
||
i
[
12
]
==
""
)
{
if
(
i
[
6
]
==
null
||
i
[
7
]
==
null
||
i
[
9
]
==
""
||
i
[
10
]
==
""
||
i
[
11
]
==
""
||
i
[
12
]
==
""
)
{
error
=
true
error
=
true
}
}
if
(
i
[
8
]
==
''
&&
i
[
7
]?.
value
==
'Time deposit'
||
i
[
7
]?.
value
==
'N/A'
)
{
if
(
i
[
7
].
value
==
'N/A'
||
i
[
7
].
value
==
'Time deposit'
&&
i
[
8
]
==
''
)
{
error
=
false
}
else
{
error
=
true
error
=
true
}
}
// if (i[7].value == 'Government bonds' || i[7].value == 'Stocks' || i[7].value == 'Mutual funds' || i[7].value == 'Investment in associate' || i[7].value == 'Investment in joint venture' || i[7].value == 'Investment in subsidiary' || i[7].value == 'Corporate bonds' || i[7].value == 'Others' && i[8] == '' ) {
// error = true
// }
let
tgl
=
String
(
i
[
9
]).
split
(
'-'
)
let
tgl
=
String
(
i
[
9
]).
split
(
'-'
)
let
checkUndifined
=
tgl
.
findIndex
((
val
)
=>
val
==
undefined
)
let
checkUndifined
=
tgl
.
findIndex
((
val
)
=>
val
==
undefined
)
if
(
this
.
props
.
defaultCurrency
.
id
==
2
)
{
if
(
this
.
props
.
defaultCurrency
.
id
==
2
)
{
...
@@ -988,6 +998,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -988,6 +998,7 @@ export default class ListOfCreditFacilities extends Component {
"total_loan"
:
this
.
state
.
totalLoanLOV
"total_loan"
:
this
.
state
.
totalLoanLOV
}
}
console
.
log
(
body
);
console
.
log
(
body
);
console
.
log
(
error
);
api
.
create
().
validateSaveLOV
(
body
).
then
((
response
)
=>
{
api
.
create
().
validateSaveLOV
(
body
).
then
((
response
)
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
let
dataTablelov
=
[]
let
dataTablelov
=
[]
...
@@ -1297,7 +1308,9 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -1297,7 +1308,9 @@ export default class ListOfCreditFacilities extends Component {
error
=
true
error
=
true
}
}
if
(
i
[
8
]
==
''
&&
i
[
7
]?.
value
==
'Time deposit'
||
i
[
7
]?.
value
==
'N/A'
)
{
if
(
i
[
7
].
value
==
'N/A'
||
i
[
7
].
value
==
'Time deposit'
&&
i
[
8
]
==
''
)
{
error
=
false
}
else
{
error
=
true
error
=
true
}
}
let
tgl
=
String
(
i
[
9
]).
split
(
'-'
)
let
tgl
=
String
(
i
[
9
]).
split
(
'-'
)
...
...
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