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
Hide 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 {
})
}
getRollingOutlookID
(
type
)
{
getRollingOutlookID
(
type
,
trigger
)
{
this
.
setState
({
loading
:
true
})
let
payload
=
{
"company_id"
:
this
.
state
.
company
.
company_id
,
...
...
@@ -653,7 +653,7 @@ export default class RollingOutlook extends Component {
this
.
getLatestPeriodSubmit
()
if
(
type
!=
undefined
&&
type
==
'PL'
)
{
// this.getCashFlow(type)
this
.
getPL
(
type
)
this
.
getPL
(
type
,
trigger
)
}
else
if
(
type
!=
undefined
&&
type
==
'BS'
)
{
let
bodyRatioBs
=
{
"report"
:
'ratio'
,
...
...
@@ -1017,7 +1017,7 @@ export default class RollingOutlook extends Component {
}
}
getPL
(
type
)
{
getPL
(
type
,
trigger
)
{
let
PLID
=
null
let
payloadID
=
{
"periode"
:
this
.
state
.
periode
.
periode
,
...
...
@@ -1128,7 +1128,7 @@ export default class RollingOutlook extends Component {
})
// console.log(dataTable)
this
.
setState
({
dbPL
:
dataTable
},
()
=>
{
this
.
olahDataPL
(
this
.
state
.
dbPL
,
type
)
this
.
olahDataPL
(
this
.
state
.
dbPL
,
type
,
trigger
)
})
}
else
{
this
.
setState
({
dbPL
:
[],
previewTable
:
false
,
previewDownload
:
false
})
...
...
@@ -1367,7 +1367,7 @@ export default class RollingOutlook extends Component {
return
total
}
olahDataPL
(
dbPL
,
type
)
{
olahDataPL
(
dbPL
,
type
,
trigger
)
{
dbPL
.
map
((
item
,
index
)
=>
{
if
(
item
[
0
]
==
5
||
item
[
0
]
==
6
||
item
[
0
]
==
7
)
{
item
[
7
].
value
=
this
.
handleValueFormulaDBPL
(
index
,
item
[
7
],
item
,
7
)
...
...
@@ -1387,11 +1387,11 @@ export default class RollingOutlook extends Component {
}
})
this
.
setState
({
dbPL
},
()
=>
{
this
.
payloadPL
(
type
)
this
.
payloadPL
(
type
,
trigger
)
})
}
payloadPL
(
type
)
{
payloadPL
(
type
,
trigger
)
{
let
listPL
=
[]
// console.log(this.state.dbPL)
this
.
state
.
dbPL
.
map
((
item
,
index
)
=>
{
...
...
@@ -1486,13 +1486,13 @@ export default class RollingOutlook extends Component {
if
(
type
!=
undefined
)
{
if
(
type
==
'PL'
)
{
console
.
log
(
'tarik sis'
)
this
.
createDBPL
()
this
.
createDBPL
(
trigger
)
}
}
})
}
createDBPL
()
{
createDBPL
(
trigger
)
{
let
payload
=
{
// "submission_id": this.state.submissionID,
"company_id"
:
this
.
state
.
company
.
company_id
,
...
...
@@ -1506,10 +1506,14 @@ export default class RollingOutlook extends Component {
}
console
.
log
(
this
.
state
.
dbPL
)
// console.log(JSON.stringify(payload))
api
.
create
().
createDBPLRO
(
payload
).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
setState
({
loading
:
false
})
})
if
(
trigger
===
'simulasiPL'
)
{
}
else
{
api
.
create
().
createDBPLRO
(
payload
).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
setState
({
loading
:
false
})
})
}
}
handleApproveAdmin
()
{
...
...
src/container/RollingOutlook/TaxPlanningRO.js
View file @
016f707e
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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