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
a8a9582a
Commit
a8a9582a
authored
Apr 14, 2021
by
d.arizona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create db profitlos olPA
parent
40940c40
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
588 additions
and
77 deletions
+588
-77
index.js
src/api/index.js
+6
-2
OutlookPA.js
src/container/OutlookPA.js
+503
-4
ProfitLossOLPA.js
src/container/OutlookPA/ProfitLossOLPA.js
+79
-71
No files found.
src/api/index.js
View file @
a8a9582a
...
...
@@ -361,6 +361,8 @@ const create = (type = "") => {
const
createPeriodeRevisionOLPA
=
(
body
)
=>
api
.
post
(
'transaction/outlook_pa/create_periode_revision'
,
body
)
const
getHierarkiCFOLPA
=
(
body
)
=>
api
.
post
(
'transaction/cash_flow/outlook_pa/get_report_hierarki'
,
body
)
const
createCFOLPA
=
(
body
)
=>
api
.
post
(
'transaction/cash_flow/outlook_pa/create_outlook_report'
,
body
)
const
getHierarkiDBPLOLPA
=
(
body
)
=>
api
.
post
(
'transaction/db_profit_loss/outlook_pa/get_report_hierarki'
,
body
)
const
createDBPLOLPA
=
(
body
)
=>
api
.
post
(
'transaction/db_profit_loss/outlook_pa/create_outlook_report'
,
body
)
// Monthly
const
getMonthlyReport
=
(
body
)
=>
api
.
post
(
'transaction/monthly_report/get_all_report'
,
body
)
...
...
@@ -792,7 +794,9 @@ const create = (type = "") => {
getRollingOutlookCF
,
createRollingOutlookCF
,
getHierarkiCFOLPA
,
createCFOLPA
createCFOLPA
,
getHierarkiDBPLOLPA
,
createDBPLOLPA
}
}
...
...
src/container/OutlookPA.js
View file @
a8a9582a
This diff is collapsed.
Click to expand it.
src/container/OutlookPA/ProfitLossOLPA.js
View file @
a8a9582a
...
...
@@ -318,7 +318,11 @@ export default class ProfitLossOLPA extends Component {
}
console
.
log
(
data
);
this
.
setState
({
loading
:
false
})
if
(
type
==
'submitted'
)
{
this
.
props
.
saveToOLPA
(
payload
,
'PL'
)
}
else
{
this
.
props
.
saveToOLPA
(
payload
)
}
this
.
props
.
onClickClose
()
}
...
...
@@ -474,7 +478,11 @@ export default class ProfitLossOLPA extends Component {
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
props
.
onClickClose
()
if
(
type
==
'submitted'
)
{
this
.
props
.
getReport
(
'PL'
)
}
else
{
this
.
props
.
getReport
()
}
}
else
{
alert
(
response
.
data
.
status
)
}
...
...
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