Commit 7ce89f39 authored by rifkaki's avatar rifkaki

Merge branch 'master' of http://103.44.149.204/d.arizona/tia-dev into rifka

parents be7585b6 ae909925
...@@ -247,7 +247,11 @@ const create = (type = "") => { ...@@ -247,7 +247,11 @@ const create = (type = "") => {
const createReportPLMB = (body) => api.post('/transaction/db_profit_loss/master_budget/create_submission_report', body) const createReportPLMB = (body) => api.post('/transaction/db_profit_loss/master_budget/create_submission_report', body)
const createReportPLMR = (body) => api.post('/transaction/db_profit_loss/monthly_report/create_monthly_report', body) const createReportPLMR = (body) => api.post('/transaction/db_profit_loss/monthly_report/create_monthly_report', body)
const getPLID = (body) => api.post('/transaction/db_profit_loss/get_profit_loss_id', body) const getPLID = (body) => api.post('/transaction/db_profit_loss/get_profit_loss_id', body)
const getHierarkiCreateReportFRMB = (body) => api.post('/transaction/db_ratio/master_budget/get_report_hierarki', body)
const getHierarkiCreateReportFRMR = (body) => api.post('/transaction/db_ratio/monthly_report/get_report_hierarki', body)
const getFRID = (body) => api.post('/transaction/db_ratio/get_ratio_id', body) const getFRID = (body) => api.post('/transaction/db_ratio/get_ratio_id', body)
const createReportFRMB = (body) => api.post('/transaction/db_ratio/master_budget/create_submission_report', body)
const createReportFRMR = (body) => api.post('/transaction/db_ratio/monthly_report/create_monthly_report', body)
// const getReportPLMB = (body) => api.post('/transaction/db_profit_loss/get_report_hierarki', body) // const getReportPLMB = (body) => api.post('/transaction/db_profit_loss/get_report_hierarki', body)
// const getReportPLMB = (body) => api.post('/transaction/db_profit_loss/get_report_hierarki', body) // const getReportPLMB = (body) => api.post('/transaction/db_profit_loss/get_report_hierarki', body)
const getReportPLMR = (body) => api.post('/transaction/db_profit_loss/monthly_report/get_report_hierarki', body) const getReportPLMR = (body) => api.post('/transaction/db_profit_loss/monthly_report/get_report_hierarki', body)
...@@ -647,7 +651,11 @@ const create = (type = "") => { ...@@ -647,7 +651,11 @@ const create = (type = "") => {
getFRID, getFRID,
getHierarkiReportHistorical, getHierarkiReportHistorical,
getHierarkiReportMTD, getHierarkiReportMTD,
getHierarkiReportYtd getHierarkiReportYtd,
getHierarkiCreateReportFRMB,
getHierarkiCreateReportFRMR,
createReportFRMB,
createReportFRMR
} }
} }
......
This diff is collapsed.
...@@ -213,24 +213,21 @@ export default function MiniDrawer() { ...@@ -213,24 +213,21 @@ export default function MiniDrawer() {
path: '', path: '',
subItem: [ subItem: [
{ {
img: '',
label: 'Subco',
path: 'beranda',
}, {
img: 'beranda', img: 'beranda',
label: 'CAT Dashboard', label: 'Summary of Triputra Group',
path: 'dashboard-cat', path: 'beranda',
}, }, {
{
img: 'beranda', img: 'beranda',
label: 'Financial Dashboard', label: 'Financial Dashboard',
path: 'dashboard-financial', path: 'dashboard-financial',
}, }, {
{
img: 'beranda', img: 'beranda',
label: 'Summary of Triputra Group', label: 'CAT Dashboard',
path: 'beranda', path: 'dashboard-cat',
},
{
img: '',
label: 'Sub Holding',
path: 'beranda',
} }
], ],
collapse: false, collapse: false,
......
...@@ -98,6 +98,10 @@ export default class SubHolding extends Component { ...@@ -98,6 +98,10 @@ export default class SubHolding extends Component {
} }
}) })
if (arrayBaru.length > 0) {
arrayBaru = arrayBaru.sort((a,b) => a.company_name.localeCompare(b.company_name))
}
let defaultProps = { let defaultProps = {
options: arrayBaru, options: arrayBaru,
getOptionLabel: (option) => titleCase(option.company_name), getOptionLabel: (option) => titleCase(option.company_name),
......
This diff is collapsed.
...@@ -188,6 +188,10 @@ export default class OperatingIndicator extends Component { ...@@ -188,6 +188,10 @@ export default class OperatingIndicator extends Component {
} }
}) })
if (arrayBaru.length > 0) {
arrayBaru = arrayBaru.sort((a,b) => a.company_name.localeCompare(b.company_name))
}
let defaultProps = { let defaultProps = {
options: arrayBaru, options: arrayBaru,
getOptionLabel: (option) => titleCase(option.company_name), getOptionLabel: (option) => titleCase(option.company_name),
......
...@@ -110,6 +110,10 @@ export default class OutlookPA extends Component { ...@@ -110,6 +110,10 @@ export default class OutlookPA extends Component {
} }
}) })
if (companyData.length > 0) {
companyData = companyData.sort((a,b) => a.company_name.localeCompare(b.company_name))
}
let defaultProps = { let defaultProps = {
options: companyData, options: companyData,
getOptionLabel: (option) => titleCase(option.company_name), getOptionLabel: (option) => titleCase(option.company_name),
...@@ -241,6 +245,10 @@ export default class OutlookPA extends Component { ...@@ -241,6 +245,10 @@ export default class OutlookPA extends Component {
} }
}) })
if (companyData.length > 0) {
companyData = companyData.sort((a,b) => a.company_name.localeCompare(b.company_name))
}
let arrayBaru = [] let arrayBaru = []
this.state.userCompany.map((item, index) => { this.state.userCompany.map((item, index) => {
let indexID = companyData.findIndex((val) => val.company_id == item) let indexID = companyData.findIndex((val) => val.company_id == item)
...@@ -249,6 +257,13 @@ export default class OutlookPA extends Component { ...@@ -249,6 +257,13 @@ export default class OutlookPA extends Component {
} }
}) })
if (arrayBaru.length > 0) {
arrayBaru = arrayBaru.sort((a,b) => a.company_name.localeCompare(b.company_name))
}
console.log(companyData)
console.log(arrayBaru)
let defaultProps = { let defaultProps = {
options: arrayBaru, options: arrayBaru,
getOptionLabel: (option) => titleCase(option.company_name), getOptionLabel: (option) => titleCase(option.company_name),
......
...@@ -112,6 +112,10 @@ export default class RollingOutlook extends Component { ...@@ -112,6 +112,10 @@ export default class RollingOutlook extends Component {
} }
}) })
if (companyData.length > 0) {
companyData = companyData.sort((a,b) => a.company_name.localeCompare(b.company_name))
}
let defaultProps = { let defaultProps = {
options: companyData, options: companyData,
getOptionLabel: (option) => titleCase(option.company_name), getOptionLabel: (option) => titleCase(option.company_name),
...@@ -242,6 +246,10 @@ export default class RollingOutlook extends Component { ...@@ -242,6 +246,10 @@ export default class RollingOutlook extends Component {
} }
}) })
if (companyData.length > 0) {
companyData = companyData.sort((a,b) => a.company_name.localeCompare(b.company_name))
}
let arrayBaru = [] let arrayBaru = []
this.state.userCompany.map((item, index) => { this.state.userCompany.map((item, index) => {
let indexID = companyData.findIndex((val) => val.company_id == item) let indexID = companyData.findIndex((val) => val.company_id == item)
...@@ -250,6 +258,10 @@ export default class RollingOutlook extends Component { ...@@ -250,6 +258,10 @@ export default class RollingOutlook extends Component {
} }
}) })
if (arrayBaru.length > 0) {
arrayBaru = arrayBaru.sort((a,b) => a.company_name.localeCompare(b.company_name))
}
let defaultProps = { let defaultProps = {
options: arrayBaru, options: arrayBaru,
getOptionLabel: (option) => titleCase(option.company_name), getOptionLabel: (option) => titleCase(option.company_name),
......
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