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
8eadc59d
Commit
8eadc59d
authored
Mar 07, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue formula
parent
01971cb0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
13 deletions
+30
-13
CashFlowOLPA.js
src/container/OutlookPA/CashFlowOLPA.js
+10
-2
OutlookPA.js
src/container/OutlookPA/OutlookPA.js
+16
-6
CashFlowRO.js
src/container/RollingOutlook/CashFlowRO.js
+4
-5
No files found.
src/container/OutlookPA/CashFlowOLPA.js
View file @
8eadc59d
...
...
@@ -722,8 +722,16 @@ export default class CashFlow extends Component {
let
totalBeginning
=
dataTable2
[
tableMeta
.
rowIndex
][
18
]
=
dataTable2
[
tableMeta
.
rowIndex
][
6
].
value
return
totalBeginning
}
else
if
(
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"cash at the end of the period"
)
{
let
totalEnd
=
dataTable2
[
tableMeta
.
rowIndex
][
18
]
=
dataTable2
[
tableMeta
.
rowIndex
][
17
].
value
return
totalEnd
let
value
=
Number
(
dataTable2
[
tableMeta
.
rowIndex
-
1
][
18
])
+
Number
(
dataTable2
[
tableMeta
.
rowIndex
-
2
][
18
])
return
R
.
equals
(
value
,
NaN
)
?
"0.0"
:
(
R
.
equals
(
value
,
Infinity
)
?
"0.0"
:
(
value
==
"-Infinity"
?
"0.0"
:
value
))
}
else
if
(
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"control (should be nil)"
)
{
// console.log(dataTable2[tableMeta.rowIndex - 2][tableMeta.columnIndex + 11].value);
let
cashOfTheEndFy
=
Number
(
dataTable2
[
tableMeta
.
rowIndex
-
3
][
18
])
+
Number
(
dataTable2
[
tableMeta
.
rowIndex
-
4
][
18
])
let
cahsOfTheEndDec
=
Number
(
dataTable2
[
tableMeta
.
rowIndex
-
2
][
tableMeta
.
columnIndex
+
11
].
value
)
// console.log(cashOfTheEndFy);
console
.
log
(
cahsOfTheEndDec
);
let
value
=
Number
(
cashOfTheEndFy
)
-
Number
(
cahsOfTheEndDec
);
return
R
.
equals
(
value
,
NaN
)
?
"0.0"
:
(
R
.
equals
(
value
,
Infinity
)
?
"0.0"
:
(
value
==
"-Infinity"
?
"0.0"
:
value
))
}
else
{
dataTable2
[
tableMeta
.
rowIndex
][
18
]
=
total
return
total
...
...
src/container/OutlookPA/OutlookPA.js
View file @
8eadc59d
...
...
@@ -123,7 +123,7 @@ export default class OutlookPA extends Component {
{
name
:
'Approved'
,
value
:
'approved'
},
]
api
.
create
().
checkApproverOLPA
().
then
(
response
=>
{
// console.log(response);
if
(
response
.
data
.
status
===
'success'
)
{
if
(
response
.
data
.
data
.
is_approver
===
true
)
{
this
.
setState
({
isApprover
:
true
,
checkApprover
:
true
,
listStatus
:
listStatus1
,
selectedStatus
:
listStatus1
},
()
=>
this
.
getPeriode
())
...
...
@@ -131,6 +131,16 @@ export default class OutlookPA extends Component {
this
.
setState
({
isApprover
:
false
,
checkApprover
:
false
,
listStatus
:
listStatus2
,
selectedStatus
:
listStatus2
},
()
=>
this
.
getPeriode
())
}
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
},
()
=>
{
if
(
response
.
data
.
message
.
includes
(
"Someone Logged In"
)
||
response
.
data
.
message
.
includes
(
"Token Expired"
))
{
setTimeout
(()
=>
{
localStorage
.
removeItem
(
Constant
.
TOKEN
)
window
.
location
.
reload
();
},
1000
);
}
})
}
})
}
...
...
src/container/RollingOutlook/CashFlowRO.js
View file @
8eadc59d
...
...
@@ -726,17 +726,16 @@ export default class CashFlow extends Component {
let
totalBeginning
=
dataTable2
[
tableMeta
.
rowIndex
][
18
]
=
dataTable2
[
tableMeta
.
rowIndex
][
6
].
value
return
totalBeginning
}
else
if
(
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"cash at the end of the period"
)
{
console
.
log
(
tableMeta
.
rowIndex
);
let
value
=
Number
(
dataTable2
[
tableMeta
.
rowIndex
-
1
][
18
])
+
Number
(
dataTable2
[
tableMeta
.
rowIndex
-
2
][
18
])
return
R
.
equals
(
value
,
NaN
)
?
"0.0"
:
(
R
.
equals
(
value
,
Infinity
)
?
"0.0"
:
(
value
==
"-Infinity"
?
"0.0"
:
value
))
}
else
if
(
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"control (should be nil)"
)
{
console
.
log
(
tableMeta
);
// console.log(dataTable2[tableMeta.rowIndex - 2][tableMeta.columnIndex + 11].value
);
let
cashOfTheEndFy
=
Number
(
dataTable2
[
tableMeta
.
rowIndex
-
3
][
18
])
+
Number
(
dataTable2
[
tableMeta
.
rowIndex
-
4
][
18
])
let
cahsOfTheEndDec
=
Number
(
dataTable2
[
tableMeta
.
rowIndex
-
2
][
18
]
)
let
cahsOfTheEndDec
=
Number
(
dataTable2
[
tableMeta
.
rowIndex
-
2
][
tableMeta
.
columnIndex
+
11
].
value
)
// console.log(cashOfTheEndFy);
// console.log(cahsOfTheEndDec);
let
value
=
Number
(
cashOfTheEndFy
)
-
Number
(
cahsOfTheEndDec
);
// console.log(tablSeMeta.rowIndex
);
console
.
log
(
value
);
return
R
.
equals
(
value
,
NaN
)
?
"0.0"
:
(
R
.
equals
(
value
,
Infinity
)
?
"0.0"
:
(
value
==
"-Infinity"
?
"0.0"
:
value
))
}
else
{
dataTable2
[
tableMeta
.
rowIndex
][
18
]
=
total
...
...
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