Commit c29f814d authored by Deni Rinaldi's avatar Deni Rinaldi

create + get BS OLPA

parent 0ac0e3ad
......@@ -233,8 +233,10 @@ const create = (type = "") => {
const createReportOLPA = (body) => api.post('transaction/outlook_pa/create_outlook_report', body)
const checkUploadOLPA = (body) => api.post('transaction/outlook_pa/check_import', body)
const validateSubmitReportOLPA = (body) => api.post('transaction/outlook_pa/validate_save', body)
const uploadOLPA = (body) => api.post('transaction/outlook_pa/import_outlook_pa')
const uploadOLPA = (body) => api.post('transaction/outlook_pa/import_outlook_pa', body)
const uploadAttOLPA = (body) => api.post('transaction/outlook_pa/upload_attachment', body)
const deleteAttOLPA = (id) => api.post(`transaction/outlook_pa/delete_attachment/${id}`)
const getReportOLPA = (body) => api.post('transaction/outlook_pa/get_all_report', body)
//Template
const downloadTemplate = (fileName, fileType) => api.get(`attachment/download_file?fileName=${fileName}&&fileType=${fileType}`)
......@@ -407,7 +409,9 @@ const create = (type = "") => {
uploadOLPA,
validateSubmitReportOLPA,
getDetailReportOLPA,
uploadAttOLPA
uploadAttOLPA,
deleteAttOLPA,
getReportOLPA
}
}
......
......@@ -155,7 +155,7 @@ export default class OutlookPA extends Component {
"periode": this.state.periode.periode,
"report_type": "Outlook PA",
}
api.create().getReportTypeBody(payload).then(response => {
api.create().getReportOLPA(payload).then(response => {
console.log(response);
if (response.data) {
if (response.data.status === "success") {
......@@ -504,7 +504,7 @@ export default class OutlookPA extends Component {
}
deleteAttachment(item) {
api.create().deleteAttachment(item.attachment_id).then(response => {
api.create().deleteAttOLPA(item.attachment_id).then(response => {
if (response.data) {
if (response.data.status === "success") {
this.getOutlookPAID()
......
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