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
e457786b
Commit
e457786b
authored
Nov 25, 2020
by
Faisal Hamdi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'faisal' into 'master'
api monthly report See merge request
!695
parents
da640e9d
cd24e9f3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
index.js
src/api/index.js
+3
-1
MonthlyReport.js
src/container/MonthlyReport.js
+2
-1
No files found.
src/api/index.js
View file @
e457786b
...
...
@@ -252,6 +252,7 @@ const create = (type = "") => {
const
checkApproverOLPA
=
()
=>
api
.
get
(
'transaction/outlook_pa/is_approver'
)
// Monthly
const
getMonthlyReport
=
(
body
)
=>
api
.
post
(
'transaction/monthly_report/get_all_report'
,
body
)
const
getMonthlyReportID
=
(
body
)
=>
api
.
post
(
'transaction/monthly_report/get_monthly_report_id'
,
body
)
const
getHierarkiMontlyReportBS
=
(
body
)
=>
api
.
post
(
'transaction/monthly_report_bs/get_report_hierarki'
,
body
)
const
getHierarkiMontlyReportOI
=
(
body
)
=>
api
.
post
(
'transaction/monthly_report_oi/get_report_hierarki'
,
body
)
...
...
@@ -478,7 +479,8 @@ const create = (type = "") => {
getHierarkiMontlyReportPL
,
getHierarkiMontlyReportLOCF
,
getHierarkiMontlyReportFAM
,
checkUploadMonthlyReportTP
checkUploadMonthlyReportTP
,
getMonthlyReport
}
}
...
...
src/container/MonthlyReport.js
View file @
e457786b
...
...
@@ -123,8 +123,9 @@ export default class MonthlyReport extends Component {
"company_id"
:
this
.
state
.
company
.
company_id
,
"periode"
:
this
.
state
.
periode
.
periode
,
"report_type"
:
"Monthly Report"
,
"months"
:
this
.
state
.
month
.
month_id
,
}
api
.
create
().
get
ReportTypeBody
(
payload
).
then
(
response
=>
{
api
.
create
().
get
MonthlyReport
(
payload
).
then
(
response
=>
{
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
...
...
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