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
7b865917
Commit
7b865917
authored
Dec 06, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-riri' into 'ENV-DEV'
lov error See merge request
!2226
parents
0e23898d
e0737fb8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
ListOfCreditFacilitiesMR.js
src/container/MonthlyReport/ListOfCreditFacilitiesMR.js
+1
-0
ProfitLossMR.js
src/container/MonthlyReport/ProfitLossMR.js
+3
-0
No files found.
src/container/MonthlyReport/ListOfCreditFacilitiesMR.js
View file @
7b865917
...
@@ -687,6 +687,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -687,6 +687,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
);
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
:
false
,
snekbar
:
true
,
snekbarMsg
:
'Data Incomplete'
,
handleDoubleClick
:
0
})
}
else
{
}
else
{
...
...
src/container/MonthlyReport/ProfitLossMR.js
View file @
7b865917
...
@@ -326,6 +326,7 @@ export default class ProfitLossMR extends Component {
...
@@ -326,6 +326,7 @@ export default class ProfitLossMR extends Component {
// if (err === true) {
// if (err === true) {
// this.setState({ bebas: true })
// this.setState({ bebas: true })
// }
// }
console
.
log
(
dataTable
);
this
.
setState
({
dataTable
,
loading
:
false
,
buttonError
:
true
,
saveDraft
:
true
,
refresh
:
false
})
this
.
setState
({
dataTable
,
loading
:
false
,
buttonError
:
true
,
saveDraft
:
true
,
refresh
:
false
})
}
else
{
}
else
{
this
.
setState
({
loading
:
false
,
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
},
()
=>
{
this
.
setState
({
loading
:
false
,
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
},
()
=>
{
...
@@ -968,12 +969,14 @@ export default class ProfitLossMR extends Component {
...
@@ -968,12 +969,14 @@ export default class ProfitLossMR extends Component {
// }
// }
dataTable2
[
tableMeta
.
rowIndex
].
map
((
item
,
index
)
=>
{
dataTable2
[
tableMeta
.
rowIndex
].
map
((
item
,
index
)
=>
{
if
(
index
==
10
)
{
if
(
index
==
10
)
{
// ytd = ytd actual balikan be + actual
let
itemActual
=
item
==
undefined
||
item
==
""
||
item
==
"undefined"
?
0.0
:
item
let
itemActual
=
item
==
undefined
||
item
==
""
||
item
==
"undefined"
?
0.0
:
item
total
=
Number
(
tableMeta
.
rowData
[
23
])
+
Number
(
itemActual
)
total
=
Number
(
tableMeta
.
rowData
[
23
])
+
Number
(
itemActual
)
}
}
})
})
if
(
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"sales price"
)
{
if
(
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"sales price"
)
{
// Sales Price = Unit Business / Sales Volume
let
value
=
Number
(
dataTable2
[
tableMeta
.
rowIndex
-
2
][
11
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
-
1
][
11
])
let
value
=
Number
(
dataTable2
[
tableMeta
.
rowIndex
-
2
][
11
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
-
1
][
11
])
dataTable2
[
tableMeta
.
rowIndex
][
11
]
=
R
.
equals
(
value
,
NaN
)
?
"0.0"
:
(
R
.
equals
(
value
,
Infinity
)
?
"0.0"
:
(
value
==
"-Infinity"
?
"0.0"
:
value
))
dataTable2
[
tableMeta
.
rowIndex
][
11
]
=
R
.
equals
(
value
,
NaN
)
?
"0.0"
:
(
R
.
equals
(
value
,
Infinity
)
?
"0.0"
:
(
value
==
"-Infinity"
?
"0.0"
:
value
))
return
R
.
equals
(
value
,
NaN
)
?
"0.0"
:
(
R
.
equals
(
value
,
Infinity
)
?
"0.0"
:
(
value
==
"-Infinity"
?
"0.0"
:
value
))
return
R
.
equals
(
value
,
NaN
)
?
"0.0"
:
(
R
.
equals
(
value
,
Infinity
)
?
"0.0"
:
(
value
==
"-Infinity"
?
"0.0"
:
value
))
...
...
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