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
4ad32095
Commit
4ad32095
authored
Oct 04, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Simulasi OLPA
parent
1349795c
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
575 additions
and
321 deletions
+575
-321
BalanceSheetOLPA.js
src/container/OutlookPA/BalanceSheetOLPA.js
+30
-30
CashFlowOLPA.js
src/container/OutlookPA/CashFlowOLPA.js
+13
-13
CorporateAnnualTargetOLPA.js
src/container/OutlookPA/CorporateAnnualTargetOLPA.js
+420
-172
ProfitLossOLPA.js
src/container/OutlookPA/ProfitLossOLPA.js
+63
-58
TaxPlanningOLPA.js
src/container/OutlookPA/TaxPlanningOLPA.js
+49
-48
No files found.
src/container/OutlookPA/BalanceSheetOLPA.js
View file @
4ad32095
...
@@ -592,20 +592,20 @@ export default class BalanceSheetOLPA extends Component {
...
@@ -592,20 +592,20 @@ export default class BalanceSheetOLPA extends Component {
this
.
state
.
dataTable
.
map
(
i
=>
{
this
.
state
.
dataTable
.
map
(
i
=>
{
data
.
push
({
data
.
push
({
item_report_id
:
i
[
1
],
item_report_id
:
i
[
1
],
total_actual_before
:
String
(
Number
(
i
[
6
])
.
toFixed
(
1
)
),
total_actual_before
:
String
(
Number
(
i
[
6
])),
january
:
i
[
0
]
===
3
&&
i
[
7
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
7
])
.
toFixed
(
1
)
),
january
:
i
[
0
]
===
3
&&
i
[
7
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
7
])),
february
:
i
[
0
]
===
3
&&
i
[
8
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
8
])
.
toFixed
(
1
)
),
february
:
i
[
0
]
===
3
&&
i
[
8
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
8
])),
march
:
i
[
0
]
===
3
&&
i
[
9
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
9
])
.
toFixed
(
1
)
),
march
:
i
[
0
]
===
3
&&
i
[
9
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
9
])),
april
:
i
[
0
]
===
3
&&
i
[
10
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
10
])
.
toFixed
(
1
)
),
april
:
i
[
0
]
===
3
&&
i
[
10
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
10
])),
may
:
i
[
0
]
===
3
&&
i
[
11
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
11
])
.
toFixed
(
1
)
),
may
:
i
[
0
]
===
3
&&
i
[
11
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
11
])),
june
:
i
[
0
]
===
3
&&
i
[
12
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
12
])
.
toFixed
(
1
)
),
june
:
i
[
0
]
===
3
&&
i
[
12
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
12
])),
july
:
i
[
0
]
===
3
&&
i
[
13
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
13
])
.
toFixed
(
1
)
),
july
:
i
[
0
]
===
3
&&
i
[
13
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
13
])),
august
:
i
[
0
]
===
3
&&
i
[
14
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
14
])
.
toFixed
(
1
)
),
august
:
i
[
0
]
===
3
&&
i
[
14
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
14
])),
september
:
i
[
0
]
===
3
&&
i
[
15
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
15
])
.
toFixed
(
1
)
),
september
:
i
[
0
]
===
3
&&
i
[
15
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
15
])),
october
:
i
[
0
]
===
3
&&
i
[
16
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
16
])
.
toFixed
(
1
)
),
october
:
i
[
0
]
===
3
&&
i
[
16
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
16
])),
november
:
i
[
0
]
===
3
&&
i
[
17
]
===
""
?
"0.0"
:
(
i
[
0
]
===
5
||
i
[
0
]
===
6
||
i
[
0
]
===
7
?
String
(
Number
(
i
[
17
].
value
)
.
toFixed
(
1
))
:
String
(
Number
(
i
[
17
]).
toFixed
(
1
))),
november
:
i
[
0
]
===
3
&&
i
[
17
]
===
""
?
"0.0"
:
(
i
[
0
]
===
5
||
i
[
0
]
===
6
||
i
[
0
]
===
7
?
String
(
Number
(
i
[
17
].
value
)
)
:
String
(
Number
(
i
[
17
]
))),
december
:
i
[
0
]
===
3
&&
i
[
18
]
===
""
?
"0.0"
:
(
i
[
0
]
===
5
||
i
[
0
]
===
6
||
i
[
0
]
===
7
?
String
(
Number
(
i
[
18
].
value
)
.
toFixed
(
1
))
:
String
(
Number
(
i
[
18
]).
toFixed
(
1
))),
december
:
i
[
0
]
===
3
&&
i
[
18
]
===
""
?
"0.0"
:
(
i
[
0
]
===
5
||
i
[
0
]
===
6
||
i
[
0
]
===
7
?
String
(
Number
(
i
[
18
].
value
)
)
:
String
(
Number
(
i
[
18
]
))),
total_current_year
:
i
[
0
]
===
3
&&
i
[
19
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
19
])
.
toFixed
(
1
)
),
total_current_year
:
i
[
0
]
===
3
&&
i
[
19
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
19
])),
})
})
})
})
let
body
=
{
let
body
=
{
...
@@ -753,13 +753,13 @@ export default class BalanceSheetOLPA extends Component {
...
@@ -753,13 +753,13 @@ export default class BalanceSheetOLPA extends Component {
console
.
log
(
Number
(
i
[
18
].
value
).
toFixed
(
1
))
console
.
log
(
Number
(
i
[
18
].
value
).
toFixed
(
1
))
console
.
log
(
Number
(
i
[
19
]).
toFixed
(
1
))
console
.
log
(
Number
(
i
[
19
]).
toFixed
(
1
))
if
((
Number
(
i
[
17
].
value
)
.
toFixed
(
1
)
<
Number
(
this
.
state
.
minValue
))
||
(
Number
(
i
[
17
].
value
).
toFixed
(
1
)
>
Number
(
this
.
state
.
maxValue
)))
{
if
((
Number
(
i
[
17
].
value
)
<
Number
(
this
.
state
.
minValue
))
||
(
Number
(
i
[
17
].
value
)
>
Number
(
this
.
state
.
maxValue
)))
{
console
.
log
(
"masuk selisih control 1"
)
console
.
log
(
"masuk selisih control 1"
)
err
=
true
err
=
true
}
else
if
((
Number
(
i
[
18
].
value
)
.
toFixed
(
1
)
<
Number
(
this
.
state
.
minValue
))
||
(
Number
(
i
[
18
].
value
).
toFixed
(
1
)
>
Number
(
this
.
state
.
maxValue
)))
{
}
else
if
((
Number
(
i
[
18
].
value
)
<
Number
(
this
.
state
.
minValue
))
||
(
Number
(
i
[
18
].
value
)
>
Number
(
this
.
state
.
maxValue
)))
{
console
.
log
(
"masuk selisih control 2"
)
console
.
log
(
"masuk selisih control 2"
)
err
=
true
err
=
true
}
else
if
((
Number
(
i
[
19
])
.
toFixed
(
1
)
<
Number
(
this
.
state
.
minValue
))
||
(
Number
(
i
[
19
]).
toFixed
(
1
)
>
Number
(
this
.
state
.
maxValue
)))
{
}
else
if
((
Number
(
i
[
19
])
<
Number
(
this
.
state
.
minValue
))
||
(
Number
(
i
[
19
]
)
>
Number
(
this
.
state
.
maxValue
)))
{
console
.
log
(
"masuk selisih control 3"
)
console
.
log
(
"masuk selisih control 3"
)
err
=
true
err
=
true
}
}
...
@@ -768,19 +768,19 @@ export default class BalanceSheetOLPA extends Component {
...
@@ -768,19 +768,19 @@ export default class BalanceSheetOLPA extends Component {
data
.
push
({
data
.
push
({
item_report_id
:
i
[
1
],
item_report_id
:
i
[
1
],
total_actual_before
:
String
(
i
[
6
]),
total_actual_before
:
String
(
i
[
6
]),
january
:
i
[
0
]
===
3
&&
i
[
7
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
7
])
.
toFixed
(
1
)
),
january
:
i
[
0
]
===
3
&&
i
[
7
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
7
])),
february
:
i
[
0
]
===
3
&&
i
[
8
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
8
])
.
toFixed
(
1
)
),
february
:
i
[
0
]
===
3
&&
i
[
8
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
8
])),
march
:
i
[
0
]
===
3
&&
i
[
9
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
9
])
.
toFixed
(
1
)
),
march
:
i
[
0
]
===
3
&&
i
[
9
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
9
])),
april
:
i
[
0
]
===
3
&&
i
[
10
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
10
])
.
toFixed
(
1
)
),
april
:
i
[
0
]
===
3
&&
i
[
10
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
10
])),
may
:
i
[
0
]
===
3
&&
i
[
11
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
11
])
.
toFixed
(
1
)
),
may
:
i
[
0
]
===
3
&&
i
[
11
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
11
])),
june
:
i
[
0
]
===
3
&&
i
[
12
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
12
])
.
toFixed
(
1
)
),
june
:
i
[
0
]
===
3
&&
i
[
12
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
12
])),
july
:
i
[
0
]
===
3
&&
i
[
13
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
13
])
.
toFixed
(
1
)
),
july
:
i
[
0
]
===
3
&&
i
[
13
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
13
])),
august
:
i
[
0
]
===
3
&&
i
[
14
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
14
])
.
toFixed
(
1
)
),
august
:
i
[
0
]
===
3
&&
i
[
14
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
14
])),
september
:
i
[
0
]
===
3
&&
i
[
15
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
15
])
.
toFixed
(
1
)
),
september
:
i
[
0
]
===
3
&&
i
[
15
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
15
])),
october
:
i
[
0
]
===
3
&&
i
[
16
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
16
])
.
toFixed
(
1
)
),
october
:
i
[
0
]
===
3
&&
i
[
16
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
16
])),
november
:
i
[
0
]
===
3
&&
i
[
17
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
17
])
.
toFixed
(
1
)
),
november
:
i
[
0
]
===
3
&&
i
[
17
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
17
])),
december
:
i
[
0
]
===
3
&&
i
[
18
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
18
])
.
toFixed
(
1
)
),
december
:
i
[
0
]
===
3
&&
i
[
18
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
18
])),
total_current_year
:
i
[
0
]
===
3
&&
i
[
19
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
19
])
.
toFixed
(
1
)
),
total_current_year
:
i
[
0
]
===
3
&&
i
[
19
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
19
])),
})
})
})
})
console
.
log
(
JSON
.
stringify
(
data
))
console
.
log
(
JSON
.
stringify
(
data
))
...
...
src/container/OutlookPA/CashFlowOLPA.js
View file @
4ad32095
...
@@ -321,19 +321,19 @@ export default class CashFlow extends Component {
...
@@ -321,19 +321,19 @@ export default class CashFlow extends Component {
// }
// }
{
{
"item_report_id"
:
item
[
1
],
"item_report_id"
:
item
[
1
],
"january"
:
String
(
item
[
6
].
value
==
undefined
?
item
[
6
]
:
Number
(
item
[
6
].
value
)
.
toFixed
(
1
)
),
"january"
:
String
(
item
[
6
].
value
==
undefined
?
item
[
6
]
:
Number
(
item
[
6
].
value
)),
"february"
:
String
(
item
[
7
].
value
==
undefined
?
item
[
7
]
:
Number
(
item
[
7
].
value
)
.
toFixed
(
1
)
),
"february"
:
String
(
item
[
7
].
value
==
undefined
?
item
[
7
]
:
Number
(
item
[
7
].
value
)),
"march"
:
String
(
item
[
8
].
value
==
undefined
?
item
[
8
]
:
Number
(
item
[
8
].
value
)
.
toFixed
(
1
)
),
"march"
:
String
(
item
[
8
].
value
==
undefined
?
item
[
8
]
:
Number
(
item
[
8
].
value
)),
"april"
:
String
(
item
[
9
].
value
==
undefined
?
item
[
9
]
:
Number
(
item
[
9
].
value
)
.
toFixed
(
1
)
),
"april"
:
String
(
item
[
9
].
value
==
undefined
?
item
[
9
]
:
Number
(
item
[
9
].
value
)),
"may"
:
String
(
item
[
10
].
value
==
undefined
?
item
[
10
]
:
Number
(
item
[
10
].
value
)
.
toFixed
(
1
)
),
"may"
:
String
(
item
[
10
].
value
==
undefined
?
item
[
10
]
:
Number
(
item
[
10
].
value
)),
"june"
:
String
(
item
[
11
].
value
==
undefined
?
item
[
11
]
:
Number
(
item
[
11
].
value
)
.
toFixed
(
1
)
),
"june"
:
String
(
item
[
11
].
value
==
undefined
?
item
[
11
]
:
Number
(
item
[
11
].
value
)),
"july"
:
String
(
item
[
12
].
value
==
undefined
?
item
[
12
]
:
Number
(
item
[
12
].
value
)
.
toFixed
(
1
)
),
"july"
:
String
(
item
[
12
].
value
==
undefined
?
item
[
12
]
:
Number
(
item
[
12
].
value
)),
"august"
:
String
(
item
[
13
].
value
==
undefined
?
item
[
13
]
:
Number
(
item
[
13
].
value
)
.
toFixed
(
1
)
),
"august"
:
String
(
item
[
13
].
value
==
undefined
?
item
[
13
]
:
Number
(
item
[
13
].
value
)),
"september"
:
String
(
item
[
14
].
value
==
undefined
?
item
[
14
]
:
Number
(
item
[
14
].
value
)
.
toFixed
(
1
)
),
"september"
:
String
(
item
[
14
].
value
==
undefined
?
item
[
14
]
:
Number
(
item
[
14
].
value
)),
"october"
:
String
(
item
[
15
].
value
==
undefined
?
item
[
15
]
:
Number
(
item
[
15
].
value
)
.
toFixed
(
1
)
),
"october"
:
String
(
item
[
15
].
value
==
undefined
?
item
[
15
]
:
Number
(
item
[
15
].
value
)),
"november"
:
String
(
item
[
16
].
value
==
undefined
?
item
[
16
]
:
Number
(
item
[
16
].
value
)
.
toFixed
(
1
)
),
"november"
:
String
(
item
[
16
].
value
==
undefined
?
item
[
16
]
:
Number
(
item
[
16
].
value
)),
"december"
:
String
(
item
[
17
].
value
==
undefined
?
item
[
17
]
:
Number
(
item
[
17
].
value
)
.
toFixed
(
1
)
),
"december"
:
String
(
item
[
17
].
value
==
undefined
?
item
[
17
]
:
Number
(
item
[
17
].
value
)),
"total_current_year"
:
String
(
item
[
18
]
!=
''
?
Number
(
item
[
18
])
.
toFixed
(
1
)
:
item
[
18
]),
"total_current_year"
:
String
(
item
[
18
]
!=
''
?
Number
(
item
[
18
])
:
item
[
18
]),
}
}
)
)
})
})
...
...
src/container/OutlookPA/CorporateAnnualTargetOLPA.js
View file @
4ad32095
This diff is collapsed.
Click to expand it.
src/container/OutlookPA/ProfitLossOLPA.js
View file @
4ad32095
This diff is collapsed.
Click to expand it.
src/container/OutlookPA/TaxPlanningOLPA.js
View file @
4ad32095
This diff is collapsed.
Click to expand it.
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