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
7c4364b6
Commit
7c4364b6
authored
Dec 14, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update locf
parent
8921080a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
LOCFMR.js
src/container/MonthlyReport/LOCFMR.js
+3
-1
LOVMR.js
src/container/MonthlyReport/LOVMR.js
+2
-2
ListOfCreditFacilitiesMR.js
src/container/MonthlyReport/ListOfCreditFacilitiesMR.js
+4
-4
No files found.
src/container/MonthlyReport/LOCFMR.js
View file @
7c4364b6
...
@@ -350,6 +350,8 @@ export default class LOCF extends Component {
...
@@ -350,6 +350,8 @@ export default class LOCF extends Component {
}
}
})
})
console
.
log
(
dataTable
)
console
.
log
(
dataTable
)
// let sortingTable = dataTable.sort((a, b) => a[6].value - b[6].value)
// console.log(sortingTable);
let
lastArray
=
dataTable
[
res
.
length
-
1
]
let
lastArray
=
dataTable
[
res
.
length
-
1
]
this
.
setState
({
dataTable
,
diff
:
lastArray
[
47
],
loanTotal
:
lastArray
[
48
],
perBS
:
lastArray
[
49
],
loading
:
false
,
visibleLOCFMR
:
true
},
()
=>
{
this
.
setState
({
dataTable
,
diff
:
lastArray
[
47
],
loanTotal
:
lastArray
[
48
],
perBS
:
lastArray
[
49
],
loading
:
false
,
visibleLOCFMR
:
true
},
()
=>
{
this
.
props
.
sendToParent
(
dataTable
,
lastArray
,
'LOCF'
)
this
.
props
.
sendToParent
(
dataTable
,
lastArray
,
'LOCF'
)
...
@@ -1522,7 +1524,7 @@ export default class LOCF extends Component {
...
@@ -1522,7 +1524,7 @@ export default class LOCF extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
this
.
props
.
get_for
==
'view'
?
"black"
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
height
:
34
,
backgroundColor
:
(
t
ableMeta
.
rowData
[
11
]
==
'0.00'
||
tableMeta
.
rowData
[
11
]
==
''
)
&&
this
.
props
.
get_for
==
'edit'
?
'#ffac99'
:
'transparent'
}}
style
=
{{
color
:
this
.
props
.
get_for
==
'view'
?
"black"
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
height
:
34
,
backgroundColor
:
(
t
his
.
props
.
get_for
==
'edit'
&&
tableMeta
.
rowData
[
11
]
==
0.00
)
||
(
this
.
props
.
get_for
==
'edit'
&&
tableMeta
.
rowData
[
11
]
==
''
)
?
'#ffac99'
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
this
.
props
.
get_for
==
'view'
?
fixNumber
(
Number
(
value
),
2
)
:
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
value
),
2
)
:
Number
(
value
)
==
0
?
"0.00"
:
Number
(
value
)}
value
=
{
this
.
props
.
get_for
==
'view'
?
fixNumber
(
Number
(
value
),
2
)
:
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
value
),
2
)
:
Number
(
value
)
==
0
?
"0.00"
:
Number
(
value
)}
...
...
src/container/MonthlyReport/LOVMR.js
View file @
7c4364b6
...
@@ -1344,7 +1344,7 @@ export default class LOV extends Component {
...
@@ -1344,7 +1344,7 @@ export default class LOV extends Component {
{
tableMeta
.
rowData
[
0
]
===
8
||
tableMeta
.
rowData
[
0
]
===
9
?
{
tableMeta
.
rowData
[
0
]
===
8
||
tableMeta
.
rowData
[
0
]
===
9
?
null
:
null
:
<
div
style
=
{{
padding
:
0
,
margin
:
0
}}
>
<
div
style
=
{{
padding
:
0
,
margin
:
0
}}
>
<
textarea
disabled
=
{
this
.
props
.
get_for
==
'view'
}
style
=
{{
fontSize
:
12
,
borderColor
:
'white'
,
width
:
96
,
textAlign
:
'center'
,
justifyContent
:
'center'
,
padding
:
0
,
margin
:
0
,
color
:
this
.
props
.
get_for
==
'view'
?
"black"
:
"#5198ea"
,
backgroundColor
:
tableMeta
.
rowData
[
10
]
==
''
&&
this
.
props
.
get_for
==
'edit'
?
'#ffac99'
:
'white'
}}
type
=
"text"
defaultValue
=
{
tableMeta
.
rowData
[
10
]}
<
textarea
disabled
=
{
this
.
props
.
get_for
==
'view'
}
style
=
{{
fontSize
:
12
,
borderColor
:
'white'
,
width
:
96
,
textAlign
:
'center'
,
justifyContent
:
'center'
,
padding
:
0
,
margin
:
0
,
color
:
this
.
props
.
get_for
==
'view'
?
"black"
:
"#5198ea"
,
backgroundColor
:
tableMeta
.
rowData
[
10
]
==
''
||
tableMeta
.
rowData
[
10
]
==
'0.0'
&&
this
.
props
.
get_for
==
'edit'
?
'#ffac99'
:
'white'
}}
type
=
"text"
defaultValue
=
{
tableMeta
.
rowData
[
10
]}
onBlur
=
{(
event
)
=>
handleChange
(
event
.
target
.
value
,
tableMeta
,
tableMeta
.
columnIndex
)}
/
>
onBlur
=
{(
event
)
=>
handleChange
(
event
.
target
.
value
,
tableMeta
,
tableMeta
.
columnIndex
)}
/
>
<
/div
>
<
/div
>
// <Input
// <Input
...
@@ -1409,7 +1409,7 @@ export default class LOV extends Component {
...
@@ -1409,7 +1409,7 @@ export default class LOV extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
this
.
props
.
get_for
==
'view'
?
"black"
:
"#5198ea"
,
fontSize
:
13
,
textAlign
:
'center'
,
paddingBottom
:
18
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
height
:
30
,
backgroundColor
:
(
tableMeta
.
rowData
[
11
]
==
'0.00'
||
tableMeta
.
rowData
[
11
]
==
''
)
&&
this
.
props
.
get_for
==
'edit'
?
'#ffac99'
:
'transparent'
}}
style
=
{{
color
:
this
.
props
.
get_for
==
'view'
?
"black"
:
"#5198ea"
,
fontSize
:
13
,
textAlign
:
'center'
,
paddingBottom
:
18
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
(
this
.
props
.
get_for
==
'edit'
&&
tableMeta
.
rowData
[
11
]
==
0.00
)
||
(
this
.
props
.
get_for
==
'edit'
&&
tableMeta
.
rowData
[
11
]
==
''
)
?
'#ffac99'
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
decimalScale
=
{
this
.
props
.
defaultCurrency
.
id
==
1
?
2
:
16
}
decimalScale
=
{
this
.
props
.
defaultCurrency
.
id
==
1
?
2
:
16
}
...
...
src/container/MonthlyReport/ListOfCreditFacilitiesMR.js
View file @
7c4364b6
...
@@ -415,7 +415,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -415,7 +415,7 @@ export default class ListOfCreditFacilities extends Component {
console
.
log
(
body
);
console
.
log
(
body
);
console
.
log
(
error
);
console
.
log
(
error
);
if
(
error
&&
type
==
'submitted'
)
{
if
(
error
&&
type
==
'submitted'
)
{
this
.
setState
({
handleDoubleClick
:
0
,
saveDraft
:
false
,
saveComp
:
true
,
loading
:
false
,
snekbar
:
true
,
snekbarMsg
:
'Data Incomplete'
,
handleDoubleClick
:
0
})
this
.
setState
({
handleDoubleClick
:
0
,
saveDraft
:
false
,
saveComp
:
true
,
loading
Child
:
false
,
snekbar
:
true
,
snekbarMsg
:
'Data Incomplete'
,
handleDoubleClick
:
0
})
}
else
{
}
else
{
api
.
create
(
'UPLOAD'
).
createMonthlyReportLOCF
(
body
).
then
(
response
=>
{
api
.
create
(
'UPLOAD'
).
createMonthlyReportLOCF
(
body
).
then
(
response
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
...
@@ -535,7 +535,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -535,7 +535,7 @@ export default class ListOfCreditFacilities extends Component {
console
.
log
(
body
);
console
.
log
(
body
);
console
.
log
(
error
);
console
.
log
(
error
);
if
(
error
&&
type
==
'submitted'
)
{
if
(
error
&&
type
==
'submitted'
)
{
this
.
setState
({
handleDoubleClick
:
0
,
saveDraft
:
false
,
saveComp
:
true
,
loading
:
false
,
snekbar
:
true
,
snekbarMsg
:
'Data Incomplete'
,
handleDoubleClick
:
0
})
this
.
setState
({
handleDoubleClick
:
0
,
saveDraft
:
false
,
saveComp
:
true
,
loading
Child
:
false
,
snekbar
:
true
,
snekbarMsg
:
'Data Incomplete'
,
handleDoubleClick
:
0
})
}
else
{
}
else
{
api
.
create
(
'UPLOAD'
).
createMonthlyReportLOV
(
body
).
then
(
response
=>
{
api
.
create
(
'UPLOAD'
).
createMonthlyReportLOV
(
body
).
then
(
response
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
...
@@ -1221,7 +1221,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -1221,7 +1221,7 @@ export default class ListOfCreditFacilities extends Component {
}
}
console
.
log
(
body
);
console
.
log
(
body
);
if
(
error
&&
type
==
'submitted'
)
{
if
(
error
&&
type
==
'submitted'
)
{
this
.
setState
({
handleDoubleClick
:
0
,
saveDraft
:
false
,
saveComp
:
true
,
loading
:
false
,
snekbar
:
true
,
snekbarMsg
:
'Data Incomplete'
,
handleDoubleClick
:
0
})
this
.
setState
({
handleDoubleClick
:
0
,
saveDraft
:
false
,
saveComp
:
true
,
loading
Child
:
false
,
snekbar
:
true
,
snekbarMsg
:
'Data Incomplete'
,
handleDoubleClick
:
0
})
}
else
{
}
else
{
api
.
create
(
'UPLOAD'
).
uploadMonthlyReportLOCF
(
body
).
then
(
response
=>
{
api
.
create
(
'UPLOAD'
).
uploadMonthlyReportLOCF
(
body
).
then
(
response
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
...
@@ -1353,7 +1353,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -1353,7 +1353,7 @@ export default class ListOfCreditFacilities extends Component {
}
}
console
.
log
(
body
);
console
.
log
(
body
);
if
(
error
&&
type
==
'submitted'
)
{
if
(
error
&&
type
==
'submitted'
)
{
this
.
setState
({
handleDoubleClick
:
0
,
saveDraft
:
false
,
saveComp
:
true
,
loading
:
false
,
snekbar
:
true
,
snekbarMsg
:
'Data Incomplete'
,
handleDoubleClick
:
0
})
this
.
setState
({
handleDoubleClick
:
0
,
saveDraft
:
false
,
saveComp
:
true
,
loading
Child
:
false
,
snekbar
:
true
,
snekbarMsg
:
'Data Incomplete'
,
handleDoubleClick
:
0
})
}
else
{
}
else
{
api
.
create
(
'UPLOAD'
).
createMonthlyReportLOV
(
body
).
then
(
response
=>
{
api
.
create
(
'UPLOAD'
).
createMonthlyReportLOV
(
body
).
then
(
response
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
...
...
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