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
4b62c50e
Commit
4b62c50e
authored
Feb 28, 2021
by
Dida Adams Arizona
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'GGMAC' into 'master'
update See merge request
!1230
parents
bd70bae7
1237bf43
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
32 deletions
+40
-32
BudgetTahunan.js
src/container/BudgetTahunan.js
+40
-32
No files found.
src/container/BudgetTahunan.js
View file @
4b62c50e
...
...
@@ -533,6 +533,7 @@ export default class BudgetTahunan extends Component {
// // console.log(this.state.btnApprove)
this
.
historyApproval
()
this
.
getLatestPeriodSubmit
()
this
.
getCashFlow
(
type
)
if
(
type
!=
undefined
)
{
this
.
getCashFlow
(
type
)
this
.
getPL
(
type
)
...
...
@@ -1031,12 +1032,14 @@ export default class BudgetTahunan extends Component {
listCF
.
push
(
item
)
})
this
.
setState
({
dbCF
:
listCF
},
()
=>
{
this
.
payloadCFOneMore
(
listCF
,
type
)
})
}
payloadCFOneMore
(
list
,
type
)
{
let
listCF
=
[]
list
.
map
((
item
,
index
)
=>
{
this
.
state
.
dbCF
.
map
((
item
,
index
)
=>
{
if
(
item
[
0
]
==
5
||
item
[
0
]
==
6
||
item
[
0
]
==
7
)
{
item
[
7
].
value
=
this
.
handleValueFormula
(
index
,
item
[
7
],
item
,
7
)
item
[
8
].
value
=
this
.
handleValueFormula
(
index
,
item
[
8
],
item
,
8
)
...
...
@@ -1057,34 +1060,39 @@ export default class BudgetTahunan extends Component {
listCF
.
push
(
item
)
})
this
.
payloadCFOneMoreAgain
(
listCF
,
type
)
this
.
setState
({
dbCF
:
listCF
},
()
=>
{
this
.
olahDataCashFlowOneMore
(
listCF
,
type
)
})
}
payloadCFOneMoreAgain
(
list
,
type
)
{
let
listCF
=
[]
list
.
map
((
item
,
index
)
=>
{
if
(
item
[
0
]
==
5
||
item
[
0
]
==
6
||
item
[
0
]
==
7
)
{
item
[
7
].
value
=
this
.
handleValueFormula
(
index
,
item
[
7
],
item
,
7
)
item
[
8
].
value
=
this
.
handleValueFormula
(
index
,
item
[
8
],
item
,
8
)
item
[
9
].
value
=
this
.
handleValueFormula
(
index
,
item
[
9
],
item
,
9
)
item
[
10
].
value
=
this
.
handleValueFormula
(
index
,
item
[
10
],
item
,
10
)
item
[
11
].
value
=
this
.
handleValueFormula
(
index
,
item
[
11
],
item
,
11
)
item
[
12
].
value
=
this
.
handleValueFormula
(
index
,
item
[
12
],
item
,
12
)
item
[
13
].
value
=
this
.
handleValueFormula
(
index
,
item
[
13
],
item
,
13
)
item
[
14
].
value
=
this
.
handleValueFormula
(
index
,
item
[
14
],
item
,
14
)
item
[
15
].
value
=
this
.
handleValueFormula
(
index
,
item
[
15
],
item
,
15
)
item
[
16
].
value
=
this
.
handleValueFormula
(
index
,
item
[
16
],
item
,
16
)
item
[
17
].
value
=
this
.
handleValueFormula
(
index
,
item
[
17
],
item
,
17
)
item
[
18
].
value
=
this
.
handleValueFormula
(
index
,
item
[
18
],
item
,
18
)
item
[
19
]
=
this
.
handleForecast
(
index
,
item
,
`
${
Number
(
this
.
state
.
periode
.
periode
)}
`
,
19
)
item
[
20
]
=
this
.
handleForecast
(
index
,
item
,
`
${
Number
(
this
.
state
.
periode
.
periode
)
+
1
}
`
,
20
)
item
[
21
]
=
this
.
handleForecast
(
index
,
item
,
`
${
Number
(
this
.
state
.
periode
.
periode
)
+
2
}
`
,
21
)
}
listCF
.
push
(
item
)
})
//
payloadCFOneMoreAgain(list, type) {
//
let listCF = []
// this.state.dbCF
.map((item, index) => {
//
if (item[0] == 5 || item[0] == 6 || item[0] == 7) {
//
item[7].value = this.handleValueFormula(index, item[7], item, 7)
//
item[8].value = this.handleValueFormula(index, item[8], item, 8)
//
item[9].value = this.handleValueFormula(index, item[9], item, 9)
//
item[10].value = this.handleValueFormula(index, item[10], item, 10)
//
item[11].value = this.handleValueFormula(index, item[11], item, 11)
//
item[12].value = this.handleValueFormula(index, item[12], item, 12)
//
item[13].value = this.handleValueFormula(index, item[13], item, 13)
//
item[14].value = this.handleValueFormula(index, item[14], item, 14)
//
item[15].value = this.handleValueFormula(index, item[15], item, 15)
//
item[16].value = this.handleValueFormula(index, item[16], item, 16)
//
item[17].value = this.handleValueFormula(index, item[17], item, 17)
//
item[18].value = this.handleValueFormula(index, item[18], item, 18)
//
item[19] = this.handleForecast(index, item, `${Number(this.state.periode.periode)}`, 19)
//
item[20] = this.handleForecast(index, item, `${Number(this.state.periode.periode) + 1}`, 20)
//
item[21] = this.handleForecast(index, item, `${Number(this.state.periode.periode) + 2}`, 21)
//
}
//
listCF.push(item)
//
})
this
.
olahDataCashFlowOneMore
(
listCF
,
type
)
}
// this.setState({dbCF: listCF}, () => {
// this.olahDataCashFlowOneMore(listCF, type)
// })
// }
olahDataCashFlowOneMore
(
list
,
type
)
{
console
.
log
(
list
)
...
...
@@ -1189,12 +1197,12 @@ export default class BudgetTahunan extends Component {
// if (this.state.submissionID != null) {
// this.createCashFlow()
// }
if
(
type
!=
undefined
)
{
if
(
type
==
'BS'
||
type
==
'FAM'
||
type
==
'PL'
)
{
//
if (type != undefined) {
//
if (type == 'BS' || type == 'FAM' || type == 'PL') {
console
.
log
(
'tarik sis'
)
this
.
createCashFlow
()
}
}
//
}
//
}
})
}
...
...
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