Commit e457786b authored by Faisal Hamdi's avatar Faisal Hamdi

Merge branch 'faisal' into 'master'

api monthly report

See merge request !695
parents da640e9d cd24e9f3
...@@ -252,6 +252,7 @@ const create = (type = "") => { ...@@ -252,6 +252,7 @@ const create = (type = "") => {
const checkApproverOLPA = () => api.get('transaction/outlook_pa/is_approver') const checkApproverOLPA = () => api.get('transaction/outlook_pa/is_approver')
// Monthly // 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 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 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) const getHierarkiMontlyReportOI = (body) => api.post('transaction/monthly_report_oi/get_report_hierarki', body)
...@@ -478,7 +479,8 @@ const create = (type = "") => { ...@@ -478,7 +479,8 @@ const create = (type = "") => {
getHierarkiMontlyReportPL, getHierarkiMontlyReportPL,
getHierarkiMontlyReportLOCF, getHierarkiMontlyReportLOCF,
getHierarkiMontlyReportFAM, getHierarkiMontlyReportFAM,
checkUploadMonthlyReportTP checkUploadMonthlyReportTP,
getMonthlyReport
} }
} }
......
...@@ -123,8 +123,9 @@ export default class MonthlyReport extends Component { ...@@ -123,8 +123,9 @@ export default class MonthlyReport extends Component {
"company_id": this.state.company.company_id, "company_id": this.state.company.company_id,
"periode": this.state.periode.periode, "periode": this.state.periode.periode,
"report_type": "Monthly Report", "report_type": "Monthly Report",
"months": this.state.month.month_id,
} }
api.create().getReportTypeBody(payload).then(response => { api.create().getMonthlyReport(payload).then(response => {
console.log(response); console.log(response);
if (response.data) { if (response.data) {
if (response.data.status === "success") { if (response.data.status === "success") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment