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
016f707e
Commit
016f707e
authored
Jul 11, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RO simulasi
parent
cf63463e
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
910 additions
and
567 deletions
+910
-567
ProfitLossRO.js
src/container/RollingOutlook/ProfitLossRO.js
+210
-73
RollingOutlook.js
src/container/RollingOutlook/RollingOutlook.js
+17
-13
TaxPlanningRO.js
src/container/RollingOutlook/TaxPlanningRO.js
+683
-481
No files found.
src/container/RollingOutlook/ProfitLossRO.js
View file @
016f707e
This diff is collapsed.
Click to expand it.
src/container/RollingOutlook/RollingOutlook.js
View file @
016f707e
...
@@ -606,7 +606,7 @@ export default class RollingOutlook extends Component {
...
@@ -606,7 +606,7 @@ export default class RollingOutlook extends Component {
})
})
}
}
getRollingOutlookID
(
type
)
{
getRollingOutlookID
(
type
,
trigger
)
{
this
.
setState
({
loading
:
true
})
this
.
setState
({
loading
:
true
})
let
payload
=
{
let
payload
=
{
"company_id"
:
this
.
state
.
company
.
company_id
,
"company_id"
:
this
.
state
.
company
.
company_id
,
...
@@ -653,7 +653,7 @@ export default class RollingOutlook extends Component {
...
@@ -653,7 +653,7 @@ export default class RollingOutlook extends Component {
this
.
getLatestPeriodSubmit
()
this
.
getLatestPeriodSubmit
()
if
(
type
!=
undefined
&&
type
==
'PL'
)
{
if
(
type
!=
undefined
&&
type
==
'PL'
)
{
// this.getCashFlow(type)
// this.getCashFlow(type)
this
.
getPL
(
type
)
this
.
getPL
(
type
,
trigger
)
}
else
if
(
type
!=
undefined
&&
type
==
'BS'
)
{
}
else
if
(
type
!=
undefined
&&
type
==
'BS'
)
{
let
bodyRatioBs
=
{
let
bodyRatioBs
=
{
"report"
:
'ratio'
,
"report"
:
'ratio'
,
...
@@ -1017,7 +1017,7 @@ export default class RollingOutlook extends Component {
...
@@ -1017,7 +1017,7 @@ export default class RollingOutlook extends Component {
}
}
}
}
getPL
(
type
)
{
getPL
(
type
,
trigger
)
{
let
PLID
=
null
let
PLID
=
null
let
payloadID
=
{
let
payloadID
=
{
"periode"
:
this
.
state
.
periode
.
periode
,
"periode"
:
this
.
state
.
periode
.
periode
,
...
@@ -1128,7 +1128,7 @@ export default class RollingOutlook extends Component {
...
@@ -1128,7 +1128,7 @@ export default class RollingOutlook extends Component {
})
})
// console.log(dataTable)
// console.log(dataTable)
this
.
setState
({
dbPL
:
dataTable
},
()
=>
{
this
.
setState
({
dbPL
:
dataTable
},
()
=>
{
this
.
olahDataPL
(
this
.
state
.
dbPL
,
type
)
this
.
olahDataPL
(
this
.
state
.
dbPL
,
type
,
trigger
)
})
})
}
else
{
}
else
{
this
.
setState
({
dbPL
:
[],
previewTable
:
false
,
previewDownload
:
false
})
this
.
setState
({
dbPL
:
[],
previewTable
:
false
,
previewDownload
:
false
})
...
@@ -1367,7 +1367,7 @@ export default class RollingOutlook extends Component {
...
@@ -1367,7 +1367,7 @@ export default class RollingOutlook extends Component {
return
total
return
total
}
}
olahDataPL
(
dbPL
,
type
)
{
olahDataPL
(
dbPL
,
type
,
trigger
)
{
dbPL
.
map
((
item
,
index
)
=>
{
dbPL
.
map
((
item
,
index
)
=>
{
if
(
item
[
0
]
==
5
||
item
[
0
]
==
6
||
item
[
0
]
==
7
)
{
if
(
item
[
0
]
==
5
||
item
[
0
]
==
6
||
item
[
0
]
==
7
)
{
item
[
7
].
value
=
this
.
handleValueFormulaDBPL
(
index
,
item
[
7
],
item
,
7
)
item
[
7
].
value
=
this
.
handleValueFormulaDBPL
(
index
,
item
[
7
],
item
,
7
)
...
@@ -1387,11 +1387,11 @@ export default class RollingOutlook extends Component {
...
@@ -1387,11 +1387,11 @@ export default class RollingOutlook extends Component {
}
}
})
})
this
.
setState
({
dbPL
},
()
=>
{
this
.
setState
({
dbPL
},
()
=>
{
this
.
payloadPL
(
type
)
this
.
payloadPL
(
type
,
trigger
)
})
})
}
}
payloadPL
(
type
)
{
payloadPL
(
type
,
trigger
)
{
let
listPL
=
[]
let
listPL
=
[]
// console.log(this.state.dbPL)
// console.log(this.state.dbPL)
this
.
state
.
dbPL
.
map
((
item
,
index
)
=>
{
this
.
state
.
dbPL
.
map
((
item
,
index
)
=>
{
...
@@ -1486,13 +1486,13 @@ export default class RollingOutlook extends Component {
...
@@ -1486,13 +1486,13 @@ export default class RollingOutlook extends Component {
if
(
type
!=
undefined
)
{
if
(
type
!=
undefined
)
{
if
(
type
==
'PL'
)
{
if
(
type
==
'PL'
)
{
console
.
log
(
'tarik sis'
)
console
.
log
(
'tarik sis'
)
this
.
createDBPL
()
this
.
createDBPL
(
trigger
)
}
}
}
}
})
})
}
}
createDBPL
()
{
createDBPL
(
trigger
)
{
let
payload
=
{
let
payload
=
{
// "submission_id": this.state.submissionID,
// "submission_id": this.state.submissionID,
"company_id"
:
this
.
state
.
company
.
company_id
,
"company_id"
:
this
.
state
.
company
.
company_id
,
...
@@ -1506,11 +1506,15 @@ export default class RollingOutlook extends Component {
...
@@ -1506,11 +1506,15 @@ export default class RollingOutlook extends Component {
}
}
console
.
log
(
this
.
state
.
dbPL
)
console
.
log
(
this
.
state
.
dbPL
)
// console.log(JSON.stringify(payload))
// console.log(JSON.stringify(payload))
if
(
trigger
===
'simulasiPL'
)
{
}
else
{
api
.
create
().
createDBPLRO
(
payload
).
then
((
res
)
=>
{
api
.
create
().
createDBPLRO
(
payload
).
then
((
res
)
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
this
.
setState
({
loading
:
false
})
this
.
setState
({
loading
:
false
})
})
})
}
}
}
handleApproveAdmin
()
{
handleApproveAdmin
()
{
this
.
setState
({
visibleApproveSuperadmin
:
true
})
this
.
setState
({
visibleApproveSuperadmin
:
true
})
...
...
src/container/RollingOutlook/TaxPlanningRO.js
View file @
016f707e
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