Commit 95b9e926 authored by faisalhamdi's avatar faisalhamdi

update DB Ratio

parent f29d5cde
......@@ -505,7 +505,7 @@ export default class SubHolding extends Component {
} else if (this.state.report.value === 4) {
api.create().getReportHierarkiFR(payload).then(response => {
// console.log(payload);
console.log(response);
// console.log(response);
let dataTable = []
if (response.data) {
if (response.data.status === 'success') {
......@@ -522,20 +522,20 @@ export default class SubHolding extends Component {
item.description,
item.uom,
item.ratio.total_actual_before === null ? "0.0" : item.ratio.total_actual_before === "" ? "0.0" : item.ratio.total_actual_before,
Number(item.ratio.january).toFixed(1),
Number(item.ratio.february).toFixed(1),
Number(item.ratio.march).toFixed(1),
Number(item.ratio.april).toFixed(1),
Number(item.ratio.may).toFixed(1),
Number(item.ratio.june).toFixed(1),
Number(item.ratio.july).toFixed(1),
Number(item.ratio.august).toFixed(1),
Number(item.ratio.september).toFixed(1),
Number(item.ratio.october).toFixed(1),
Number(item.ratio.november).toFixed(1),
Number(item.ratio.december).toFixed(1),
Number(item.ratio.total_next_year).toFixed(1),
Number(item.ratio.total_more_year).toFixed(1),
Number(item.ratio.january).toFixed(2),
Number(item.ratio.february).toFixed(2),
Number(item.ratio.march).toFixed(2),
Number(item.ratio.april).toFixed(2),
Number(item.ratio.may).toFixed(2),
Number(item.ratio.june).toFixed(2),
Number(item.ratio.july).toFixed(2),
Number(item.ratio.august).toFixed(2),
Number(item.ratio.september).toFixed(2),
Number(item.ratio.october).toFixed(2),
Number(item.ratio.november).toFixed(2),
Number(item.ratio.december).toFixed(2),
Number(item.ratio.total_next_year).toFixed(2),
Number(item.ratio.total_more_year).toFixed(2),
item.order,
item.condition_it_should_be,
item.condition_if_wrong
......@@ -559,20 +559,20 @@ export default class SubHolding extends Component {
item.description,
item.oum,
item.ratio.total_actual_before === null ? "0.0" : item.ratio.total_actual_before === "" ? "0.0" : item.ratio.total_actual_before,
Number(item.ratio.january).toFixed(1),
Number(item.ratio.february).toFixed(1),
Number(item.ratio.march).toFixed(1),
Number(item.ratio.april).toFixed(1),
Number(item.ratio.may).toFixed(1),
Number(item.ratio.june).toFixed(1),
Number(item.ratio.july).toFixed(1),
Number(item.ratio.august).toFixed(1),
Number(item.ratio.september).toFixed(1),
Number(item.ratio.october).toFixed(1),
Number(item.ratio.november).toFixed(1),
Number(item.ratio.december).toFixed(1),
Number(item.ratio.total_next_year).toFixed(1),
Number(item.ratio.total_more_year).toFixed(1),
Number(item.ratio.january).toFixed(2),
Number(item.ratio.february).toFixed(2),
Number(item.ratio.march).toFixed(2),
Number(item.ratio.april).toFixed(2),
Number(item.ratio.may).toFixed(2),
Number(item.ratio.june).toFixed(2),
Number(item.ratio.july).toFixed(2),
Number(item.ratio.august).toFixed(2),
Number(item.ratio.september).toFixed(2),
Number(item.ratio.october).toFixed(2),
Number(item.ratio.november).toFixed(2),
Number(item.ratio.december).toFixed(2),
Number(item.ratio.total_next_year).toFixed(2),
Number(item.ratio.total_more_year).toFixed(2),
item.order,
item.condition_it_should_be,
item.condition_if_wrong
......
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