Commit 1727f58a authored by Riri Novita's avatar Riri Novita

Merge branch 'ENV-DEV' into 'ENV-STAGING'

update issue CAT

See merge request !1973
parents 154bb119 c51075bb
...@@ -543,10 +543,6 @@ const create = (type = "") => { ...@@ -543,10 +543,6 @@ const create = (type = "") => {
const uploadSimulasiMROI = (body) => api.post('transaction/operating_indicator/monthly_report/import_monthly_report/other_currency_existing', body) const uploadSimulasiMROI = (body) => api.post('transaction/operating_indicator/monthly_report/import_monthly_report/other_currency_existing', body)
const uploadSimulasiROOI = (body) => api.post('transaction/operating_indicator/rolling_outlook/import_rolling_outlook/other_currency_existing', body) const uploadSimulasiROOI = (body) => api.post('transaction/operating_indicator/rolling_outlook/import_rolling_outlook/other_currency_existing', body)
// Delete Duplicate CAT
const deleteDuplicateSubmitCAT = (body) => api.post('transaction/master_budget/delete_duplicate_submit_item_report', body)
const deleteDuplicateImportCAT = (body) => api.post('transaction/master_budget/delete_duplicate_import_item_report', body)
// Superadmin Approve // Superadmin Approve
const getListApprover = (report, monthlyReportId) => api.get(`transaction/${report}/get_approver/${monthlyReportId}`) const getListApprover = (report, monthlyReportId) => api.get(`transaction/${report}/get_approver/${monthlyReportId}`)
const getIdToken = (userId) => api.get(`transaction/get_token/${userId}`) const getIdToken = (userId) => api.get(`transaction/get_token/${userId}`)
...@@ -942,8 +938,6 @@ const create = (type = "") => { ...@@ -942,8 +938,6 @@ const create = (type = "") => {
uploadSimulasiOperatingInd, uploadSimulasiOperatingInd,
uploadSimulasiMROI, uploadSimulasiMROI,
uploadSimulasiROOI, uploadSimulasiROOI,
deleteDuplicateSubmitCAT,
deleteDuplicateImportCAT
} }
} }
......
...@@ -2346,29 +2346,18 @@ export default class BudgetTahunan extends Component { ...@@ -2346,29 +2346,18 @@ export default class BudgetTahunan extends Component {
if (response.data.status === 'success') { if (response.data.status === 'success') {
if (type === "PL" || type === "DraftPL") { if (type === "PL" || type === "DraftPL") {
this.setState({ visiblePL: false, visibleBudgetTahunan: true, loading: false }) this.setState({ visiblePL: false, visibleBudgetTahunan: true, loading: false })
this.getSubmission(type)
} else if (type === "TP" || type === "DraftTP") { } else if (type === "TP" || type === "DraftTP") {
this.setState({ visibleTP: false, visibleBudgetTahunan: true, loading: false }) this.setState({ visibleTP: false, visibleBudgetTahunan: true, loading: false })
this.getSubmission(type)
} else if (type === "BS" || type === "DraftBS") { } else if (type === "BS" || type === "DraftBS") {
this.setState({ visibleBS: false, visibleBudgetTahunan: true, loading: false }) this.setState({ visibleBS: false, visibleBudgetTahunan: true, loading: false })
this.getSubmission(type)
} else if (type === "FAM" || type === "DraftFAM") { } else if (type === "FAM" || type === "DraftFAM") {
this.setState({ visibleFAM: false, visibleBudgetTahunan: true, loading: false }) this.setState({ visibleFAM: false, visibleBudgetTahunan: true, loading: false })
this.getSubmission(type)
} else if (type === "CAT" || type === "DraftCAT") { } else if (type === "CAT" || type === "DraftCAT") {
api.create().deleteDuplicateSubmitCAT(data).then((res) => { this.setState({ visibleCF: false, visibleBudgetTahunan: true, loading: false })
console.log(res)
if (res.data.status === "success") {
this.setState({ loading: false, visibleCF: false, visibleBudgetTahunan: true })
this.getSubmission(type)
}
})
} else { } else {
this.setState({ visibleBudgetTahunan: true, visiblePL: false, visibleTP: false, visibleBS: false, visibleFAM: false, visibleCAT: false, loading: false }) this.setState({ visibleBudgetTahunan: true, visiblePL: false, visibleTP: false, visibleBS: false, visibleFAM: false, visibleCAT: false, loading: false })
this.getSubmission(type)
} }
// this.getSubmission(type) this.getSubmission(type)
} else { } else {
console.log(response.data); console.log(response.data);
if (response.data.message == "Please Set Up Rate Currency First") { if (response.data.message == "Please Set Up Rate Currency First") {
......
...@@ -661,9 +661,6 @@ export default class CorporateAnnualTarget extends Component { ...@@ -661,9 +661,6 @@ export default class CorporateAnnualTarget extends Component {
console.log(response); console.log(response);
if (response.data) { if (response.data) {
if (response.ok) { if (response.ok) {
if (response.data.status === "success") {
api.create().deleteDuplicateImportCAT(body).then((res) => {
console.log(res)
if (response.data.status === "success") { if (response.data.status === "success") {
if (type == 'submitted') { if (type == 'submitted') {
this.props.getReport(body, 'CAT') this.props.getReport(body, 'CAT')
...@@ -672,8 +669,6 @@ export default class CorporateAnnualTarget extends Component { ...@@ -672,8 +669,6 @@ export default class CorporateAnnualTarget extends Component {
} }
this.setState({ loading: false }) this.setState({ loading: false })
this.props.onClickClose() this.props.onClickClose()
}
})
// this.props.getReport() // this.props.getReport()
} else { } else {
if (response.data?.message == "Please Set Up Rate Currency First") { if (response.data?.message == "Please Set Up Rate Currency First") {
......
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