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
34c8969f
Commit
34c8969f
authored
Apr 29, 2021
by
d.arizona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CF RO
parent
55e0ea03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
+20
-10
CashFlowRO.js
src/container/RollingOutlook/CashFlowRO.js
+20
-10
No files found.
src/container/RollingOutlook/CashFlowRO.js
View file @
34c8969f
...
@@ -388,6 +388,7 @@ export default class CashFlow extends Component {
...
@@ -388,6 +388,7 @@ export default class CashFlow extends Component {
const handleValueFormula = (value, tableMeta, column, periode, forecast) => {
const handleValueFormula = (value, tableMeta, column, periode, forecast) => {
// console.log(tableMeta.rowData[5])
// console.log(tableMeta.rowData[5])
// console.log(column)
// console.log(column)
loading = true
loading = true
let splitFormula = String(tableMeta.rowData[3]).split(/([()@])/)
let splitFormula = String(tableMeta.rowData[3]).split(/([()@])/)
let baru = []
let baru = []
...
@@ -504,10 +505,10 @@ export default class CashFlow extends Component {
...
@@ -504,10 +505,10 @@ export default class CashFlow extends Component {
}
}
}
}
} else {
} else {
let
indexID
=
dataTable2
.
findIndex
((
val
)
=>
val
[
22
]
==
item
)
let indexID = dataTable2.findIndex((val) => val[
18
] == item)
if (indexID !== -1) {
if (indexID !== -1) {
let valuezz = dataTable2[indexID][column].value == undefined ? dataTable2[indexID][column] : dataTable2[indexID][column].value
let valuezz = dataTable2[indexID][column].value == undefined ? dataTable2[indexID][column] : dataTable2[indexID][column].value
if
(
item
==
dataTable2
[
tableMeta
.
rowIndex
][
22
])
{
if (item == dataTable2[tableMeta.rowIndex][
18
]) {
anjay.push(0)
anjay.push(0)
} else {
} else {
anjay.push(valuezz == "" ? 0 : valuezz)
anjay.push(valuezz == "" ? 0 : valuezz)
...
@@ -517,6 +518,7 @@ export default class CashFlow extends Component {
...
@@ -517,6 +518,7 @@ export default class CashFlow extends Component {
anjay.push(-1)
anjay.push(-1)
}
}
}
}
}
}
}
}
})
})
...
@@ -678,15 +680,23 @@ export default class CashFlow extends Component {
...
@@ -678,15 +680,23 @@ export default class CashFlow extends Component {
total = R.equals(total, NaN) ? "0.0" : total
total = R.equals(total, NaN) ? "0.0" : total
// if (column == 9 && tableMeta.rowData[1] == 3243762) {
// console.log(tableMeta.rowData)
// console.log(splitFormula)
// console.log(baru)
// console.log(anjay)
// console.log(anjay2)
// console.log(total)
// }
if
(
tableMeta
.
rowData
[
5
]
==
'2.1 Additional fixed assets and CIP'
&&
column
==
7
)
{
//
if (tableMeta.rowData[5] == '2.1 Additional fixed assets and CIP' && column == 7) {
console
.
log
(
tableMeta
.
rowData
)
//
console.log(tableMeta.rowData)
console
.
log
(
splitFormula
)
//
console.log(splitFormula)
console
.
log
(
baru
)
//
console.log(baru)
console
.
log
(
anjay
)
//
console.log(anjay)
console
.
log
(
anjay2
)
//
console.log(anjay2)
console
.
log
(
total
)
//
console.log(total)
}
//
}
if (dataTable2[tableMeta.rowIndex][column].value == undefined) {
if (dataTable2[tableMeta.rowIndex][column].value == undefined) {
dataTable2[tableMeta.rowIndex][column] = total
dataTable2[tableMeta.rowIndex][column] = 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