Commit 18019e45 authored by Deni Rinaldi's avatar Deni Rinaldi

gatau ampe mana

parent 6dd51650
......@@ -256,6 +256,7 @@ const create = (type = "") => {
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 getHierarkiMontlyReportTP = (body) => api.post('transaction/monthly_report_tp/get_report_hierarki', body)
const getHierarkiMontlyReportLOCF = (body) => api.post('transaction/monthly_report_locf/get_report_hierarki', body)
const getLastPeriodMonthly = (idCompany) => api.get(`transaction/monthly_report/get_last_periode/${idCompany}`)
const checkApproverMonthly = () => api.get('transaction/monthly_report/is_approver')
const getCompanySubmittedMonthly = (body) => api.post('transaction/monthly_report/get_company_submitted', body)
......@@ -263,6 +264,7 @@ const create = (type = "") => {
const getMontlyReportAtt = (body) => api.post('transaction/monthly_report/get_report_attachment', body)
const uploadAttachmentMonthly = (body) => api.post('transaction/monthly_report/upload_attachment', body)
const deleteAttachmentMonthly = (id) => api.post(`transaction/monthly_report/delete_attachment/${id}`)
const createMonthlyReportBS = (body) => api.post('transaction/monthly_report_bs/create_monthly_report', body)
// MonthlyPL
const getHierarkiMontlyReportPL = (body) => api.post('transaction/monthly_report_pl/get_report_hierarki', body)
......@@ -397,6 +399,7 @@ const create = (type = "") => {
getDetailDocument,
deleteDocument,
createSubmitReport,
createMonthlyReportBS,
getSubmission,
checkUploadMB,
getAllOperatingInd,
......@@ -463,7 +466,8 @@ const create = (type = "") => {
getMonthlyReportID,
getReportHierarkiFR,
getDetailHierarkiCF,
getHierarkiMontlyReportPL
getHierarkiMontlyReportPL,
getHierarkiMontlyReportLOCF
}
}
......
......@@ -470,6 +470,19 @@ export default class MonthlyReport extends Component {
})
}
saveToMonthlyReport(){
this.setState({
visibleMonthlyReport: true,
visibleBS: false,
visiblePL: false,
visibleCAT: false,
visibleFAM: false,
visibleTP: false,
visibleLOCF: false,
visibleOI: false,
})
}
clickDetail(item, id, revision, status) {
console.log(item)
this.setState({
......@@ -1037,7 +1050,7 @@ export default class MonthlyReport extends Component {
periode={this.state.periode.periode}
monthlyReportId={this.state.monthlyReportId}
month={this.state.month}
// saveToMasterBudget={this.saveToMasterBudget.bind(this)}
saveToMonthlyReport={this.saveToMonthlyReport.bind(this)}
onClickClose={() => this.setState({ visibleBS: false, visibleMonthlyReport: true })}
// getReport={this.getCompanyActive.bind(this)}
/>
......
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