Commit 5eb4dd56 authored by faisalhamdi's avatar faisalhamdi

api monthly report

parent 12acda4b
......@@ -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
}
}
......
......@@ -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().getReportTypeBody(payload).then(response => {
api.create().getMonthlyReport(payload).then(response => {
console.log(response);
if (response.data) {
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