Commit d179e22d authored by Riri Novita's avatar Riri Novita

download repot

parent c54c0e3a
...@@ -866,7 +866,8 @@ const create = (type = "") => { ...@@ -866,7 +866,8 @@ const create = (type = "") => {
createZipReport, createZipReport,
createDownloadFile, createDownloadFile,
getListDownload, getListDownload,
downloadZipReport downloadZipReport,
sendEmail
} }
} }
......
...@@ -2407,6 +2407,8 @@ export default class BudgetTahunan extends Component { ...@@ -2407,6 +2407,8 @@ export default class BudgetTahunan extends Component {
"company_id": company.company_id, "company_id": company.company_id,
"year": periode.periode, "year": periode.periode,
"report_id": selectReport, "report_id": selectReport,
"month": "",
"quartal": "",
"type_report_name": "Master Budget" "type_report_name": "Master Budget"
} }
console.log(payload); console.log(payload);
......
...@@ -714,11 +714,11 @@ export default class CashFlow extends Component { ...@@ -714,11 +714,11 @@ export default class CashFlow extends Component {
// } // }
if (tableMeta.rowData[5] == "Cash at the end of the period" && column == 7) { if (tableMeta.rowData[5] == "Cash at the end of the period" && column == 7) {
console.log(splitFormula) // console.log(splitFormula)
console.log(baru) // console.log(baru)
console.log(anjay) // console.log(anjay)
console.log(anjay2) // console.log(anjay2)
console.log(total) // console.log(total)
// let testttt = dataTable2[tableMeta.rowIndex - 1][8].value // let testttt = dataTable2[tableMeta.rowIndex - 1][8].value
// console.log(testttt) // console.log(testttt)
// total = testttt // total = testttt
......
...@@ -2225,6 +2225,8 @@ export default class MonthlyReport extends Component { ...@@ -2225,6 +2225,8 @@ export default class MonthlyReport extends Component {
"company_id": company.company_id, "company_id": company.company_id,
"year": periode.periode, "year": periode.periode,
"report_id": selectReport, "report_id": selectReport,
"month": month ? String(month.month_id).toString() : "",
"quartal": "",
"type_report_name": "Monthly Report" "type_report_name": "Monthly Report"
} }
console.log(payload); console.log(payload);
......
...@@ -537,6 +537,8 @@ export default class OperatingIndicator extends Component { ...@@ -537,6 +537,8 @@ export default class OperatingIndicator extends Component {
"company_id": company.company_id, "company_id": company.company_id,
"year": periode.periode, "year": periode.periode,
"report_id": selectReport, "report_id": selectReport,
"month": "",
"quartal": "",
"type_report_name": "Operating Indicator" "type_report_name": "Operating Indicator"
} }
console.log(payload); console.log(payload);
...@@ -602,6 +604,7 @@ export default class OperatingIndicator extends Component { ...@@ -602,6 +604,7 @@ export default class OperatingIndicator extends Component {
if (String(report[1]).toLocaleLowerCase().includes('master budget')) { if (String(report[1]).toLocaleLowerCase().includes('master budget')) {
let url = `${process.env.REACT_APP_URL_MAIN_BE}/public/transaction/operating_indicator/master_budget/export_master_budget?operating_indicator_id=${operatingIndID == null ? "" : operatingIndID}&&report_id=${report[3]}&&company_id=${company.company_id}&&year=${periode.periode}&&download_file_report_id=${downloadedFileReportId}` let url = `${process.env.REACT_APP_URL_MAIN_BE}/public/transaction/operating_indicator/master_budget/export_master_budget?operating_indicator_id=${operatingIndID == null ? "" : operatingIndID}&&report_id=${report[3]}&&company_id=${company.company_id}&&year=${periode.periode}&&download_file_report_id=${downloadedFileReportId}`
console.log(url);
let res = await fetch( let res = await fetch(
`${process.env.REACT_APP_URL_MAIN_BE}/public/transaction/operating_indicator/master_budget/export_master_budget?operating_indicator_id=${operatingIndID == null ? "" : operatingIndID}&&report_id=${report[3]}&&company_id=${company.company_id}&&year=${periode.periode}&&download_file_report_id=${downloadedFileReportId}` `${process.env.REACT_APP_URL_MAIN_BE}/public/transaction/operating_indicator/master_budget/export_master_budget?operating_indicator_id=${operatingIndID == null ? "" : operatingIndID}&&report_id=${report[3]}&&company_id=${company.company_id}&&year=${periode.periode}&&download_file_report_id=${downloadedFileReportId}`
) )
......
...@@ -1453,6 +1453,8 @@ export default class OutlookPA extends Component { ...@@ -1453,6 +1453,8 @@ export default class OutlookPA extends Component {
"company_id": company.company_id, "company_id": company.company_id,
"year": periode.periode, "year": periode.periode,
"report_id": selectReport, "report_id": selectReport,
"month": "",
"quartal": "",
"type_report_name": "Outlook PA" "type_report_name": "Outlook PA"
} }
console.log(payload); console.log(payload);
......
...@@ -1487,11 +1487,13 @@ export default class RollingOutlook extends Component { ...@@ -1487,11 +1487,13 @@ export default class RollingOutlook extends Component {
} }
handleDownloadReport(tableMeta) { handleDownloadReport(tableMeta) {
let { selectReport, company, periode, month } = this.state let { selectReport, company, periode, quarter } = this.state
let payload = { let payload = {
"company_id": company.company_id, "company_id": company.company_id,
"year": periode.periode, "year": periode.periode,
"report_id": selectReport, "report_id": selectReport,
"month": "",
"quartal": quarter ? quarter.value : "",
"type_report_name": "Rolling Outlook" "type_report_name": "Rolling Outlook"
} }
console.log(payload); console.log(payload);
......
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