Commit 2a61cd14 authored by Rifka Kurnia's avatar Rifka Kurnia

Merge branch 'rifka' into 'master'

tofixed decimal ytd

See merge request !1173
parents 687993d8 e625dcea
......@@ -1180,8 +1180,10 @@ export default class TableSummaryTriputra extends Component {
type="text"
placeholder=""
disabled={true}
// decimalScale={1}
suffix={"%"}
value={tableMeta.rowData[6]}
// value={(tableMeta.rowData[6])}
value={Number(String(tableMeta.rowData[6]).substr(0, String(tableMeta.rowData[6]).length - 1)).toFixed(1)}
/>
}
/>
......@@ -1214,7 +1216,8 @@ export default class TableSummaryTriputra extends Component {
placeholder=""
disabled={true}
suffix={"%"}
value={tableMeta.rowData[8]}
// value={tableMeta.rowData[8]}
value={Number(String(tableMeta.rowData[8]).substr(0, String(tableMeta.rowData[8]).length - 1)).toFixed(1)}
/>
}
/>
......@@ -1265,7 +1268,8 @@ export default class TableSummaryTriputra extends Component {
placeholder=""
disabled={true}
suffix={"%"}
value={tableMeta.rowData[11]}
// value={tableMeta.rowData[11]}
value={Number(String(tableMeta.rowData[11]).substr(0, String(tableMeta.rowData[11]).length - 1)).toFixed(1)}
/>
}
/>
......@@ -1298,7 +1302,8 @@ export default class TableSummaryTriputra extends Component {
placeholder=""
disabled={true}
suffix={"%"}
value={tableMeta.rowData[13]}
// value={tableMeta.rowData[13]}
value={Number(String(tableMeta.rowData[13]).substr(0, String(tableMeta.rowData[13]).length - 1)).toFixed(1)}
/>
}
/>
......@@ -1473,7 +1478,8 @@ export default class TableSummaryTriputra extends Component {
placeholder=""
disabled={true}
suffix={"%"}
value={tableMeta.rowData[16]}
// value={tableMeta.rowData[16]}
value={Number(String(tableMeta.rowData[16]).substr(0, String(tableMeta.rowData[16]).length - 1)).toFixed(1)}
/>
}
/>
......@@ -1506,7 +1512,8 @@ export default class TableSummaryTriputra extends Component {
placeholder=""
disabled={true}
suffix={"%"}
value={tableMeta.rowData[18]}
// value={tableMeta.rowData[18]}
value={Number(String(tableMeta.rowData[18]).substr(0, String(tableMeta.rowData[18]).length - 1)).toFixed(1)}
/>
}
/>
......@@ -1557,7 +1564,8 @@ export default class TableSummaryTriputra extends Component {
placeholder=""
disabled={true}
suffix={"%"}
value={tableMeta.rowData[21]}
// value={tableMeta.rowData[21]}
value={Number(String(tableMeta.rowData[21]).substr(0, String(tableMeta.rowData[21]).length - 1)).toFixed(1)}
/>
}
/>
......@@ -1591,6 +1599,7 @@ export default class TableSummaryTriputra extends Component {
disabled={true}
suffix={"%"}
value={tableMeta.rowData[23]}
value={Number(String(tableMeta.rowData[23]).substr(0, String(tableMeta.rowData[23]).length - 1)).toFixed(1)}
/>
}
/>
......@@ -1771,7 +1780,8 @@ export default class TableSummaryTriputra extends Component {
placeholder=""
disabled={true}
suffix={"%"}
value={tableMeta.rowData[26]}
// value={tableMeta.rowData[26]}
value={Number(String(tableMeta.rowData[26]).substr(0, String(tableMeta.rowData[26]).length - 1)).toFixed(1)}
/>
}
/>
......@@ -1804,7 +1814,8 @@ export default class TableSummaryTriputra extends Component {
placeholder=""
disabled={true}
suffix={"%"}
value={tableMeta.rowData[28]}
// value={tableMeta.rowData[28]}
value={Number(String(tableMeta.rowData[28]).substr(0, String(tableMeta.rowData[28]).length - 1)).toFixed(1)}
/>
}
/>
......@@ -1855,7 +1866,8 @@ export default class TableSummaryTriputra extends Component {
placeholder=""
disabled={true}
suffix={"%"}
value={tableMeta.rowData[31]}
// value={tableMeta.rowData[31]}
value={Number(String(tableMeta.rowData[31]).substr(0, String(tableMeta.rowData[31]).length - 1)).toFixed(1)}
/>
}
/>
......@@ -1888,7 +1900,8 @@ export default class TableSummaryTriputra extends Component {
placeholder=""
disabled={true}
suffix={"%"}
value={tableMeta.rowData[33]}
// value={tableMeta.rowData[33]}
value={Number(String(tableMeta.rowData[33]).substr(0, String(tableMeta.rowData[33]).length - 1)).toFixed(1)}
/>
}
/>
......@@ -2069,7 +2082,8 @@ export default class TableSummaryTriputra extends Component {
placeholder=""
disabled={true}
suffix={"%"}
value={tableMeta.rowData[36]}
// value={tableMeta.rowData[36]}
value={Number(String(tableMeta.rowData[36]).substr(0, String(tableMeta.rowData[36]).length - 1)).toFixed(1)}
/>
}
/>
......@@ -2102,7 +2116,8 @@ export default class TableSummaryTriputra extends Component {
placeholder=""
disabled={true}
suffix={"%"}
value={tableMeta.rowData[38]}
// value={tableMeta.rowData[38]}
value={Number(String(tableMeta.rowData[38]).substr(0, String(tableMeta.rowData[38]).length - 1)).toFixed(1)}
/>
}
/>
......@@ -2153,7 +2168,8 @@ export default class TableSummaryTriputra extends Component {
placeholder=""
disabled={true}
suffix={"%"}
value={tableMeta.rowData[41]}
// value={tableMeta.rowData[41]}
value={Number(String(tableMeta.rowData[41]).substr(0, String(tableMeta.rowData[41]).length - 1)).toFixed(1)}
/>
}
/>
......@@ -2186,7 +2202,8 @@ export default class TableSummaryTriputra extends Component {
placeholder=""
disabled={true}
suffix={"%"}
value={tableMeta.rowData[43]}
// value={tableMeta.rowData[43]}
value={Number(String(tableMeta.rowData[43]).substr(0, String(tableMeta.rowData[43]).length - 1)).toFixed(1)}
/>
}
/>
......
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