Commit 13ef7fa1 authored by d.arizona's avatar d.arizona

apdet

parent 8ab8a8aa
...@@ -272,7 +272,8 @@ const create = (type = "") => { ...@@ -272,7 +272,8 @@ const create = (type = "") => {
const createMonthlyReportOI = (body) => api.post('transaction/monthly_report_oi/create_monthly_report', body) const createMonthlyReportOI = (body) => api.post('transaction/monthly_report_oi/create_monthly_report', body)
const checkUploadMonthlyReportTP = (body) => api.post('transaction/monthly_report_tp/check_import', body) const checkUploadMonthlyReportTP = (body) => api.post('transaction/monthly_report_tp/check_import', body)
const checkUploadMonthlyReportFAM = (body) => api.post('transaction/monthly_report/fam/check_import', body) const checkUploadMonthlyReportFAM = (body) => api.post('transaction/monthly_report/fam/check_import', body)
const checkUploadMonthlyReportBS = (body) => api.post('transaction/monthly_report_bs/check_import', body)
const uploadMonthlyReportBS = (body) => api.post('transaction/monthly_report_bs/import_monthly_report', body)
// MonthlyPL // MonthlyPL
const getHierarkiMontlyReportPL = (body) => api.post('transaction/monthly_report_pl/get_report_hierarki', body) const getHierarkiMontlyReportPL = (body) => api.post('transaction/monthly_report_pl/get_report_hierarki', body)
...@@ -487,7 +488,9 @@ const create = (type = "") => { ...@@ -487,7 +488,9 @@ const create = (type = "") => {
checkUploadMonthlyReportTP, checkUploadMonthlyReportTP,
checkUploadMonthlyReportFAM, checkUploadMonthlyReportFAM,
uploadMonthlyReportPL, uploadMonthlyReportPL,
getMonthlyReport getMonthlyReport,
checkUploadMonthlyReportBS,
uploadMonthlyReportBS
} }
} }
......
...@@ -666,7 +666,8 @@ export default class FixedAssetsMovement extends Component { ...@@ -666,7 +666,8 @@ export default class FixedAssetsMovement extends Component {
if (String(tableMeta.rowData[5]).toLocaleLowerCase() == 'beginning balance') { if (String(tableMeta.rowData[5]).toLocaleLowerCase() == 'beginning balance') {
let indexID = dataTable2.findIndex((val, index) => String(val[5]).toLocaleLowerCase() == 'ending balance' && dataTable2[index-1][2] == tableMeta.rowData[2]) let indexID = dataTable2.findIndex((val, index) => String(val[5]).toLocaleLowerCase() == 'ending balance' && dataTable2[index-1][2] == tableMeta.rowData[2])
if (indexID !== -1) { if (indexID !== -1) {
total = dataTable2[indexID][18].value // console.log(dataTable2)
total = tableMeta.columnIndex == 21? dataTable2[indexID][20] : dataTable2[indexID][18].value
} }
} else { } else {
let indexID = dataTable2[tableMeta.rowIndex][23].findIndex((val) => val.periode == periode) let indexID = dataTable2[tableMeta.rowIndex][23].findIndex((val) => val.periode == periode)
......
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