Commit e449def0 authored by Riri Novita's avatar Riri Novita

ratio

parent 7a25cda5
...@@ -505,7 +505,7 @@ export default class SubHolding extends Component { ...@@ -505,7 +505,7 @@ export default class SubHolding extends Component {
} else if (this.state.report.value === 4) { } else if (this.state.report.value === 4) {
api.create().getReportHierarkiFR(payload).then(response => { api.create().getReportHierarkiFR(payload).then(response => {
// console.log(payload); // console.log(payload);
// console.log(response); console.log(response);
let dataTable = [] let dataTable = []
if (response.data) { if (response.data) {
if (response.data.status === 'success') { if (response.data.status === 'success') {
...@@ -536,7 +536,7 @@ export default class SubHolding extends Component { ...@@ -536,7 +536,7 @@ export default class SubHolding extends Component {
Number(item.ratio.december).toFixed(1), Number(item.ratio.december).toFixed(1),
Number(item.ratio.total_next_year).toFixed(1), Number(item.ratio.total_next_year).toFixed(1),
Number(item.ratio.total_more_year).toFixed(1), Number(item.ratio.total_more_year).toFixed(1),
Number(item.ratio.monthly_january).toFixed(1) Number(item.ratio.monthly_january).toFixed(2),
// item.order, // item.order,
// item.condition_it_should_be, // item.condition_it_should_be,
// item.condition_if_wrong, // item.condition_if_wrong,
...@@ -575,9 +575,10 @@ export default class SubHolding extends Component { ...@@ -575,9 +575,10 @@ export default class SubHolding extends Component {
Number(item.ratio.december).toFixed(1), Number(item.ratio.december).toFixed(1),
Number(item.ratio.total_next_year).toFixed(1), Number(item.ratio.total_next_year).toFixed(1),
Number(item.ratio.total_more_year).toFixed(1), Number(item.ratio.total_more_year).toFixed(1),
item.order, Number(item.ratio.monthly_january).toFixed(2),
item.condition_it_should_be, // item.order,
item.condition_if_wrong // item.condition_it_should_be,
// item.condition_if_wrong
]) ])
if (item.children !== null) { if (item.children !== null) {
if (item.children.length > 0) { if (item.children.length > 0) {
......
...@@ -3836,7 +3836,7 @@ export default class TableSubHolding extends Component { ...@@ -3836,7 +3836,7 @@ export default class TableSubHolding extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={Number(tableMeta.rowData[22]).toFixed(1)} value={Number(tableMeta.rowData[22]).toFixed(2)}
/> />
} }
/> />
......
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