TableSummaryTriputra.js 377 KB
Newer Older
syadziy's avatar
syadziy committed
1
import { createMuiTheme, FormControlLabel, MuiThemeProvider, TableCell, Typography } from '@material-ui/core'
Riri Novita's avatar
Riri Novita committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
import MUIDataTable from 'mui-datatables';
import React, { Component } from 'react'
import NumberFormat from 'react-number-format';


var ct = require("../../library/CustomTable");
const getMuiTheme = () => createMuiTheme(ct.customTable3());

const options = ct.customOptionsFixedColumn();
const style = {
    position: "sticky",
    left: 0,
    zIndex: 101,
    background: "white",
};
const style2 = {
    position: "sticky",
    background: "white",
    zIndex: 100
};

export default class TableSummaryTriputra extends Component {
    render() {
        let dataTable2 = this.props.dataTable

        const columnMTD = [
Riri Novita's avatar
Riri Novita committed
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
Riri Novita's avatar
Riri Novita committed
46
            {
Riri Novita's avatar
Riri Novita committed
47
                name: "Company",
Riri Novita's avatar
Riri Novita committed
48
                options: {
Riri Novita's avatar
Riri Novita committed
49 50 51 52 53 54 55 56 57
                    customHeadRender: (columnMeta) => (
                        <TableCell key={columnMeta.index} style={{ ...style, top: 0, zIndex: 102, backgroundColor: '#1c71b8', width: 300, borderRight: '1px #fff solid' }}>
                            <Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'left' }}>{columnMeta.name}</Typography>
                        </TableCell>
                    ),
                    setCellProps: () => ({ style }),
                    customBodyRender: (val, tableMeta) => {
                        return (
                            <div style={{ width: 300 }}>
Riri Novita's avatar
Riri Novita committed
58 59 60 61 62 63 64 65
                                {
                                    tableMeta.rowData[2] == 0 ?
                                        <span style={{ fontSize: 12, fontWeight: 'bold' }}>{String(val).toUpperCase()}</span>
                                        :
                                        <div style={{ paddingLeft: 20 * Number(tableMeta.rowData[2]) }}>
                                            <span style={{ fontSize: 12 }}>{val}</span>
                                        </div>
                                }
Riri Novita's avatar
Riri Novita committed
66 67 68
                            </div>
                        )
                    }
Riri Novita's avatar
Riri Novita committed
69
                }
Riri Novita's avatar
Riri Novita committed
70
            }, {
rifkaki's avatar
rifkaki committed
71
                name: `MTD ${Number(this.props.periode)}`,
Riri Novita's avatar
Riri Novita committed
72 73
                options: {
                    customHeadRender: (columnMeta) => (
Riri Novita's avatar
Riri Novita committed
74
                        <th style={{ ...style2, backgroundColor: '#1c71b8', top: 0, color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
Riri Novita's avatar
Riri Novita committed
75 76
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
                            <div className="grid grid-4x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
Riri Novita's avatar
Riri Novita committed
77
                                <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#07a7d0', height: 65 }}>
Riri Novita's avatar
Riri Novita committed
78
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#1c71b8', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25 }}>
faisalhamdi's avatar
faisalhamdi committed
79
                                        <span>{"Revenue"}</span>
Riri Novita's avatar
Riri Novita committed
80 81
                                    </div>
                                    <div className="grid grid-3x" style={{ height: 25}}>
Riri Novita's avatar
Riri Novita committed
82
                                        <div className="column-1" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
Riri Novita's avatar
Riri Novita committed
83 84
                                            <span>{"Act"}</span>
                                        </div>
Riri Novita's avatar
Riri Novita committed
85
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
Riri Novita's avatar
Riri Novita committed
86 87
                                            <span>{"MB"}</span>
                                        </div>
Riri Novita's avatar
Riri Novita committed
88
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
Riri Novita's avatar
Riri Novita committed
89 90 91 92
                                            <span>{"% of MB"}</span>
                                        </div>
                                    </div>
                                </div>
Riri Novita's avatar
Riri Novita committed
93
                                <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#37b5e6', height: 65 }}>
Riri Novita's avatar
Riri Novita committed
94
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#1c71b8', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25 }}>
Riri Novita's avatar
Riri Novita committed
95 96 97
                                        <span>{"EBITDA"}</span>
                                    </div>
                                    <div className="grid grid-3x" style={{ height: 25}}>
Riri Novita's avatar
Riri Novita committed
98
                                        <div className="column-1" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
Riri Novita's avatar
Riri Novita committed
99 100
                                            <span>{"Act"}</span>
                                        </div>
Riri Novita's avatar
Riri Novita committed
101
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
Riri Novita's avatar
Riri Novita committed
102 103
                                            <span>{"MB"}</span>
                                        </div>
Riri Novita's avatar
Riri Novita committed
104
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
Riri Novita's avatar
Riri Novita committed
105 106 107 108
                                            <span>{"% of MB"}</span>
                                        </div>
                                    </div>
                                </div>
Riri Novita's avatar
Riri Novita committed
109
                                <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#37b5e6', height: 65 }}>
Riri Novita's avatar
Riri Novita committed
110
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#1c71b8', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25 }}>
Riri Novita's avatar
Riri Novita committed
111 112 113
                                        <span>{"TPAT"}</span>
                                    </div>
                                    <div className="grid grid-3x" style={{ height: 25}}>
Riri Novita's avatar
Riri Novita committed
114
                                        <div className="column-1" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
Riri Novita's avatar
Riri Novita committed
115 116
                                            <span>{"Act"}</span>
                                        </div>
Riri Novita's avatar
Riri Novita committed
117
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
Riri Novita's avatar
Riri Novita committed
118 119
                                            <span>{"MB"}</span>
                                        </div>
Riri Novita's avatar
Riri Novita committed
120
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
Riri Novita's avatar
Riri Novita committed
121 122 123 124
                                            <span>{"% of MB"}</span>
                                        </div>
                                    </div>
                                </div>
Riri Novita's avatar
Riri Novita committed
125
                                <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#37b5e6', height: 65 }}>
Riri Novita's avatar
Riri Novita committed
126
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#1c71b8', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25 }}>
Riri Novita's avatar
Riri Novita committed
127 128 129
                                        <span>{"NPAT"}</span>
                                    </div>
                                    <div className="grid grid-3x" style={{ height: 25}}>
Riri Novita's avatar
Riri Novita committed
130
                                        <div className="column-1" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
Riri Novita's avatar
Riri Novita committed
131 132
                                            <span>{"Act"}</span>
                                        </div>
Riri Novita's avatar
Riri Novita committed
133
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
Riri Novita's avatar
Riri Novita committed
134 135
                                            <span>{"MB"}</span>
                                        </div>
Riri Novita's avatar
Riri Novita committed
136
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
Riri Novita's avatar
Riri Novita committed
137 138 139 140 141 142 143 144 145
                                            <span>{"% of MB"}</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
Riri Novita's avatar
Riri Novita committed
146 147 148
                        // if (tableMeta.rowData[3] == "ABA" ) {
                        //     console.log(tableMeta.rowData);
                        // }
Riri Novita's avatar
Riri Novita committed
149 150
                        return (
                            <div>
Riri Novita's avatar
Riri Novita committed
151
                                <div className="grid grid-4x content-center">
Riri Novita's avatar
Riri Novita committed
152 153
                                    <div className="col-1">
                                        <div className="grid grid-3x content-center">
Riri Novita's avatar
Riri Novita committed
154 155 156 157 158 159 160 161
                                            <div className="col-1" style={{ padding: 0, left: -15}} >
                                                <div style={{ flex: 1}}>
                                                    <FormControlLabel
                                                        style={{ margin: 0 }}
                                                        value={val}
                                                        control={
                                                            <NumberFormat
                                                                thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
162
                                                                style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
163 164 165
                                                                type="text"
                                                                placeholder=""
                                                                disabled={true}
Riri Novita's avatar
Riri Novita committed
166
                                                                value={(tableMeta.rowData[4])}
Riri Novita's avatar
Riri Novita committed
167 168 169
                                                            />
                                                        }
                                                    />
Riri Novita's avatar
Riri Novita committed
170 171 172
                                                </div>
                                            </div>
                                            <div className="col-2">
Riri Novita's avatar
Riri Novita committed
173 174 175 176 177 178 179
                                                <div style={{ flex: 1 }}>
                                                    <FormControlLabel
                                                        style={{ margin: 0 }}
                                                        value={val}
                                                        control={
                                                            <NumberFormat
                                                                thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
180
                                                                style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
181 182 183
                                                                type="text"
                                                                placeholder=""
                                                                disabled={true}
Riri Novita's avatar
Riri Novita committed
184
                                                                value={(tableMeta.rowData[5])}
Riri Novita's avatar
Riri Novita committed
185 186 187
                                                            />
                                                        }
                                                    />
Riri Novita's avatar
Riri Novita committed
188 189 190
                                                </div>
                                            </div>
                                            <div className="col-3">
Riri Novita's avatar
Riri Novita committed
191 192 193 194 195 196 197
                                                <div style={{ flex: 1 }}>
                                                    <FormControlLabel
                                                        style={{ margin: 0 }}
                                                        value={val}
                                                        control={
                                                            <NumberFormat
                                                                thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
198
                                                                style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
199 200 201
                                                                type="text"
                                                                placeholder=""
                                                                disabled={true}
Riri Novita's avatar
Riri Novita committed
202 203
                                                                suffix={'%'}
                                                                value={tableMeta.rowData[6]}
Riri Novita's avatar
Riri Novita committed
204 205 206
                                                            />
                                                        }
                                                    />
Riri Novita's avatar
Riri Novita committed
207 208 209 210 211
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div className="col-2">
Riri Novita's avatar
Riri Novita committed
212
                                        <div className="grid grid-3x content-center">
Riri Novita's avatar
Riri Novita committed
213
                                            <div className="col-1">
Riri Novita's avatar
Riri Novita committed
214 215 216 217 218 219 220
                                                <div style={{ flex: 1 }}>
                                                    <FormControlLabel
                                                        style={{ margin: 0 }}
                                                        value={val}
                                                        control={
                                                            <NumberFormat
                                                                thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
221
                                                                style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
222 223 224
                                                                type="text"
                                                                placeholder=""
                                                                disabled={true}
Riri Novita's avatar
Riri Novita committed
225
                                                                value={(tableMeta.rowData[7])}
Riri Novita's avatar
Riri Novita committed
226 227 228
                                                            />
                                                        }
                                                    />
Riri Novita's avatar
Riri Novita committed
229 230 231
                                                </div>
                                            </div>
                                            <div className="col-2">
Riri Novita's avatar
Riri Novita committed
232 233 234 235 236 237 238
                                                <div style={{ flex: 1 }}>
                                                    <FormControlLabel
                                                        style={{ margin: 0 }}
                                                        value={val}
                                                        control={
                                                            <NumberFormat
                                                                thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
239
                                                                style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
240 241 242
                                                                type="text"
                                                                placeholder=""
                                                                disabled={true}
Riri Novita's avatar
Riri Novita committed
243
                                                                value={(tableMeta.rowData[8])}
Riri Novita's avatar
Riri Novita committed
244 245 246
                                                            />
                                                        }
                                                    />
Riri Novita's avatar
Riri Novita committed
247 248 249
                                                </div>
                                            </div>
                                            <div className="col-3">
Riri Novita's avatar
Riri Novita committed
250 251 252 253 254 255 256
                                                <div style={{ flex: 1 }}>
                                                    <FormControlLabel
                                                        style={{ margin: 0 }}
                                                        value={val}
                                                        control={
                                                            <NumberFormat
                                                                thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
257
                                                                style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
258 259 260 261
                                                                type="text"
                                                                placeholder=""
                                                                suffix={'%'}
                                                                disabled={true}
Riri Novita's avatar
Riri Novita committed
262
                                                                value={tableMeta.rowData[9]}
Riri Novita's avatar
Riri Novita committed
263 264 265
                                                            />
                                                        }
                                                    />
Riri Novita's avatar
Riri Novita committed
266 267 268 269 270 271 272
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div className="col-3">
                                        <div className="grid grid-3x content-center">
                                            <div className="col-1">
Riri Novita's avatar
Riri Novita committed
273 274 275 276 277 278 279
                                                <div style={{ flex: 1 }}>
                                                    <FormControlLabel
                                                        style={{ margin: 0 }}
                                                        value={val}
                                                        control={
                                                            <NumberFormat
                                                                thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
280
                                                                style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
281 282 283
                                                                type="text"
                                                                placeholder=""
                                                                disabled={true}
Riri Novita's avatar
Riri Novita committed
284
                                                                value={(tableMeta.rowData[10])}
Riri Novita's avatar
Riri Novita committed
285 286 287
                                                            />
                                                        }
                                                    />
Riri Novita's avatar
Riri Novita committed
288 289 290
                                                </div>
                                            </div>
                                            <div className="col-2">
Riri Novita's avatar
Riri Novita committed
291 292 293 294 295 296 297
                                                <div style={{ flex: 1 }}>
                                                    <FormControlLabel
                                                        style={{ margin: 0 }}
                                                        value={val}
                                                        control={
                                                            <NumberFormat
                                                                thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
298
                                                                style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
299 300 301
                                                                type="text"
                                                                placeholder=""
                                                                disabled={true}
Riri Novita's avatar
Riri Novita committed
302
                                                                value={(tableMeta.rowData[11])}
Riri Novita's avatar
Riri Novita committed
303 304 305
                                                            />
                                                        }
                                                    />
Riri Novita's avatar
Riri Novita committed
306 307 308
                                                </div>
                                            </div>
                                            <div className="col-3">
Riri Novita's avatar
Riri Novita committed
309 310 311 312 313 314 315
                                                <div style={{ flex: 1 }}>
                                                    <FormControlLabel
                                                        style={{ margin: 0 }}
                                                        value={val}
                                                        control={
                                                            <NumberFormat
                                                                thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
316
                                                                style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
317 318 319 320
                                                                type="text"
                                                                placeholder=""
                                                                suffix={'%'}
                                                                disabled={true}
Riri Novita's avatar
Riri Novita committed
321
                                                                value={tableMeta.rowData[12]}
Riri Novita's avatar
Riri Novita committed
322 323 324
                                                            />
                                                        }
                                                    />
Riri Novita's avatar
Riri Novita committed
325 326 327 328 329 330 331
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div className="col-4">
                                        <div className="grid grid-3x content-center">
                                            <div className="col-1">
Riri Novita's avatar
Riri Novita committed
332 333 334 335 336 337 338
                                                <div style={{ flex: 1 }}>
                                                    <FormControlLabel
                                                        style={{ margin: 0 }}
                                                        value={val}
                                                        control={
                                                            <NumberFormat
                                                                thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
339
                                                                style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
340 341 342
                                                                type="text"
                                                                placeholder=""
                                                                disabled={true}
Riri Novita's avatar
Riri Novita committed
343
                                                                value={(tableMeta.rowData[13])}
Riri Novita's avatar
Riri Novita committed
344 345 346
                                                            />
                                                        }
                                                    />
Riri Novita's avatar
Riri Novita committed
347 348 349
                                                </div>
                                            </div>
                                            <div className="col-2">
Riri Novita's avatar
Riri Novita committed
350 351 352 353 354 355 356
                                                <div style={{ flex: 1 }}>
                                                    <FormControlLabel
                                                        style={{ margin: 0 }}
                                                        value={val}
                                                        control={
                                                            <NumberFormat
                                                                thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
357
                                                                style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
358 359 360
                                                                type="text"
                                                                placeholder=""
                                                                disabled={true}
Riri Novita's avatar
Riri Novita committed
361
                                                                value={(tableMeta.rowData[14])}
Riri Novita's avatar
Riri Novita committed
362 363 364
                                                            />
                                                        }
                                                    />
Riri Novita's avatar
Riri Novita committed
365 366 367
                                                </div>
                                            </div>
                                            <div className="col-3">
Riri Novita's avatar
Riri Novita committed
368 369 370 371 372 373 374
                                                <div style={{ flex: 1 }}>
                                                    <FormControlLabel
                                                        style={{ margin: 0 }}
                                                        value={val}
                                                        control={
                                                            <NumberFormat
                                                                thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
375
                                                                style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
376 377 378 379
                                                                type="text"
                                                                placeholder=""
                                                                suffix={'%'}
                                                                disabled={true}
Riri Novita's avatar
Riri Novita committed
380
                                                                value={tableMeta.rowData[15]}
Riri Novita's avatar
Riri Novita committed
381 382 383
                                                            />
                                                        }
                                                    />
Riri Novita's avatar
Riri Novita committed
384 385 386 387 388 389 390 391 392
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        )
                    }
                },
Riri Novita's avatar
Riri Novita committed
393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
Riri Novita's avatar
Riri Novita committed
453
            },  {
rifkaki's avatar
rifkaki committed
454
                name: `MTD ${Number(this.props.periode)} (OPTIONAL)`,
Riri Novita's avatar
Riri Novita committed
455 456
                options: {
                    customHeadRender: (columnMeta) => (
Riri Novita's avatar
Riri Novita committed
457
                        <th style={{ ...style2, backgroundColor: '#1c71b8', top: 0, color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
Riri Novita's avatar
Riri Novita committed
458
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
Riri Novita's avatar
Riri Novita committed
459 460
                            <div className="column-5" style={{ ...style2, display: 'flex', backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#07a7d0', height: 65, width: 685 }}>
Riri Novita's avatar
Riri Novita committed
461 462 463 464 465 466
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#1c71b8', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25 }}>
                                        <span>{"Cash Flow"}</span>
                                    </div>
                                    <div className="grid grid-4x" style={{ height: 25}}>
                                        <div className="column-1" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                            <span>{"CFO"}</span>
Riri Novita's avatar
Riri Novita committed
467
                                        </div>
Riri Novita's avatar
Riri Novita committed
468 469 470 471 472 473 474 475
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                            <span>{"CFI"}</span>
                                        </div>
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                            <span>{"CFF"}</span>
                                        </div>
                                        <div className="column-4" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                            <span>{"Net CF"}</span>
Riri Novita's avatar
Riri Novita committed
476 477
                                        </div>
                                    </div>
Riri Novita's avatar
Riri Novita committed
478
                                </div>
Riri Novita's avatar
Riri Novita committed
479
                                <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#37b5e6', height: 65, width: 685 }}>
Riri Novita's avatar
Riri Novita committed
480
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#37b5e6', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25, color: '#000000c4' }}>
Riri Novita's avatar
Riri Novita committed
481
                                        <span>{"OS Bank Loan"}</span>
Riri Novita's avatar
Riri Novita committed
482
                                    </div>
Riri Novita's avatar
Riri Novita committed
483 484 485
                                    <div className="grid grid-4x" style={{ height: 25}}>
                                        <div className="column-1" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                            <span>{"KI"}</span>
Riri Novita's avatar
Riri Novita committed
486
                                        </div>
Riri Novita's avatar
Riri Novita committed
487 488 489 490 491 492 493 494
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                            <span>{"WC"}</span>
                                        </div>
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                            <span>{"Others"}</span>
                                        </div>
                                        <div className="column-4" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                            <span>{"Total"}</span>
Riri Novita's avatar
Riri Novita committed
495 496 497
                                        </div>
                                    </div>
                                </div>
Riri Novita's avatar
Riri Novita committed
498
                                <div className="column-3" style={{ placeSelf: 'center', borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', width: 200, alignItems: 'center', backgroundColor: '#07a7d0', height: 65 }}>
Riri Novita's avatar
Riri Novita committed
499 500
                                    <span>{"OS SHL"}</span>
                                </div>
Riri Novita's avatar
Riri Novita committed
501
                                <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#37b5e6', height: 65, width: 685 }}>
Riri Novita's avatar
Riri Novita committed
502
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#37b5e6', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25, color: '#000000c4' }}>
Riri Novita's avatar
Riri Novita committed
503 504 505 506 507 508 509 510 511 512 513
                                        <span>{"Balance Sheet"}</span>
                                    </div>
                                    <div className="grid grid-4x" style={{ height: 25}}>
                                        <div className="column-1" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                            <span>{"Cash & Bank"}</span>
                                        </div>
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                            <span>{"CA"}</span>
                                        </div>
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                            <span>{"CL"}</span>
Riri Novita's avatar
Riri Novita committed
514
                                        </div>
Riri Novita's avatar
Riri Novita committed
515 516 517 518 519
                                        <div className="column-4" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                            <span>{"Equity"}</span>
                                        </div>
                                    </div>
                                </div>
Riri Novita's avatar
Riri Novita committed
520
                                <div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#37b5e6', height: 65, width: 887 }}>
Riri Novita's avatar
Riri Novita committed
521
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#37b5e6', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25, color: '#000000c4' }}>
Riri Novita's avatar
Riri Novita committed
522 523 524 525 526 527
                                        <span>{"Financial Ratio"}</span>
                                    </div>
                                    <div className="grid grid-2x" style={{ height: 25}}>
                                        <div className="column-1 grid grid-4x" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0' }}>
                                            <div className="column-1" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                                <span>{"CR"}</span>
Riri Novita's avatar
Riri Novita committed
528
                                            </div>
Riri Novita's avatar
Riri Novita committed
529 530
                                            <div className="column-2" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                                <span>{"DER"}</span>
Riri Novita's avatar
Riri Novita committed
531
                                            </div>
Riri Novita's avatar
Riri Novita committed
532 533 534 535 536
                                            <div className="column-3" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                                <span>{"Debt to EBITDA"}</span>
                                            </div>
                                            <div className="column-4" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                                <span>{"to Interest"}</span>
Riri Novita's avatar
Riri Novita committed
537 538
                                            </div>
                                        </div>
Riri Novita's avatar
Riri Novita committed
539 540 541 542 543 544
                                        <div className="column-2 grid grid-4x" style={{ justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0' }}>
                                            <div className="column-1" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                                <span>{"AR Days"}</span>
                                            </div>
                                            <div className="column-2" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                                <span>{"Inv Days"}</span>
Riri Novita's avatar
Riri Novita committed
545
                                            </div>
Riri Novita's avatar
Riri Novita committed
546 547
                                            <div className="column-3" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                                <span>{"AP Days"}</span>
Riri Novita's avatar
Riri Novita committed
548
                                            </div>
Riri Novita's avatar
Riri Novita committed
549 550
                                            <div className="column-4" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                                <span>{"CCC"}</span>
Riri Novita's avatar
Riri Novita committed
551 552 553 554 555 556 557 558 559 560 561
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
Riri Novita's avatar
Riri Novita committed
562 563
                                <div  style={{ display: 'flex', justifyContent: 'space-between'}}>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
Riri Novita's avatar
Riri Novita committed
564 565 566 567 568 569 570
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
571
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
572 573 574
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
575
                                                        value={(tableMeta.rowData[16])}
Riri Novita's avatar
Riri Novita committed
576 577 578 579 580 581 582 583 584 585 586
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
587
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
588 589 590
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
591
                                                        value={(tableMeta.rowData[17])}
Riri Novita's avatar
Riri Novita committed
592 593 594 595 596 597 598 599 600 601 602
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
603
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
604 605 606
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
607
                                                        value={(tableMeta.rowData[18])}
Riri Novita's avatar
Riri Novita committed
608 609 610 611 612 613 614 615 616 617 618
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
619
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
620 621 622
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
623
                                                        value={(tableMeta.rowData[19])}
Riri Novita's avatar
Riri Novita committed
624 625 626
                                                    />
                                                }
                                            />
Riri Novita's avatar
Riri Novita committed
627 628 629
                                        </div>
                                    </div>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
Riri Novita's avatar
Riri Novita committed
630 631 632 633 634 635 636
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
637
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
638 639 640
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
641
                                                        value={(tableMeta.rowData[20])}
Riri Novita's avatar
Riri Novita committed
642 643 644 645 646 647 648 649 650 651 652
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
653
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
654 655 656
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
657
                                                        value={(tableMeta.rowData[21])}
Riri Novita's avatar
Riri Novita committed
658 659 660 661 662 663 664 665 666 667 668
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
669
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
670 671 672
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
673
                                                        value={(tableMeta.rowData[22])}
Riri Novita's avatar
Riri Novita committed
674 675 676 677 678 679 680 681 682 683 684
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
685
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
686 687 688
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
689
                                                        value={(tableMeta.rowData[23])}
Riri Novita's avatar
Riri Novita committed
690 691 692
                                                    />
                                                }
                                            />
Riri Novita's avatar
Riri Novita committed
693 694 695
                                        </div>
                                    </div>
                                    <div style={{ display: 'grid', width: 150 }}>
Riri Novita's avatar
Riri Novita committed
696 697 698 699 700 701 702
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
703
                                                        style={{color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
704 705 706
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
707
                                                        value={(tableMeta.rowData[24])}
Riri Novita's avatar
Riri Novita committed
708 709 710
                                                    />
                                                }
                                            />
Riri Novita's avatar
Riri Novita committed
711 712 713
                                        </div>
                                    </div>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
Riri Novita's avatar
Riri Novita committed
714 715 716 717 718 719 720
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
721
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
722 723 724
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
725
                                                        value={(tableMeta.rowData[25])}
Riri Novita's avatar
Riri Novita committed
726 727 728 729 730 731 732 733 734 735 736
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
737
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
738 739 740
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
741
                                                        value={(tableMeta.rowData[26])}
Riri Novita's avatar
Riri Novita committed
742 743 744 745 746 747 748 749 750 751 752
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
753
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
754 755 756
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
757
                                                        value={(tableMeta.rowData[27])}
Riri Novita's avatar
Riri Novita committed
758 759 760 761 762 763 764 765 766 767 768
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
769
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
770 771 772
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
773
                                                        value={(tableMeta.rowData[28])}
Riri Novita's avatar
Riri Novita committed
774 775 776
                                                    />
                                                }
                                            />
Riri Novita's avatar
Riri Novita committed
777 778
                                        </div>
                                    </div>
Riri Novita's avatar
Riri Novita committed
779 780 781 782 783 784 785 786
                                    <div style={{ display: 'flex', width: 860, justifyContent: 'space-between'}}>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
787
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
788 789 790
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
791
                                                        value={(tableMeta.rowData[29])}
Riri Novita's avatar
Riri Novita committed
792 793 794 795 796 797 798 799 800 801 802
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
803
                                                        style={{color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
804 805 806
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
807
                                                        value={(tableMeta.rowData[30])}
Riri Novita's avatar
Riri Novita committed
808 809 810 811 812 813 814 815 816 817 818
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
819
                                                        style={{color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
820 821 822
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
823
                                                        value={(tableMeta.rowData[31])}
Riri Novita's avatar
Riri Novita committed
824 825 826 827 828 829 830 831 832 833 834
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
835
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
836 837 838
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
839
                                                        value={(tableMeta.rowData[32])}
Riri Novita's avatar
Riri Novita committed
840 841 842 843 844 845 846 847 848 849 850
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
851
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
852 853 854
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
855
                                                        value={(tableMeta.rowData[33])}
Riri Novita's avatar
Riri Novita committed
856 857 858 859 860 861 862 863 864 865 866
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
867
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
868 869 870
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
871
                                                        value={(tableMeta.rowData[34])}
Riri Novita's avatar
Riri Novita committed
872 873 874 875 876 877 878 879 880 881 882
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
883
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
884 885 886
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
887
                                                        value={(tableMeta.rowData[35])}
Riri Novita's avatar
Riri Novita committed
888 889 890 891 892 893 894 895 896 897 898
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
899
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
900 901 902
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
903
                                                        value={(tableMeta.rowData[36])}
Riri Novita's avatar
Riri Novita committed
904 905 906
                                                    />
                                                }
                                            />
Riri Novita's avatar
Riri Novita committed
907 908 909
                                        </div>
                                    </div>
                                </div>
Riri Novita's avatar
Riri Novita committed
910 911 912 913
                            </div>
                        )
                    }
                },
Riri Novita's avatar
Riri Novita committed
914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
Riri Novita's avatar
Riri Novita committed
1009 1010 1011 1012 1013
            }, {
                name: "",
                options: {
                    display: false
                }
Riri Novita's avatar
Riri Novita committed
1014 1015 1016 1017
            }
        ]

        const columnYTD = [
rifkaki's avatar
rifkaki committed
1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
Riri Novita's avatar
Riri Novita committed
1036
            {
r.kurnia's avatar
r.kurnia committed
1037
                name: "Company",
Riri Novita's avatar
Riri Novita committed
1038
                options: {
r.kurnia's avatar
r.kurnia committed
1039 1040 1041 1042 1043 1044 1045 1046 1047
                    customHeadRender: (columnMeta) => (
                        <TableCell key={columnMeta.index} style={{ ...style, top: 0, zIndex: 102, backgroundColor: '#1c71b8', width: 300 }}>
                            <Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'left' }}>{columnMeta.name}</Typography>
                        </TableCell>
                    ),
                    setCellProps: () => ({ style }),
                    customBodyRender: (val, tableMeta) => {
                        return (
                            <div style={{ width: 300 }}>
rifkaki's avatar
rifkaki committed
1048 1049 1050 1051 1052 1053 1054 1055
                                {
                                    tableMeta.rowData[2] == 0 ?
                                        <span style={{ fontSize: 12, fontWeight: 'bold' }}>{String(val).toUpperCase()}</span>
                                        :
                                        <div style={{ paddingLeft: 20 * Number(tableMeta.rowData[2]) }}>
                                            <span style={{ fontSize: 12 }}>{val}</span>
                                        </div>
                                }
r.kurnia's avatar
r.kurnia committed
1056 1057 1058 1059 1060 1061 1062 1063
                            </div>
                        )
                    }
                }
            }, {
                name: `Revenue`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
1064
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)", paddingLeft: 0 }} >
r.kurnia's avatar
r.kurnia committed
1065 1066 1067 1068
                            <div style={{ borderLeft: '2px #fff solid', borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', fontSize: 12, fontWeight: 'bold', padding: 5, height: 40 }}>{columnMeta.name}</div>
                            <div className="column-3" style={{ ...style2, display: 'flex', backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#07a7d0', height: 66, width: 685 }}>
                                    <div style={{ borderLeft: '1px #fff solid', borderBottom: '1px #fff solid', backgroundColor: '#1c71b8', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25 }}>
rifkaki's avatar
rifkaki committed
1069
                                        <span>{`YTD ${this.props.periode}`}</span>
r.kurnia's avatar
r.kurnia committed
1070
                                    </div>
r.kurnia's avatar
r.kurnia committed
1071 1072
                                    <div className="grid grid-5x" style={{ height: 25}}>
                                        <div className="column-1" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
r.kurnia's avatar
r.kurnia committed
1073
                                            <span>{"Act"}</span>
r.kurnia's avatar
r.kurnia committed
1074
                                        </div>
Riri Novita's avatar
Riri Novita committed
1075
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
r.kurnia's avatar
r.kurnia committed
1076
                                            <span>{"MB"}</span>
r.kurnia's avatar
r.kurnia committed
1077
                                        </div>
Riri Novita's avatar
Riri Novita committed
1078
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
r.kurnia's avatar
r.kurnia committed
1079
                                            <span>{"% of MB"}</span>
r.kurnia's avatar
r.kurnia committed
1080
                                        </div>
r.kurnia's avatar
r.kurnia committed
1081
                                        <div className="column-4" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1082
                                            <span>{`${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1083
                                        </div>
r.kurnia's avatar
r.kurnia committed
1084
                                        <div className="column-5" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1085
                                            <span>{`% of ${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1086 1087
                                        </div>
                                    </div>
r.kurnia's avatar
r.kurnia committed
1088
                                </div>
r.kurnia's avatar
r.kurnia committed
1089 1090
                                <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#37b5e6', height: 66, width: 685 }}>
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#1c71b8', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25 }}>
r.kurnia's avatar
r.kurnia committed
1091
                                        <span>{"FY"}</span>
r.kurnia's avatar
r.kurnia committed
1092
                                    </div>
rifkaki's avatar
rifkaki committed
1093
                                    <div className="grid grid-5x" style={{ height: 25 }}>
Riri Novita's avatar
Riri Novita committed
1094
                                        <div className="column-1" style={{ justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
rifkaki's avatar
rifkaki committed
1095
                                            <span>{`OL ${Number(this.props.periode)}`}</span>
r.kurnia's avatar
r.kurnia committed
1096
                                        </div>
Riri Novita's avatar
Riri Novita committed
1097
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
rifkaki's avatar
rifkaki committed
1098
                                            <span>{`MB ${Number(this.props.periode)}`}</span>
r.kurnia's avatar
r.kurnia committed
1099
                                        </div>
Riri Novita's avatar
Riri Novita committed
1100
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
r.kurnia's avatar
r.kurnia committed
1101
                                            <span>{"% of MB"}</span>
r.kurnia's avatar
r.kurnia committed
1102
                                        </div>
r.kurnia's avatar
r.kurnia committed
1103
                                        <div className="column-4" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1104
                                            <span>{`${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1105
                                        </div>
rifkaki's avatar
rifkaki committed
1106
                                        <div className="column-5" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1107
                                            <span>{`% of ${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1108 1109
                                        </div>
                                    </div>
r.kurnia's avatar
r.kurnia committed
1110
                                </div>
r.kurnia's avatar
r.kurnia committed
1111 1112 1113
                            </div>
                        </th>
                    ),
r.kurnia's avatar
r.kurnia committed
1114
                    setCellProps: () => ({ style2 }),
r.kurnia's avatar
r.kurnia committed
1115 1116 1117
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
r.kurnia's avatar
r.kurnia committed
1118 1119
                                <div style={{ display: 'flex', justifyContent: 'space-between'}}>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
1120 1121 1122 1123 1124 1125 1126
                                        <div style={{ flex: 1 }}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1127
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1128 1129 1130
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1131
                                                        value={(tableMeta.rowData[4])}
rifkaki's avatar
rifkaki committed
1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1143
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1144 1145 1146
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1147
                                                        value={(tableMeta.rowData[5])}
rifkaki's avatar
rifkaki committed
1148 1149 1150
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1151
                                        </div>
rifkaki's avatar
rifkaki committed
1152 1153 1154 1155 1156 1157 1158
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1159
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1160 1161 1162
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
1163
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
1164 1165
                                                        value={(tableMeta.rowData[6])}
                                                        // value={Number(String(tableMeta.rowData[6]).substr(0, String(tableMeta.rowData[6]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
1166 1167 1168
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1169
                                        </div>
rifkaki's avatar
rifkaki committed
1170 1171 1172 1173 1174 1175 1176
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1177
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1178 1179 1180
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1181
                                                        value={(tableMeta.rowData[7])}
rifkaki's avatar
rifkaki committed
1182 1183 1184
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1185
                                        </div>
rifkaki's avatar
rifkaki committed
1186 1187 1188 1189 1190 1191 1192
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1193
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1194 1195 1196
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
1197
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
1198 1199
                                                        value={tableMeta.rowData[8]}
                                                        // value={Number(String(tableMeta.rowData[8]).substr(0, String(tableMeta.rowData[8]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
1200 1201 1202
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1203 1204
                                        </div>
                                    </div>
r.kurnia's avatar
r.kurnia committed
1205
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
1206 1207 1208 1209 1210 1211 1212
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1213
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1214 1215 1216
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1217
                                                        value={(tableMeta.rowData[9])}
rifkaki's avatar
rifkaki committed
1218 1219 1220
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1221
                                        </div>
rifkaki's avatar
rifkaki committed
1222 1223 1224 1225 1226 1227 1228
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1229
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1230 1231 1232
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1233
                                                        value={(tableMeta.rowData[10])}
rifkaki's avatar
rifkaki committed
1234 1235 1236
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1237
                                        </div>
rifkaki's avatar
rifkaki committed
1238 1239 1240 1241 1242 1243 1244
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1245
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1246 1247 1248
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
1249
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
1250 1251
                                                        value={tableMeta.rowData[11]}
                                                        // value={Number(String(tableMeta.rowData[11]).substr(0, String(tableMeta.rowData[11]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
1252 1253 1254
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1255
                                        </div>
rifkaki's avatar
rifkaki committed
1256 1257 1258 1259 1260 1261 1262
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1263
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1264 1265 1266
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1267
                                                        value={(tableMeta.rowData[12])}
rifkaki's avatar
rifkaki committed
1268 1269 1270
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1271
                                        </div>
rifkaki's avatar
rifkaki committed
1272 1273 1274 1275 1276 1277 1278
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1279
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1280 1281 1282
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
1283
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
1284 1285
                                                        value={tableMeta.rowData[13]}
                                                        // value={Number(String(tableMeta.rowData[13]).substr(0, String(tableMeta.rowData[13]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
1286 1287 1288
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1289 1290 1291 1292 1293 1294 1295
                                        </div>
                                    </div>
                                </div>
                            </div>
                        )
                    }
                }
rifkaki's avatar
rifkaki committed
1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
r.kurnia's avatar
r.kurnia committed
1356 1357 1358 1359
            }, {
                name: `EBITDA`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
1360
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)", paddingLeft: 0 }} >
r.kurnia's avatar
r.kurnia committed
1361 1362 1363 1364
                            <div style={{ borderLeft: '1px #fff solid', borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', fontSize: 12, fontWeight: 'bold', padding: 5, height: 40 }}>{columnMeta.name}</div>
                            <div className="column-3" style={{ ...style2, display: 'flex', backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#07a7d0', height: 66, width: 685 }}>
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#1c71b8', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25 }}>
rifkaki's avatar
rifkaki committed
1365
                                        <span>{`YTD ${Number(this.props.periode)}`}</span>
r.kurnia's avatar
r.kurnia committed
1366 1367 1368 1369
                                    </div>
                                    <div className="grid grid-5x" style={{ height: 25}}>
                                        <div className="column-1" style={{ justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
                                            <span>{"Act"}</span>
r.kurnia's avatar
r.kurnia committed
1370
                                        </div>
Riri Novita's avatar
Riri Novita committed
1371
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
r.kurnia's avatar
r.kurnia committed
1372 1373
                                            <span>{"MB"}</span>
                                        </div>
Riri Novita's avatar
Riri Novita committed
1374
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
r.kurnia's avatar
r.kurnia committed
1375 1376 1377
                                            <span>{"% of MB"}</span>
                                        </div>
                                        <div className="column-4" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1378
                                            <span>{`${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1379
                                        </div>
r.kurnia's avatar
r.kurnia committed
1380
                                        <div className="column-5" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1381
                                            <span>{`% of ${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1382
                                        </div>
r.kurnia's avatar
r.kurnia committed
1383
                                    </div>
r.kurnia's avatar
r.kurnia committed
1384 1385 1386 1387 1388
                                </div>
                                <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#37b5e6', height: 66, width: 685 }}>
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#1c71b8', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25 }}>
                                        <span>{"FY"}</span>
                                    </div>
rifkaki's avatar
rifkaki committed
1389
                                    <div className="grid grid-5x" style={{ height: 25 }}>
Riri Novita's avatar
Riri Novita committed
1390
                                        <div className="column-1" style={{ justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
rifkaki's avatar
rifkaki committed
1391
                                            <span>{`OL ${Number(this.props.periode)}`}</span>
r.kurnia's avatar
r.kurnia committed
1392
                                        </div>
Riri Novita's avatar
Riri Novita committed
1393
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
rifkaki's avatar
rifkaki committed
1394
                                            <span>{`MB ${Number(this.props.periode)}`}</span>
r.kurnia's avatar
r.kurnia committed
1395
                                        </div>
Riri Novita's avatar
Riri Novita committed
1396
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
r.kurnia's avatar
r.kurnia committed
1397 1398 1399
                                            <span>{"% of MB"}</span>
                                        </div>
                                        <div className="column-4" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1400
                                            <span>{`${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1401
                                        </div>
rifkaki's avatar
rifkaki committed
1402
                                        <div className="column-5" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1403
                                            <span>{`% of ${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1404 1405 1406
                                        </div>
                                    </div>
                                </div>
r.kurnia's avatar
r.kurnia committed
1407 1408 1409 1410 1411 1412 1413
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
r.kurnia's avatar
r.kurnia committed
1414 1415
                                <div style={{ display: 'flex', justifyContent: 'space-between'}}>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
1416 1417 1418 1419 1420 1421 1422
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1423
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1424 1425 1426
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1427
                                                        value={(tableMeta.rowData[14])}
rifkaki's avatar
rifkaki committed
1428 1429 1430
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1431
                                        </div>
rifkaki's avatar
rifkaki committed
1432 1433 1434 1435 1436 1437 1438
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1439
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1440 1441 1442
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1443
                                                        value={(tableMeta.rowData[15])}
rifkaki's avatar
rifkaki committed
1444 1445 1446
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1447
                                        </div>
rifkaki's avatar
rifkaki committed
1448 1449 1450 1451 1452 1453 1454
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1455
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1456 1457 1458
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
1459
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
1460 1461
                                                        value={tableMeta.rowData[16]}
                                                        // value={Number(String(tableMeta.rowData[16]).substr(0, String(tableMeta.rowData[16]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
1462 1463 1464
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1465
                                        </div>
rifkaki's avatar
rifkaki committed
1466 1467 1468 1469 1470 1471 1472
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1473
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1474 1475 1476
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1477
                                                        value={(tableMeta.rowData[17])}
rifkaki's avatar
rifkaki committed
1478 1479 1480
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1481
                                        </div>
rifkaki's avatar
rifkaki committed
1482 1483 1484 1485 1486 1487 1488
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1489
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1490 1491 1492
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
1493
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
1494 1495
                                                        value={tableMeta.rowData[18]}
                                                        // value={Number(String(tableMeta.rowData[18]).substr(0, String(tableMeta.rowData[18]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
1496 1497 1498
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1499 1500
                                        </div>
                                    </div>
r.kurnia's avatar
r.kurnia committed
1501
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
1502 1503 1504 1505 1506 1507 1508
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1509
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1510 1511 1512
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1513
                                                        value={(tableMeta.rowData[19])}
rifkaki's avatar
rifkaki committed
1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1525
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1526 1527 1528
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1529
                                                        value={(tableMeta.rowData[20])}
rifkaki's avatar
rifkaki committed
1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1541
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1542 1543 1544
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
1545
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
1546 1547
                                                        value={tableMeta.rowData[21]}
                                                        // value={Number(String(tableMeta.rowData[21]).substr(0, String(tableMeta.rowData[21]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1559
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1560 1561 1562
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1563
                                                        value={(tableMeta.rowData[22])}
rifkaki's avatar
rifkaki committed
1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1575
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1576 1577 1578
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
1579 1580
                                                        suffix={"%"}
                                                        value={tableMeta.rowData[23]}
Riri Novita's avatar
Riri Novita committed
1581
                                                        // value={Number(String(tableMeta.rowData[23]).substr(0, String(tableMeta.rowData[23]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
1582 1583 1584 1585 1586 1587 1588 1589
                                                    />
                                                }
                                            />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        )
r.kurnia's avatar
r.kurnia committed
1590 1591
                    }
                }
rifkaki's avatar
rifkaki committed
1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
r.kurnia's avatar
r.kurnia committed
1658 1659 1660 1661
            }, {
                name: `TPAT`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
1662
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)", paddingLeft: 0 }} >
r.kurnia's avatar
r.kurnia committed
1663 1664 1665 1666
                            <div style={{ borderLeft: '1px #fff solid', borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', fontSize: 12, fontWeight: 'bold', padding: 5, height: 40 }}>{columnMeta.name}</div>
                            <div className="column-3" style={{ ...style2, display: 'flex', backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#07a7d0', height: 66, width: 685 }}>
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#1c71b8', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25 }}>
rifkaki's avatar
rifkaki committed
1667
                                        <span>{`YTD ${Number(this.props.periode)}`}</span>
r.kurnia's avatar
r.kurnia committed
1668 1669 1670 1671
                                    </div>
                                    <div className="grid grid-5x" style={{ height: 25}}>
                                        <div className="column-1" style={{ justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
                                            <span>{"Act"}</span>
r.kurnia's avatar
r.kurnia committed
1672
                                        </div>
Riri Novita's avatar
Riri Novita committed
1673
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
r.kurnia's avatar
r.kurnia committed
1674 1675
                                            <span>{"MB"}</span>
                                        </div>
Riri Novita's avatar
Riri Novita committed
1676
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
r.kurnia's avatar
r.kurnia committed
1677 1678 1679
                                            <span>{"% of MB"}</span>
                                        </div>
                                        <div className="column-4" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1680
                                            <span>{`${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1681 1682
                                        </div>
                                        <div className="column-5" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1683
                                            <span>{`% of ${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1684 1685 1686 1687 1688 1689 1690
                                        </div>
                                    </div>
                                </div>
                                <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#37b5e6', height: 66, width: 685 }}>
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#1c71b8', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25 }}>
                                        <span>{"FY"}</span>
                                    </div>
rifkaki's avatar
rifkaki committed
1691
                                    <div className="grid grid-5x" style={{ height: 25 }}>
Riri Novita's avatar
Riri Novita committed
1692
                                        <div className="column-1" style={{ justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
rifkaki's avatar
rifkaki committed
1693
                                            <span>{`OL ${Number(this.props.periode)}`}</span>
r.kurnia's avatar
r.kurnia committed
1694
                                        </div>
Riri Novita's avatar
Riri Novita committed
1695
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
rifkaki's avatar
rifkaki committed
1696
                                            <span>{`MB ${Number(this.props.periode)}`}</span>
r.kurnia's avatar
r.kurnia committed
1697
                                        </div>
Riri Novita's avatar
Riri Novita committed
1698
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
r.kurnia's avatar
r.kurnia committed
1699 1700 1701
                                            <span>{"% of MB"}</span>
                                        </div>
                                        <div className="column-4" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1702
                                            <span>{`${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1703
                                        </div>
rifkaki's avatar
rifkaki committed
1704
                                        <div className="column-5" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1705
                                            <span>{`% of ${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
                                <div style={{ display: 'flex', justifyContent: 'space-between'}}>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
1718 1719 1720 1721 1722 1723 1724
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1725
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1726 1727 1728
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1729
                                                        value={(tableMeta.rowData[24])}
rifkaki's avatar
rifkaki committed
1730 1731 1732
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1733
                                        </div>
rifkaki's avatar
rifkaki committed
1734 1735 1736 1737 1738 1739 1740
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1741
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1742 1743 1744
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1745
                                                        value={(tableMeta.rowData[25])}
rifkaki's avatar
rifkaki committed
1746 1747 1748
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1749
                                        </div>
rifkaki's avatar
rifkaki committed
1750 1751 1752 1753 1754 1755 1756
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1757
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1758 1759 1760
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
1761
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
1762 1763
                                                        value={tableMeta.rowData[26]}
                                                        // value={Number(String(tableMeta.rowData[26]).substr(0, String(tableMeta.rowData[26]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
1764 1765 1766
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1767
                                        </div>
rifkaki's avatar
rifkaki committed
1768 1769 1770 1771 1772 1773 1774
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1775
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1776 1777 1778
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1779
                                                        value={(tableMeta.rowData[27])}
rifkaki's avatar
rifkaki committed
1780 1781 1782
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1783
                                        </div>
rifkaki's avatar
rifkaki committed
1784 1785 1786 1787 1788 1789 1790
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1791
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1792 1793 1794
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
1795
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
1796 1797
                                                        value={tableMeta.rowData[28]}
                                                        // value={Number(String(tableMeta.rowData[28]).substr(0, String(tableMeta.rowData[28]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
1798 1799 1800
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1801 1802 1803
                                        </div>
                                    </div>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
1804 1805 1806 1807 1808 1809 1810
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1811
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1812 1813 1814
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1815
                                                        value={(tableMeta.rowData[29])}
rifkaki's avatar
rifkaki committed
1816 1817 1818
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1819
                                        </div>
rifkaki's avatar
rifkaki committed
1820 1821 1822 1823 1824 1825 1826
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1827
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1828 1829 1830
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1831
                                                        value={(tableMeta.rowData[30])}
rifkaki's avatar
rifkaki committed
1832 1833 1834
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1835
                                        </div>
rifkaki's avatar
rifkaki committed
1836 1837 1838 1839 1840 1841 1842
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1843
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1844 1845 1846
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
1847
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
1848 1849
                                                        value={tableMeta.rowData[31]}
                                                        // value={Number(String(tableMeta.rowData[31]).substr(0, String(tableMeta.rowData[31]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
1850 1851 1852
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1853
                                        </div>
rifkaki's avatar
rifkaki committed
1854 1855 1856 1857 1858 1859 1860
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1861
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1862 1863 1864
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1865
                                                        value={(tableMeta.rowData[32])}
rifkaki's avatar
rifkaki committed
1866 1867 1868
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1869
                                        </div>
rifkaki's avatar
rifkaki committed
1870 1871 1872 1873 1874 1875 1876
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1877
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1878 1879 1880
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
1881
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
1882 1883
                                                        value={tableMeta.rowData[33]}
                                                        // value={Number(String(tableMeta.rowData[33]).substr(0, String(tableMeta.rowData[33]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
1884 1885 1886
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1887 1888 1889 1890 1891 1892 1893
                                        </div>
                                    </div>
                                </div>
                            </div>
                        )
                    }
                }
rifkaki's avatar
rifkaki committed
1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
r.kurnia's avatar
r.kurnia committed
1960 1961 1962 1963
            }, {
                name: `NPAT`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
1964
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)", paddingLeft: 0 }} >
r.kurnia's avatar
r.kurnia committed
1965 1966 1967 1968
                            <div style={{ borderLeft: '1px #fff solid', borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', fontSize: 12, fontWeight: 'bold', padding: 5, height: 40 }}>{columnMeta.name}</div>
                            <div className="column-3" style={{ ...style2, display: 'flex', backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#07a7d0', height: 66, width: 685 }}>
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#1c71b8', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25 }}>
rifkaki's avatar
rifkaki committed
1969
                                        <span>{`YTD ${Number(this.props.periode)}`}</span>
r.kurnia's avatar
r.kurnia committed
1970 1971 1972 1973 1974
                                    </div>
                                    <div className="grid grid-5x" style={{ height: 25}}>
                                        <div className="column-1" style={{ justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
                                            <span>{"Act"}</span>
                                        </div>
Riri Novita's avatar
Riri Novita committed
1975
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
r.kurnia's avatar
r.kurnia committed
1976 1977
                                            <span>{"MB"}</span>
                                        </div>
Riri Novita's avatar
Riri Novita committed
1978
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
r.kurnia's avatar
r.kurnia committed
1979 1980 1981
                                            <span>{"% of MB"}</span>
                                        </div>
                                        <div className="column-4" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1982
                                            <span>{`${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1983 1984
                                        </div>
                                        <div className="column-5" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1985
                                            <span>{`% of ${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1986 1987 1988 1989 1990 1991 1992
                                        </div>
                                    </div>
                                </div>
                                <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#37b5e6', height: 66, width: 685 }}>
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#1c71b8', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25 }}>
                                        <span>{"FY"}</span>
                                    </div>
rifkaki's avatar
rifkaki committed
1993
                                    <div className="grid grid-5x" style={{ height: 25 }}>
Riri Novita's avatar
Riri Novita committed
1994
                                        <div className="column-1" style={{ justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
rifkaki's avatar
rifkaki committed
1995
                                            <span>{`OL ${Number(this.props.periode)}`}</span>
r.kurnia's avatar
r.kurnia committed
1996
                                        </div>
Riri Novita's avatar
Riri Novita committed
1997
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
rifkaki's avatar
rifkaki committed
1998
                                            <span>{`MB ${Number(this.props.periode)}`}</span>
r.kurnia's avatar
r.kurnia committed
1999
                                        </div>
Riri Novita's avatar
Riri Novita committed
2000
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
r.kurnia's avatar
r.kurnia committed
2001 2002 2003
                                            <span>{"% of MB"}</span>
                                        </div>
                                        <div className="column-4" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
2004
                                            <span>{`${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
2005
                                        </div>
rifkaki's avatar
rifkaki committed
2006
                                        <div className="column-5" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
2007
                                            <span>{`% of ${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
                                <div style={{ display: 'flex', justifyContent: 'space-between'}}>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
2020 2021 2022 2023 2024 2025 2026
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
2027
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
2028 2029 2030
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
2031
                                                        value={(tableMeta.rowData[34])}
rifkaki's avatar
rifkaki committed
2032 2033 2034
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
2035
                                        </div>
rifkaki's avatar
rifkaki committed
2036 2037 2038 2039 2040 2041 2042
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
2043
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
2044 2045 2046
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
2047
                                                        value={(tableMeta.rowData[35])}
rifkaki's avatar
rifkaki committed
2048 2049 2050
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
2051
                                        </div>
rifkaki's avatar
rifkaki committed
2052 2053 2054 2055 2056 2057 2058
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
2059
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
2060 2061 2062
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
2063
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
2064 2065
                                                        value={tableMeta.rowData[36]}
                                                        // value={Number(String(tableMeta.rowData[36]).substr(0, String(tableMeta.rowData[36]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
2066 2067 2068
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
2069
                                        </div>
rifkaki's avatar
rifkaki committed
2070 2071 2072 2073 2074 2075 2076
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
2077
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
2078 2079 2080
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
2081
                                                        value={(tableMeta.rowData[37])}
rifkaki's avatar
rifkaki committed
2082 2083 2084
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
2085
                                        </div>
rifkaki's avatar
rifkaki committed
2086 2087 2088 2089 2090 2091 2092
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
2093
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
2094 2095 2096
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
2097
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
2098 2099
                                                        value={tableMeta.rowData[38]}
                                                        // value={Number(String(tableMeta.rowData[38]).substr(0, String(tableMeta.rowData[38]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
2100 2101 2102
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
2103 2104 2105
                                        </div>
                                    </div>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
2106 2107 2108 2109 2110 2111 2112
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
2113
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
2114 2115 2116
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
2117
                                                        value={(tableMeta.rowData[39])}
rifkaki's avatar
rifkaki committed
2118 2119 2120
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
2121
                                        </div>
rifkaki's avatar
rifkaki committed
2122 2123 2124 2125 2126 2127 2128
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
2129
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
2130 2131 2132
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
2133
                                                        value={(tableMeta.rowData[40])}
rifkaki's avatar
rifkaki committed
2134 2135 2136
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
2137
                                        </div>
rifkaki's avatar
rifkaki committed
2138 2139 2140 2141 2142 2143 2144
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
2145
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
2146 2147 2148
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
2149
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
2150 2151
                                                        value={tableMeta.rowData[41]}
                                                        // value={Number(String(tableMeta.rowData[41]).substr(0, String(tableMeta.rowData[41]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
2152 2153 2154
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
2155
                                        </div>
rifkaki's avatar
rifkaki committed
2156 2157 2158 2159 2160 2161 2162
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
2163
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
2164 2165 2166
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
2167
                                                        value={(tableMeta.rowData[42])}
rifkaki's avatar
rifkaki committed
2168 2169 2170
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
2171
                                        </div>
rifkaki's avatar
rifkaki committed
2172 2173 2174 2175 2176 2177 2178
                                        <div style={{ flex: 1}}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
2179
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
2180 2181 2182 2183
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
                                                            suffix={"%"}
Riri Novita's avatar
Riri Novita committed
2184 2185
                                                            value={tableMeta.rowData[43]}
                                                            // value={Number(String(tableMeta.rowData[43]).substr(0, String(tableMeta.rowData[43]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
2186 2187 2188 2189
                                                        />
                                                    }
                                                />
                                            </div>
r.kurnia's avatar
r.kurnia committed
2190 2191 2192 2193 2194
                                        </div>
                                </div>
                            </div>
                        )
                    }
Riri Novita's avatar
Riri Novita committed
2195
                }
rifkaki's avatar
rifkaki committed
2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
rifkaki's avatar
rifkaki committed
2263 2264 2265 2266 2267
            {
                name: "",
                options: {
                    display: false
                }
rifkaki's avatar
rifkaki committed
2268 2269 2270 2271 2272 2273
            },  
            {
                name: "",
                options: {
                    display: false
                }
rifkaki's avatar
rifkaki committed
2274
            }, 
Riri Novita's avatar
Riri Novita committed
2275 2276 2277
        ]

        const columnHistorical = [
rifkaki's avatar
rifkaki committed
2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            },
            {
                name: "",
                options: {
                    display: false
                }
            }, 
Riri Novita's avatar
Riri Novita committed
2296
            {
2297
                name: "Company",
Riri Novita's avatar
Riri Novita committed
2298
                options: {
2299 2300 2301 2302 2303 2304 2305 2306 2307
                    customHeadRender: (columnMeta) => (
                        <TableCell key={columnMeta.index} style={{ ...style, top: 0, zIndex: 102, backgroundColor: '#1c71b8', width: 300 }}>
                            <Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'left' }}>{columnMeta.name}</Typography>
                        </TableCell>
                    ),
                    setCellProps: () => ({ style }),
                    customBodyRender: (val, tableMeta) => {
                        return (
                            <div style={{ width: 300 }}>
rifkaki's avatar
rifkaki committed
2308 2309 2310 2311 2312 2313 2314 2315
                                {
                                    tableMeta.rowData[2] == 0 ?
                                        <span style={{ fontSize: 12, fontWeight: 'bold' }}>{String(val).toUpperCase()}</span>
                                        :
                                        <div style={{ paddingLeft: 20 * Number(tableMeta.rowData[2]) }}>
                                            <span style={{ fontSize: 12 }}>{val}</span>
                                        </div>
                                }
2316 2317 2318 2319 2320 2321 2322 2323
                            </div>
                        )
                    }
                }
            }, {
                name: `Revenue`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
2324
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)"}} >
2325
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
rifkaki's avatar
rifkaki committed
2326 2327
                            <div className="grid grid-2x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1 grid grid-5x" style={{ placeSelf: 'center', textAlign: 'center' }}>
2328
                                        <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2329
                                            <span>{ Number(this.props.periode) - 10 }</span>
2330 2331
                                        </div>
                                        <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2332
                                            <span>{ Number(this.props.periode) - 9 }</span>
2333 2334
                                        </div>
                                        <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2335
                                            <span>{ Number(this.props.periode) - 8 }</span>
2336 2337
                                        </div>
                                        <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2338
                                            <span>{ Number(this.props.periode) - 7 }</span>
2339
                                        </div>
rifkaki's avatar
rifkaki committed
2340
                                        <div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2341
                                            <span>{ Number(this.props.periode) - 6 }</span>
2342
                                        </div>
rifkaki's avatar
rifkaki committed
2343 2344 2345
                                    </div>
                                    <div className="column-2 grid grid-5x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                        <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2346
                                            <span>{ Number(this.props.periode) - 5 }</span>
2347
                                        </div>
rifkaki's avatar
rifkaki committed
2348
                                        <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2349
                                            <span>{ Number(this.props.periode) - 4 }</span>
2350
                                        </div>
rifkaki's avatar
rifkaki committed
2351
                                        <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2352
                                            <span>{ Number(this.props.periode) - 3 }</span>
2353
                                        </div>
rifkaki's avatar
rifkaki committed
2354
                                        <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2355
                                            <span>{ Number(this.props.periode) - 2 }</span>
2356
                                        </div>
rifkaki's avatar
rifkaki committed
2357
                                        <div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2358
                                            <span>{ Number(this.props.periode) - 1 }</span>
2359 2360 2361 2362 2363 2364 2365 2366 2367
                                        </div>
                                    </div>
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
rifkaki's avatar
rifkaki committed
2368 2369 2370
                                <div style={{ display: 'flex', justifyContent: 'space-between' }}>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2382
                                                            value={Number(tableMeta.rowData[4]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2383 2384 2385
                                                        />
                                                    }
                                                />
2386
                                            </div>
rifkaki's avatar
rifkaki committed
2387 2388
                                        {/* </div> */}
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2400
                                                            value={Number(tableMeta.rowData[5]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2401 2402 2403
                                                        />
                                                    }
                                                />
2404
                                            </div>
rifkaki's avatar
rifkaki committed
2405 2406
                                        {/* </div> */}
                                        {/* <div className="col-3"> */}
rifkaki's avatar
rifkaki committed
2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2418
                                                            value={Number(tableMeta.rowData[6]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2419 2420 2421
                                                        />
                                                    }
                                                />
2422
                                            </div>
rifkaki's avatar
rifkaki committed
2423 2424
                                        {/* </div> */}
                                        {/* <div className="col-4"> */}
rifkaki's avatar
rifkaki committed
2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2436
                                                            value={Number(tableMeta.rowData[7]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2437 2438 2439
                                                        />
                                                    }
                                                />
2440
                                            </div>
rifkaki's avatar
rifkaki committed
2441 2442
                                        {/* </div> */}
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
2443
                                        <div style={{ flex: 1 }}>
rifkaki's avatar
rifkaki committed
2444 2445 2446 2447 2448 2449 2450 2451 2452 2453
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2454
                                                            value={Number(tableMeta.rowData[8]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2455 2456 2457
                                                        />
                                                    }
                                                />
2458
                                            </div>
rifkaki's avatar
rifkaki committed
2459
                                        {/* </div> */}
rifkaki's avatar
rifkaki committed
2460 2461
                                    </div>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
2462
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2474
                                                            value={Number(tableMeta.rowData[9]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2475 2476 2477
                                                        />
                                                    }
                                                />
2478
                                            </div>
rifkaki's avatar
rifkaki committed
2479 2480
                                        {/* </div> */}
                                        {/* <div className="col-3"> */}
rifkaki's avatar
rifkaki committed
2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2492
                                                            value={Number(tableMeta.rowData[10]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2493 2494 2495
                                                        />
                                                    }
                                                />
2496
                                            </div>
rifkaki's avatar
rifkaki committed
2497 2498
                                        {/* </div> */}
                                        {/* <div className="col-4"> */}
rifkaki's avatar
rifkaki committed
2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2510
                                                            value={Number(tableMeta.rowData[11]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2511 2512 2513
                                                        />
                                                    }
                                                />
2514
                                            </div>
rifkaki's avatar
rifkaki committed
2515 2516
                                        {/* </div> */}
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
2517
                                        <div style={{ flex: 1 }}>
rifkaki's avatar
rifkaki committed
2518 2519 2520 2521 2522 2523 2524 2525 2526 2527
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2528
                                                            value={Number(tableMeta.rowData[12]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2529 2530 2531
                                                        />
                                                    }
                                                />
2532
                                            </div>
rifkaki's avatar
rifkaki committed
2533 2534
                                        {/* </div> */}
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2546
                                                            value={Number(tableMeta.rowData[13]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2547 2548 2549
                                                        />
                                                    }
                                                />
2550
                                            </div>
rifkaki's avatar
rifkaki committed
2551
                                        {/* </div> */}
2552 2553 2554 2555 2556 2557
                                    </div>
                                </div>
                            </div>
                        )
                    }
                }
rifkaki's avatar
rifkaki committed
2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
2618 2619 2620 2621
            }, {
                name: `EBITDA`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
2622
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
2623
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
rifkaki's avatar
rifkaki committed
2624 2625
                            <div className="grid grid-2x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1 grid grid-5x" style={{ placeSelf: 'center', textAlign: 'center' }}>
rifkaki's avatar
rifkaki committed
2626 2627
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 10 }</span>
2628
                                    </div>
rifkaki's avatar
rifkaki committed
2629 2630
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 9 }</span>
2631
                                    </div>
rifkaki's avatar
rifkaki committed
2632 2633 2634 2635 2636 2637
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 8 }</span>
                                    </div>
                                    <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 7 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
2638
                                    <div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2639 2640
                                        <span>{ Number(this.props.periode) - 6 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
2641 2642 2643
                                </div>
                                <div className="column-2 grid grid-5x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2644 2645
                                        <span>{ Number(this.props.periode) - 5 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
2646
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2647 2648
                                        <span>{ Number(this.props.periode) - 4 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
2649
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2650 2651
                                        <span>{ Number(this.props.periode) - 3 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
2652
                                    <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2653
                                        <span>{ Number(this.props.periode) - 2 }</span>
2654
                                    </div>
rifkaki's avatar
rifkaki committed
2655
                                    <div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2656 2657 2658
                                        <span>{ Number(this.props.periode) - 1 }</span>
                                    </div>
                                </div>
2659 2660 2661 2662 2663 2664 2665
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
rifkaki's avatar
rifkaki committed
2666 2667 2668
                                <div style={{ display: 'flex', justifyContent: 'space-between'}}>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2680
                                                            value={Number(tableMeta.rowData[15]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2681 2682 2683
                                                        />
                                                    }
                                                />
2684
                                            </div>
rifkaki's avatar
rifkaki committed
2685 2686
                                        {/* </div> */}
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2698
                                                            value={Number(tableMeta.rowData[16]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2699 2700 2701
                                                        />
                                                    }
                                                />
2702
                                            </div>
rifkaki's avatar
rifkaki committed
2703 2704
                                        {/* </div> */}
                                        {/* <div className="col-3"> */}
rifkaki's avatar
rifkaki committed
2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2716
                                                            value={Number(tableMeta.rowData[17]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2717 2718 2719
                                                        />
                                                    }
                                                />
2720
                                            </div>
rifkaki's avatar
rifkaki committed
2721 2722
                                        {/* </div> */}
                                        {/* <div className="col-4"> */}
rifkaki's avatar
rifkaki committed
2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2734
                                                            value={Number(tableMeta.rowData[18]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2735 2736 2737
                                                        />
                                                    }
                                                />
2738
                                            </div>
rifkaki's avatar
rifkaki committed
2739 2740
                                        {/* </div> */}
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
2741
                                        <div style={{ flex: 1 }}>
rifkaki's avatar
rifkaki committed
2742 2743 2744 2745 2746 2747 2748 2749 2750 2751
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2752
                                                            value={Number(tableMeta.rowData[19]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2753 2754 2755
                                                        />
                                                    }
                                                />
2756
                                            </div>
rifkaki's avatar
rifkaki committed
2757
                                        {/* </div> */}
rifkaki's avatar
rifkaki committed
2758 2759
                                    </div>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
2760
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2772
                                                            value={Number(tableMeta.rowData[20]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2773 2774 2775
                                                        />
                                                    }
                                                />
2776
                                            </div>
rifkaki's avatar
rifkaki committed
2777 2778
                                        {/* </div> */}
                                        {/* <div className="col-3"> */}
rifkaki's avatar
rifkaki committed
2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2790
                                                            value={Number(tableMeta.rowData[21]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2791 2792 2793
                                                        />
                                                    }
                                                />
2794
                                            </div>
rifkaki's avatar
rifkaki committed
2795 2796
                                        {/* </div> */}
                                        {/* <div className="col-4"> */}
rifkaki's avatar
rifkaki committed
2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2808
                                                            value={Number(tableMeta.rowData[22]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2809 2810 2811
                                                        />
                                                    }
                                                />
2812
                                            </div>
rifkaki's avatar
rifkaki committed
2813 2814
                                        {/* </div> */}
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
2815
                                        <div style={{ flex: 1 }}>
rifkaki's avatar
rifkaki committed
2816 2817 2818 2819 2820 2821 2822 2823 2824 2825
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2826
                                                            value={Number(tableMeta.rowData[23]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2827 2828 2829
                                                        />
                                                    }
                                                />
2830
                                            </div>
rifkaki's avatar
rifkaki committed
2831 2832
                                        {/* </div> */}
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2844
                                                            value={Number(tableMeta.rowData[24]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2845 2846 2847
                                                        />
                                                    }
                                                />
2848
                                            </div>
rifkaki's avatar
rifkaki committed
2849
                                        {/* </div> */}
2850 2851 2852 2853 2854 2855
                                    </div>
                                </div>
                            </div>
                        )
                    }
                }
rifkaki's avatar
rifkaki committed
2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
2916 2917 2918 2919
            }, {
                name: `TPAT`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
2920
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
2921
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
rifkaki's avatar
rifkaki committed
2922 2923
                            <div className="grid grid-2x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1 grid grid-5x" style={{ placeSelf: 'center', textAlign: 'center' }}>
rifkaki's avatar
rifkaki committed
2924 2925
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 10 }</span>
2926
                                    </div>
rifkaki's avatar
rifkaki committed
2927 2928
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 9 }</span>
2929
                                    </div>
rifkaki's avatar
rifkaki committed
2930 2931 2932 2933 2934
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 8 }</span>
                                    </div>
                                    <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 7 }</span>
2935
                                    </div>
rifkaki's avatar
rifkaki committed
2936
                                    <div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2937 2938
                                        <span>{ Number(this.props.periode) - 6 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
2939 2940 2941
                                </div>
                                <div className="column-2 grid grid-5x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2942 2943
                                        <span>{ Number(this.props.periode) - 5 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
2944
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2945 2946
                                        <span>{ Number(this.props.periode) - 4 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
2947
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2948 2949
                                        <span>{ Number(this.props.periode) - 3 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
2950
                                    <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2951 2952
                                        <span>{ Number(this.props.periode) - 2 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
2953
                                    <div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2954 2955 2956
                                        <span>{ Number(this.props.periode) - 1 }</span>
                                    </div>
                                </div>
2957 2958 2959 2960 2961 2962 2963
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
rifkaki's avatar
rifkaki committed
2964 2965 2966
                                <div style={{ display: 'flex', justifyContent: 'space-between'}}>     
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2978
                                                            value={Number(tableMeta.rowData[26]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2979 2980 2981
                                                        />
                                                    }
                                                />
2982
                                            </div>
rifkaki's avatar
rifkaki committed
2983 2984
                                        {/* </div> */}
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2996
                                                            value={Number(tableMeta.rowData[27]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2997 2998 2999
                                                        />
                                                    }
                                                />
3000
                                            </div>
rifkaki's avatar
rifkaki committed
3001 3002
                                        {/* </div> */}
                                        {/* <div className="col-3"> */}
rifkaki's avatar
rifkaki committed
3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3014
                                                            value={Number(tableMeta.rowData[28]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3015 3016 3017
                                                        />
                                                    }
                                                />
3018
                                            </div>
rifkaki's avatar
rifkaki committed
3019 3020
                                        {/* </div> */}
                                        {/* <div className="col-4"> */}
rifkaki's avatar
rifkaki committed
3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3032
                                                            value={Number(tableMeta.rowData[29]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3033 3034 3035
                                                        />
                                                    }
                                                />
3036
                                            </div>
rifkaki's avatar
rifkaki committed
3037 3038
                                        {/* </div> */}
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
3039
                                        <div style={{ flex: 1 }}>
rifkaki's avatar
rifkaki committed
3040 3041 3042 3043 3044 3045 3046 3047 3048 3049
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3050
                                                            value={Number(tableMeta.rowData[30]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3051 3052 3053
                                                        />
                                                    }
                                                />
3054
                                            </div>
rifkaki's avatar
rifkaki committed
3055
                                        {/* </div> */}
rifkaki's avatar
rifkaki committed
3056 3057
                                    </div>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
3058
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3070
                                                            value={Number(tableMeta.rowData[31]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3071 3072 3073
                                                        />
                                                    }
                                                />
3074
                                            </div>
rifkaki's avatar
rifkaki committed
3075 3076
                                        {/* </div> */}
                                        {/* <div className="col-3"> */}
rifkaki's avatar
rifkaki committed
3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3088
                                                            value={Number(tableMeta.rowData[32]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3089 3090 3091
                                                        />
                                                    }
                                                />
3092
                                            </div>
rifkaki's avatar
rifkaki committed
3093 3094
                                        {/* </div> */}
                                        {/* <div className="col-4"> */}
rifkaki's avatar
rifkaki committed
3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3106
                                                            value={Number(tableMeta.rowData[33]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3107 3108 3109
                                                        />
                                                    }
                                                />
3110
                                            </div>
rifkaki's avatar
rifkaki committed
3111 3112
                                        {/* </div> */}
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
3113
                                        <div style={{ flex: 1 }}>
rifkaki's avatar
rifkaki committed
3114 3115 3116 3117 3118 3119 3120 3121 3122 3123
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3124
                                                            value={Number(tableMeta.rowData[34]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3125 3126 3127
                                                        />
                                                    }
                                                />
3128
                                            </div>
rifkaki's avatar
rifkaki committed
3129 3130
                                        {/* </div> */}
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3142
                                                            value={Number(tableMeta.rowData[35]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3143 3144 3145
                                                        />
                                                    }
                                                />
3146
                                            </div>
rifkaki's avatar
rifkaki committed
3147
                                        {/* </div> */}
3148 3149 3150 3151 3152 3153
                                    </div>
                                </div>
                            </div>
                        )
                    }
                }
rifkaki's avatar
rifkaki committed
3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
3214 3215 3216 3217
            }, {
                name: `NPAT`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
3218
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
3219
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
rifkaki's avatar
rifkaki committed
3220 3221
                            <div className="grid grid-2x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1 grid grid-5x" style={{ placeSelf: 'center', textAlign: 'center' }}>
rifkaki's avatar
rifkaki committed
3222 3223
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 10 }</span>
3224
                                    </div>
rifkaki's avatar
rifkaki committed
3225 3226
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 9 }</span>
3227
                                    </div>
rifkaki's avatar
rifkaki committed
3228 3229 3230 3231 3232 3233
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 8 }</span>
                                    </div>
                                    <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 7 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3234
                                    <div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3235 3236
                                        <span>{ Number(this.props.periode) - 6 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3237 3238 3239
                                </div>
                                <div className="column-2 grid grid-5x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3240 3241
                                        <span>{ Number(this.props.periode) - 5 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3242
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3243
                                        <span>{ Number(this.props.periode) - 4 }</span>
3244
                                    </div>
rifkaki's avatar
rifkaki committed
3245
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3246 3247
                                        <span>{ Number(this.props.periode) - 3 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3248
                                    <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3249 3250
                                        <span>{ Number(this.props.periode) - 2 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3251
                                    <div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3252 3253 3254
                                        <span>{ Number(this.props.periode) - 1 }</span>
                                    </div>
                                </div>
3255 3256 3257 3258 3259 3260 3261
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
rifkaki's avatar
rifkaki committed
3262 3263 3264
                                <div style={{ display: 'flex', justifyContent: 'space-between'}}>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3276
                                                            value={Number(tableMeta.rowData[37]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3277 3278 3279
                                                        />
                                                    }
                                                />
3280
                                            </div>
rifkaki's avatar
rifkaki committed
3281 3282
                                        {/* </div> */}
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3294
                                                            value={Number(tableMeta.rowData[38]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3295 3296 3297
                                                        />
                                                    }
                                                />
3298
                                            </div>
rifkaki's avatar
rifkaki committed
3299 3300
                                        {/* </div> */}
                                        {/* <div className="col-3"> */}
rifkaki's avatar
rifkaki committed
3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3312
                                                            value={Number(tableMeta.rowData[39]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3313 3314 3315
                                                        />
                                                    }
                                                />
3316
                                            </div>
rifkaki's avatar
rifkaki committed
3317 3318
                                        {/* </div> */}
                                        {/* <div className="col-4"> */}
rifkaki's avatar
rifkaki committed
3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3330
                                                            value={Number(tableMeta.rowData[40]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3331 3332 3333
                                                        />
                                                    }
                                                />
3334
                                            </div>
rifkaki's avatar
rifkaki committed
3335 3336
                                        {/* </div> */}
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
3337
                                        <div style={{ flex: 1 }}>
rifkaki's avatar
rifkaki committed
3338 3339 3340 3341 3342 3343 3344 3345 3346 3347
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3348
                                                            value={Number(tableMeta.rowData[41]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3349 3350 3351
                                                        />
                                                    }
                                                />
3352
                                            </div>
rifkaki's avatar
rifkaki committed
3353
                                        {/* </div> */}
rifkaki's avatar
rifkaki committed
3354 3355
                                    </div>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
3356
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3368
                                                            value={Number(tableMeta.rowData[42]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3369 3370 3371
                                                        />
                                                    }
                                                />
3372
                                            </div>
rifkaki's avatar
rifkaki committed
3373 3374
                                        {/* </div> */}
                                        {/* <div className="col-3"> */}
rifkaki's avatar
rifkaki committed
3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3386
                                                            value={Number(tableMeta.rowData[43]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3387 3388 3389
                                                        />
                                                    }
                                                />
3390
                                            </div>
rifkaki's avatar
rifkaki committed
3391 3392
                                        {/* </div> */}
                                        {/* <div className="col-4"> */}
rifkaki's avatar
rifkaki committed
3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3404
                                                            value={Number(tableMeta.rowData[44]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3405 3406 3407
                                                        />
                                                    }
                                                />
3408
                                            </div>
rifkaki's avatar
rifkaki committed
3409 3410
                                        {/* </div> */}
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
3411
                                        <div style={{ flex: 1 }}>
rifkaki's avatar
rifkaki committed
3412 3413 3414 3415 3416 3417 3418 3419 3420 3421
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3422
                                                            value={Number(tableMeta.rowData[45]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3423 3424 3425
                                                        />
                                                    }
                                                />
3426
                                            </div>
rifkaki's avatar
rifkaki committed
3427 3428
                                        {/* </div> */}
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3440
                                                            value={Number(tableMeta.rowData[46]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3441 3442 3443
                                                        />
                                                    }
                                                />
3444
                                            </div>
rifkaki's avatar
rifkaki committed
3445
                                        {/* </div> */}
3446 3447 3448 3449 3450 3451
                                    </div>
                                </div>
                            </div>
                        )
                    }
                }
rifkaki's avatar
rifkaki committed
3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
3512 3513 3514 3515
            }, {
                name: `Total Asset`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
3516
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
3517
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
rifkaki's avatar
rifkaki committed
3518 3519
                            <div className="grid grid-2x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1 grid grid-5x" style={{ placeSelf: 'center', textAlign: 'center' }}>
rifkaki's avatar
rifkaki committed
3520 3521
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 10 }</span>
3522
                                    </div>
rifkaki's avatar
rifkaki committed
3523 3524
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 9 }</span>
3525
                                    </div>
rifkaki's avatar
rifkaki committed
3526 3527 3528 3529 3530 3531
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 8 }</span>
                                    </div>
                                    <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 7 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3532
                                    <div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3533 3534
                                        <span>{ Number(this.props.periode) - 6 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3535 3536 3537
                                </div>
                                <div className="column-2 grid grid-5x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3538 3539
                                        <span>{ Number(this.props.periode) - 5 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3540
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3541 3542
                                        <span>{ Number(this.props.periode) - 4 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3543
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3544 3545
                                        <span>{ Number(this.props.periode) - 3 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3546
                                    <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3547
                                        <span>{ Number(this.props.periode) - 2 }</span>
3548
                                    </div>
rifkaki's avatar
rifkaki committed
3549
                                    <div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3550 3551 3552
                                        <span>{ Number(this.props.periode) - 1 }</span>
                                    </div>
                                </div>
3553 3554 3555 3556 3557 3558 3559
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
rifkaki's avatar
rifkaki committed
3560 3561 3562
                                <div style={{ display: 'flex', justifyContent: 'space-between'}}>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3574
                                                            value={Number(tableMeta.rowData[48]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3575 3576 3577
                                                        />
                                                    }
                                                />
3578
                                            </div>
rifkaki's avatar
rifkaki committed
3579 3580
                                        {/* </div> */}
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3592
                                                            value={Number(tableMeta.rowData[49]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3593 3594 3595
                                                        />
                                                    }
                                                />
3596
                                            </div>
rifkaki's avatar
rifkaki committed
3597 3598
                                        {/* </div> */}
                                        {/* <div className="col-3"> */}
rifkaki's avatar
rifkaki committed
3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3610
                                                            value={Number(tableMeta.rowData[50]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3611 3612 3613
                                                        />
                                                    }
                                                />
3614
                                            </div>
rifkaki's avatar
rifkaki committed
3615 3616
                                        {/* </div> */}
                                        {/* <div className="col-4"> */}
rifkaki's avatar
rifkaki committed
3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3628
                                                            value={Number(tableMeta.rowData[51]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3629 3630 3631
                                                        />
                                                    }
                                                />
3632
                                            </div>
rifkaki's avatar
rifkaki committed
3633 3634
                                        {/* </div> */}
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
3635
                                        <div style={{ flex: 1 }}>
rifkaki's avatar
rifkaki committed
3636 3637 3638 3639 3640 3641 3642 3643 3644 3645
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3646
                                                            value={Number(tableMeta.rowData[52]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3647 3648 3649
                                                        />
                                                    }
                                                />
3650
                                            </div>
rifkaki's avatar
rifkaki committed
3651
                                        {/* </div> */}
rifkaki's avatar
rifkaki committed
3652 3653
                                    </div>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
3654
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3666
                                                            value={Number(tableMeta.rowData[53]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3667 3668 3669
                                                        />
                                                    }
                                                />
3670
                                            </div>
rifkaki's avatar
rifkaki committed
3671 3672
                                        {/* </div> */}
                                        {/* <div className="col-3"> */}
rifkaki's avatar
rifkaki committed
3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3684
                                                            value={Number(tableMeta.rowData[54]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3685 3686 3687
                                                        />
                                                    }
                                                />
3688
                                            </div>
rifkaki's avatar
rifkaki committed
3689 3690
                                        {/* </div> */}
                                        {/* <div className="col-4"> */}
rifkaki's avatar
rifkaki committed
3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3702
                                                            value={Number(tableMeta.rowData[55]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3703 3704 3705
                                                        />
                                                    }
                                                />
3706
                                            </div>
rifkaki's avatar
rifkaki committed
3707 3708
                                        {/* </div> */}
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
3709
                                        <div style={{ flex: 1 }}>
rifkaki's avatar
rifkaki committed
3710 3711 3712 3713 3714 3715 3716 3717 3718 3719
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3720
                                                            value={Number(tableMeta.rowData[56]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3721 3722 3723
                                                        />
                                                    }
                                                />
3724
                                            </div>
rifkaki's avatar
rifkaki committed
3725 3726
                                        {/* </div> */}
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3738
                                                            value={Number(tableMeta.rowData[57]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3739 3740 3741
                                                        />
                                                    }
                                                />
3742
                                            </div>
rifkaki's avatar
rifkaki committed
3743
                                        {/* </div> */}
3744 3745 3746 3747 3748 3749
                                    </div>
                                </div>
                            </div>
                        )
                    }
                }
rifkaki's avatar
rifkaki committed
3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
3810
            }, {
Faisal Hamdi's avatar
Faisal Hamdi committed
3811
                name: `Total Equity`,
3812 3813
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
3814
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
3815
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
rifkaki's avatar
rifkaki committed
3816 3817
                            <div className="grid grid-2x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1 grid grid-5x" style={{ placeSelf: 'center', textAlign: 'center' }}>
rifkaki's avatar
rifkaki committed
3818 3819
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 10 }</span>
3820
                                    </div>
rifkaki's avatar
rifkaki committed
3821 3822
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 9 }</span>
3823
                                    </div>
rifkaki's avatar
rifkaki committed
3824 3825
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 8 }</span>
3826
                                    </div>
rifkaki's avatar
rifkaki committed
3827 3828 3829
                                    <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 7 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3830
                                    <div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3831 3832
                                        <span>{ Number(this.props.periode) - 6 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3833 3834 3835
                                </div>
                                <div className="column-2 grid grid-5x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3836 3837
                                        <span>{ Number(this.props.periode) - 5 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3838
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3839 3840
                                        <span>{ Number(this.props.periode) - 4 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3841
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3842 3843
                                        <span>{ Number(this.props.periode) - 3 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3844
                                    <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3845 3846
                                        <span>{ Number(this.props.periode) - 2 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3847
                                    <div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3848 3849 3850
                                        <span>{ Number(this.props.periode) - 1 }</span>
                                    </div>
                                </div>
3851 3852 3853 3854 3855 3856 3857
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
rifkaki's avatar
rifkaki committed
3858 3859 3860
                                <div style={{ display: 'flex', justifyContent: 'space-between'}}>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3872
                                                            value={Number(tableMeta.rowData[59]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3873 3874 3875
                                                        />
                                                    }
                                                />
3876
                                            </div>
rifkaki's avatar
rifkaki committed
3877 3878
                                        {/* </div> */}
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3890
                                                            value={Number(tableMeta.rowData[60]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3891 3892 3893
                                                        />
                                                    }
                                                />
3894
                                            </div>
rifkaki's avatar
rifkaki committed
3895 3896
                                        {/* </div> */}
                                        {/* <div className="col-3"> */}
rifkaki's avatar
rifkaki committed
3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3908
                                                            value={Number(tableMeta.rowData[61]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3909 3910 3911
                                                        />
                                                    }
                                                />
3912
                                            </div>
rifkaki's avatar
rifkaki committed
3913 3914
                                        {/* </div> */}
                                        {/* <div className="col-4"> */}
rifkaki's avatar
rifkaki committed
3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3926
                                                            value={Number(tableMeta.rowData[62]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3927 3928 3929
                                                        />
                                                    }
                                                />
3930
                                            </div>
rifkaki's avatar
rifkaki committed
3931 3932
                                        {/* </div> */}
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
3933
                                        <div style={{ flex: 1 }}>
rifkaki's avatar
rifkaki committed
3934 3935 3936 3937 3938 3939 3940 3941 3942 3943
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3944
                                                            value={Number(tableMeta.rowData[63]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3945 3946 3947
                                                        />
                                                    }
                                                />
3948
                                            </div>
rifkaki's avatar
rifkaki committed
3949
                                        {/* </div> */}
rifkaki's avatar
rifkaki committed
3950 3951
                                    </div>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
3952
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3964
                                                            value={Number(tableMeta.rowData[64]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3965 3966 3967
                                                        />
                                                    }
                                                />
3968
                                            </div>
rifkaki's avatar
rifkaki committed
3969 3970
                                        {/* </div> */}
                                        {/* <div className="col-3"> */}
rifkaki's avatar
rifkaki committed
3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3982
                                                            value={Number(tableMeta.rowData[65]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3983 3984 3985
                                                        />
                                                    }
                                                />
3986
                                            </div>
rifkaki's avatar
rifkaki committed
3987 3988
                                        {/* </div> */}
                                        {/* <div className="col-4"> */}
rifkaki's avatar
rifkaki committed
3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4000
                                                            value={Number(tableMeta.rowData[66]).toFixed(1)}
rifkaki's avatar
rifkaki committed
4001 4002 4003
                                                        />
                                                    }
                                                />
4004
                                            </div>
rifkaki's avatar
rifkaki committed
4005 4006
                                        {/* </div> */}
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
4007
                                        <div style={{ flex: 1 }}>
rifkaki's avatar
rifkaki committed
4008 4009 4010 4011 4012 4013 4014 4015 4016 4017
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4018
                                                            value={Number(tableMeta.rowData[67]).toFixed(1)}
rifkaki's avatar
rifkaki committed
4019 4020 4021
                                                        />
                                                    }
                                                />
4022
                                            </div>
rifkaki's avatar
rifkaki committed
4023 4024
                                        {/* </div> */}
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4036
                                                            value={Number(tableMeta.rowData[68]).toFixed(1)}
rifkaki's avatar
rifkaki committed
4037 4038 4039
                                                        />
                                                    }
                                                />
4040
                                            </div>
rifkaki's avatar
rifkaki committed
4041
                                        {/* </div> */}
4042 4043 4044 4045 4046
                                    </div>
                                </div>
                            </div>
                        )
                    }
Riri Novita's avatar
Riri Novita committed
4047
                }
rifkaki's avatar
rifkaki committed
4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108
            },
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
Riri Novita's avatar
Riri Novita committed
4109 4110 4111
        ]

        const columnCPSM = [
Riri Novita's avatar
Riri Novita committed
4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159
            {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "Company",
                options: {
                    customHeadRender: (columnMeta) => (
                        <TableCell key={columnMeta.index} style={{ ...style, top: 0, zIndex: 102, backgroundColor: '#1c71b8', width: 300, borderRight: '1px #fff solid' }}>
                            <Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'left' }}>{columnMeta.name}</Typography>
                        </TableCell>
                    ),
                    setCellProps: () => ({ style }),
                    customBodyRender: (val, tableMeta) => {
                        return (
                            <div style={{ width: 300 }}>
                                {
                                    tableMeta.rowData[2] == 0 ?
                                        <span style={{ fontSize: 12, fontWeight: 'bold' }}>{String(val).toUpperCase()}</span>
                                        :
                                        <div style={{ paddingLeft: 20 * Number(tableMeta.rowData[2]) }}>
                                            <span style={{ fontSize: 12 }}>{val}</span>
                                        </div>
                                }
                            </div>
                        )
                    }
                }
            }, {
                name: `Revenue`,
                options: {
                    customHeadRender: (columnMeta) => (
                        <th style={{ ...style2, backgroundColor: '#1c71b8', top: 0, color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
                            <div className="grid grid-2x" style={{ ...style2, backgroundColor: '#37b5e6', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1 grid grid-3x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                        <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#07a7d0' }}>
rifkaki's avatar
rifkaki committed
4160
                                            <span>{`${Number(this.props.periode) - 1}`}</span>
Riri Novita's avatar
Riri Novita committed
4161 4162
                                        </div>
                                        <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
4163
                                            <span>{`OL ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
4164 4165
                                        </div>
                                        <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
4166
                                            <span>{`MB ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
4167 4168 4169 4170 4171 4172 4173
                                        </div>
                                    </div>
                                    <div className="column-2 grid grid-3x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                        <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
                                            <span>{"% of MB"}</span>
                                        </div>
                                        <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
4174
                                            <span>{`${Number(this.props.periode) + 1}`}</span>
Riri Novita's avatar
Riri Novita committed
4175 4176
                                        </div>
                                        <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5,  backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
4177
                                            <span>{`${Number(this.props.periode) + 2}`}</span>
Riri Novita's avatar
Riri Novita committed
4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196
                                        </div>
                                    </div>
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
                                <div className="grid grid-2x content-center">
                                    <div className="grid grid-3x content-center">
                                        <div className="col-1">
                                            <div style={{ flex: 1}}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4197
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 86, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4198 4199 4200
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4201
                                                            value={Number(tableMeta.rowData[4]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214
                                                        />
                                                    }
                                                />
                                            </div>
                                        </div>
                                        <div className="col-2">
                                            <div style={{ flex: 1}}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4215
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4216 4217 4218
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4219
                                                            value={Number(tableMeta.rowData[5]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232
                                                        />
                                                    }
                                                />
                                            </div>
                                        </div>
                                        <div className="col-3">
                                            <div style={{ flex: 1}}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4233
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4234 4235 4236
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4237
                                                            value={Number(tableMeta.rowData[6]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252
                                                        />
                                                    }
                                                />
                                            </div>
                                        </div>
                                    </div>
                                    <div className="grid grid-3x content-center">
                                        <div className="col-1">
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4253
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4254 4255 4256 4257
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
                                                            suffix={'%'}
Riri Novita's avatar
Riri Novita committed
4258
                                                            value={tableMeta.rowData[7]}
rifkaki's avatar
rifkaki committed
4259
                                                            // value={Number(tableMeta.rowData[7]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272
                                                        />
                                                    }
                                                />
                                            </div>
                                        </div>
                                        <div className="col-2">
                                            <div style={{ flex: 1}}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4273
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4274 4275 4276
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4277
                                                            value={Number(tableMeta.rowData[8]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290
                                                        />
                                                    }
                                                />
                                            </div>
                                        </div>
                                        <div className="col-3">
                                            <div style={{ flex: 1}}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4291
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' ,                               fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4292 4293 4294
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4295
                                                            value={Number(tableMeta.rowData[9]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340
                                                        />
                                                    }
                                                />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        )
                    }
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: `EBITDA`,
                options: {
                    customHeadRender: (columnMeta) => (
Riri Novita's avatar
Riri Novita committed
4341
                        <th style={{ ...style2, backgroundColor: '#1c71b8', top: 0, color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
Riri Novita's avatar
Riri Novita committed
4342 4343 4344 4345
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
                            <div className="grid grid-2x" style={{ ...style2, backgroundColor: '#37b5e6', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1 grid grid-3x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                        <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#07a7d0' }}>
rifkaki's avatar
rifkaki committed
4346
                                            <span>{`${Number(this.props.periode) - 1}`}</span>
Riri Novita's avatar
Riri Novita committed
4347 4348
                                        </div>
                                        <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
4349
                                            <span>{`OL ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
4350 4351
                                        </div>
                                        <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
4352
                                            <span>{`MB ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
4353 4354 4355 4356 4357 4358 4359
                                        </div>
                                    </div>
                                    <div className="column-2 grid grid-3x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                        <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
                                            <span>{"% of MB"}</span>
                                        </div>
                                        <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
4360
                                            <span>{`${Number(this.props.periode) + 1}`}</span>
Riri Novita's avatar
Riri Novita committed
4361 4362
                                        </div>
                                        <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
4363
                                            <span>{`${Number(this.props.periode) + 2}`}</span>
Riri Novita's avatar
Riri Novita committed
4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382
                                        </div>
                                    </div>
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
                                <div className="grid grid-2x content-center">
                                    <div className="grid grid-3x content-center">
                                        <div className="col-1">
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4383
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4384 4385 4386
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4387
                                                            value={Number(tableMeta.rowData[10]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4388 4389 4390 4391 4392 4393
                                                        />
                                                    }
                                                />
                                            </div>
                                        </div>
                                        <div className="col-2">
Riri Novita's avatar
Riri Novita committed
4394 4395 4396 4397 4398 4399 4400
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4401
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4402 4403 4404
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4405
                                                            value={Number(tableMeta.rowData[11]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4406 4407 4408
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4409 4410 4411
                                            </div>
                                        </div>
                                        <div className="col-3">
Riri Novita's avatar
Riri Novita committed
4412 4413 4414 4415 4416 4417 4418
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4419
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4420 4421 4422
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4423
                                                            value={Number(tableMeta.rowData[12]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4424 4425 4426
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4427 4428 4429 4430 4431
                                            </div>
                                        </div>
                                    </div>
                                    <div className="grid grid-3x content-center">
                                        <div className="col-1">
Riri Novita's avatar
Riri Novita committed
4432 4433 4434 4435 4436 4437 4438
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4439
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4440 4441 4442 4443
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
                                                            suffix={'%'}
rifkaki's avatar
rifkaki committed
4444
                                                            value={tableMeta.rowData[13]}
rifkaki's avatar
rifkaki committed
4445
                                                            // value={Number(tableMeta.rowData[13]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4446 4447 4448
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4449 4450 4451
                                            </div>
                                        </div>
                                        <div className="col-2">
Riri Novita's avatar
Riri Novita committed
4452 4453 4454 4455 4456 4457 4458
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4459
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4460 4461 4462
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4463
                                                            value={Number(tableMeta.rowData[14]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4464 4465 4466
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4467 4468 4469
                                            </div>
                                        </div>
                                        <div className="col-3">
Riri Novita's avatar
Riri Novita committed
4470 4471 4472 4473 4474 4475 4476
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4477
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4478 4479 4480
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4481
                                                            value={Number(tableMeta.rowData[15]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4482 4483 4484
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        )
                    }
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: `TPAT`,
                options: {
                    customHeadRender: (columnMeta) => (
Riri Novita's avatar
Riri Novita committed
4527
                        <th style={{ ...style2, backgroundColor: '#1c71b8', top: 0 , color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
Riri Novita's avatar
Riri Novita committed
4528 4529 4530 4531
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
                            <div className="grid grid-2x" style={{ ...style2, backgroundColor: '#37b5e6', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1 grid grid-3x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                        <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#07a7d0' }}>
rifkaki's avatar
rifkaki committed
4532
                                            <span>{`${Number(this.props.periode) - 1}`}</span>
Riri Novita's avatar
Riri Novita committed
4533 4534
                                        </div>
                                        <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
4535
                                            <span>{`OL ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
4536 4537
                                        </div>
                                        <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
4538
                                            <span>{`MB ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
4539 4540 4541 4542 4543 4544 4545
                                        </div>
                                    </div>
                                    <div className="column-2 grid grid-3x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                        <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
                                            <span>{"% of MB"}</span>
                                        </div>
                                        <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
4546
                                            <span>{`${Number(this.props.periode) + 1}`}</span>
Riri Novita's avatar
Riri Novita committed
4547 4548
                                        </div>
                                        <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
4549
                                            <span>{`${Number(this.props.periode) + 2}`}</span>
Riri Novita's avatar
Riri Novita committed
4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561
                                        </div>
                                    </div>
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
                                <div className="grid grid-2x content-center">
                                    <div className="grid grid-3x content-center">
                                        <div className="col-1">
Riri Novita's avatar
Riri Novita committed
4562 4563 4564 4565 4566 4567 4568
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4569
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 80, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4570 4571 4572
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4573
                                                            value={Number(tableMeta.rowData[16]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4574 4575 4576
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4577 4578 4579
                                            </div>
                                        </div>
                                        <div className="col-2">
Riri Novita's avatar
Riri Novita committed
4580 4581 4582 4583 4584 4585 4586
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4587
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4588 4589 4590
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4591
                                                            value={Number(tableMeta.rowData[17]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4592 4593 4594
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4595 4596 4597
                                            </div>
                                        </div>
                                        <div className="col-3">
Riri Novita's avatar
Riri Novita committed
4598 4599 4600 4601 4602 4603 4604
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4605
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4606 4607 4608
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4609
                                                            value={Number(tableMeta.rowData[18]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4610 4611 4612
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4613 4614 4615 4616 4617
                                            </div>
                                        </div>
                                    </div>
                                    <div className="grid grid-3x content-center">
                                        <div className="col-1">
Riri Novita's avatar
Riri Novita committed
4618 4619 4620 4621 4622 4623 4624
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4625
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4626 4627 4628 4629
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
                                                            suffix={'%'}
rifkaki's avatar
rifkaki committed
4630
                                                            value={tableMeta.rowData[19]}
rifkaki's avatar
rifkaki committed
4631
                                                            // value={Number(tableMeta.rowData[19]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4632 4633 4634
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4635 4636 4637
                                            </div>
                                        </div>
                                        <div className="col-2">
Riri Novita's avatar
Riri Novita committed
4638 4639 4640 4641 4642 4643 4644
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4645
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4646 4647 4648
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4649
                                                            value={Number(tableMeta.rowData[20]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4650 4651 4652
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4653 4654 4655
                                            </div>
                                        </div>
                                        <div className="col-3">
Riri Novita's avatar
Riri Novita committed
4656 4657 4658 4659 4660 4661 4662
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4663
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4664 4665 4666
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4667
                                                            value={Number(tableMeta.rowData[21]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4668 4669 4670
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        )
                    }
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
Riri Novita's avatar
Riri Novita committed
4698
                }
Riri Novita's avatar
Riri Novita committed
4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: `NPAT`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
4713
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
Riri Novita's avatar
Riri Novita committed
4714
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
Riri Novita's avatar
Riri Novita committed
4715
                            <div className="grid grid-2x" style={{ ...style2, backgroundColor: '#37b5e6', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
Riri Novita's avatar
Riri Novita committed
4716 4717
                                <div className="column-1 grid grid-3x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                        <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#07a7d0' }}>
rifkaki's avatar
rifkaki committed
4718
                                            <span>{`${Number(this.props.periode) - 1}`}</span>
Riri Novita's avatar
Riri Novita committed
4719 4720
                                        </div>
                                        <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
4721
                                            <span>{`OL ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
4722 4723
                                        </div>
                                        <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
4724
                                            <span>{`MB ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
4725 4726 4727 4728 4729 4730 4731
                                        </div>
                                    </div>
                                    <div className="column-2 grid grid-3x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                        <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
                                            <span>{"% of MB"}</span>
                                        </div>
                                        <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
4732
                                            <span>{`${Number(this.props.periode) + 1}`}</span>
Riri Novita's avatar
Riri Novita committed
4733 4734
                                        </div>
                                        <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
4735
                                            <span>{`${Number(this.props.periode) + 2}`}</span>
Riri Novita's avatar
Riri Novita committed
4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747
                                        </div>
                                    </div>
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
                                <div className="grid grid-2x content-center">
                                    <div className="grid grid-3x content-center">
                                        <div className="col-1">
Riri Novita's avatar
Riri Novita committed
4748 4749 4750 4751 4752 4753 4754
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4755
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 86, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4756 4757 4758
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4759
                                                            value={Number(tableMeta.rowData[22]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4760 4761 4762
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4763 4764 4765
                                            </div>
                                        </div>
                                        <div className="col-2">
Riri Novita's avatar
Riri Novita committed
4766 4767 4768 4769 4770 4771 4772
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4773
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4774 4775 4776
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4777
                                                            value={Number(tableMeta.rowData[23]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4778 4779 4780
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4781 4782 4783
                                            </div>
                                        </div>
                                        <div className="col-3">
Riri Novita's avatar
Riri Novita committed
4784 4785 4786 4787 4788 4789 4790
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4791
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4792 4793 4794
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4795
                                                            value={Number(tableMeta.rowData[24]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4796 4797 4798
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4799 4800
                                            </div>
                                        </div>
Riri Novita's avatar
Riri Novita committed
4801
                                    </div>
Riri Novita's avatar
Riri Novita committed
4802 4803
                                    <div className="grid grid-3x content-center">
                                        <div className="col-1">
Riri Novita's avatar
Riri Novita committed
4804 4805 4806 4807 4808 4809 4810
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4811
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4812 4813 4814 4815
                                                            type="text"
                                                            placeholder=""
                                                            suffix={'%'}
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4816
                                                            value={tableMeta.rowData[25]}
rifkaki's avatar
rifkaki committed
4817
                                                            // value={Number(tableMeta.rowData[25]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830
                                                        />
                                                    }
                                                />
                                            </div>
                                        </div>
                                        <div className="col-2">
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4831
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4832 4833 4834
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4835
                                                            value={Number(tableMeta.rowData[26]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848
                                                        />
                                                    }
                                                />
                                            </div>
                                        </div>
                                        <div className="col-3">
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4849
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4850 4851 4852
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4853
                                                            value={Number(tableMeta.rowData[27]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4854 4855 4856
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4857 4858
                                            </div>
                                        </div>
Riri Novita's avatar
Riri Novita committed
4859 4860
                                    </div>
                                </div>
Riri Novita's avatar
Riri Novita committed
4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898
                            </div>
                        )
                    }
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: `ROIC`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
4899
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
Riri Novita's avatar
Riri Novita committed
4900 4901
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
                            <div className="grid grid-3x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
Riri Novita's avatar
Riri Novita committed
4902
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
4903
                                        <span>{`OL ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
4904 4905
                                    </div>
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
4906
                                        <span>{`${Number(this.props.periode) + 1}`}</span>
Riri Novita's avatar
Riri Novita committed
4907
                                    </div>
Riri Novita's avatar
Riri Novita committed
4908
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
4909
                                        <span>{`${Number(this.props.periode) + 2}`}</span>
Riri Novita's avatar
Riri Novita committed
4910
                                    </div>
Riri Novita's avatar
Riri Novita committed
4911 4912 4913 4914 4915 4916 4917
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
Riri Novita's avatar
Riri Novita committed
4918
                                <div className="grid grid-3x content-center">
Riri Novita's avatar
Riri Novita committed
4919
                                        <div className="col-1">
Riri Novita's avatar
Riri Novita committed
4920 4921 4922 4923 4924 4925 4926
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4927
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4928 4929 4930 4931 4932 4933 4934
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
                                                            value={Number(tableMeta.rowData[28]).toFixed(2)}
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4935
                                            </div>
Riri Novita's avatar
Riri Novita committed
4936
                                        </div>
Riri Novita's avatar
Riri Novita committed
4937
                                        <div className="col-2">
Riri Novita's avatar
Riri Novita committed
4938 4939 4940 4941 4942 4943 4944
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4945
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4946 4947 4948 4949 4950 4951 4952
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
                                                            value={Number(tableMeta.rowData[29]).toFixed(2)}
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4953
                                            </div>
Riri Novita's avatar
Riri Novita committed
4954
                                        </div>
Riri Novita's avatar
Riri Novita committed
4955
                                        <div className="col-3">
Riri Novita's avatar
Riri Novita committed
4956 4957 4958 4959 4960 4961 4962
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4963
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4964 4965 4966 4967 4968 4969 4970
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
                                                            value={Number(tableMeta.rowData[30]).toFixed(2)}
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4971
                                            </div>
Riri Novita's avatar
Riri Novita committed
4972 4973
                                        </div>
                                </div>
Riri Novita's avatar
Riri Novita committed
4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996
                            </div>
                        )
                    }
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: `EBITDA Margin`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
4997
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
Riri Novita's avatar
Riri Novita committed
4998 4999 5000
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
                            <div className="grid grid-3x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
5001
                                        <span>{`OL ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
5002 5003
                                    </div>
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
5004
                                        <span>{`${Number(this.props.periode) + 1}`}</span>
Riri Novita's avatar
Riri Novita committed
5005 5006
                                    </div>
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
5007
                                        <span>{`${Number(this.props.periode) + 2}`}</span>
Riri Novita's avatar
Riri Novita committed
5008 5009 5010 5011 5012 5013 5014 5015
                                    </div>
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
Riri Novita's avatar
Riri Novita committed
5016
                                <div className="grid grid-3x content-center">
Riri Novita's avatar
Riri Novita committed
5017
                                        <div className="col-1">
Riri Novita's avatar
Riri Novita committed
5018 5019 5020 5021 5022 5023 5024
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5025
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5026 5027 5028
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
Riri Novita's avatar
Riri Novita committed
5029
                                                            value={(tableMeta.rowData[31])}
Riri Novita's avatar
Riri Novita committed
5030 5031 5032
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5033
                                            </div>
Riri Novita's avatar
Riri Novita committed
5034
                                        </div>
Riri Novita's avatar
Riri Novita committed
5035
                                        <div className="col-2">
Riri Novita's avatar
Riri Novita committed
5036 5037 5038 5039 5040 5041 5042
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5043
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5044 5045 5046
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
Riri Novita's avatar
Riri Novita committed
5047
                                                            value={(tableMeta.rowData[32])}
Riri Novita's avatar
Riri Novita committed
5048 5049 5050
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5051
                                            </div>
Riri Novita's avatar
Riri Novita committed
5052
                                        </div>
Riri Novita's avatar
Riri Novita committed
5053
                                        <div className="col-3">
Riri Novita's avatar
Riri Novita committed
5054 5055 5056 5057 5058 5059 5060
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5061
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5062 5063 5064
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
Riri Novita's avatar
Riri Novita committed
5065
                                                            value={(tableMeta.rowData[33])}
Riri Novita's avatar
Riri Novita committed
5066 5067 5068
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5069
                                            </div>
Riri Novita's avatar
Riri Novita committed
5070 5071 5072
                                        </div>
                                </div>
                            </div>
Riri Novita's avatar
Riri Novita committed
5073 5074
                        )
                    }
Riri Novita's avatar
Riri Novita committed
5075
                }
Riri Novita's avatar
Riri Novita committed
5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: `TPAT Margin`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
5095
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
Riri Novita's avatar
Riri Novita committed
5096 5097
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
                            <div className="grid grid-3x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
Riri Novita's avatar
Riri Novita committed
5098
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
5099
                                        <span>{`OL ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
5100 5101
                                    </div>
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
5102
                                        <span>{`${Number(this.props.periode) + 1}`}</span>
Riri Novita's avatar
Riri Novita committed
5103
                                    </div>
Riri Novita's avatar
Riri Novita committed
5104
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
5105
                                        <span>{`${Number(this.props.periode) + 2}`}</span>
Riri Novita's avatar
Riri Novita committed
5106
                                    </div>
Riri Novita's avatar
Riri Novita committed
5107 5108 5109 5110 5111 5112 5113
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
Riri Novita's avatar
Riri Novita committed
5114
                                <div className="grid grid-3x content-center">
Riri Novita's avatar
Riri Novita committed
5115
                                        <div className="col-1">
Riri Novita's avatar
Riri Novita committed
5116 5117 5118 5119 5120 5121 5122
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5123
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5124 5125 5126
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
Riri Novita's avatar
Riri Novita committed
5127
                                                            value={(tableMeta.rowData[34])}
Riri Novita's avatar
Riri Novita committed
5128 5129 5130
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5131
                                            </div>
Riri Novita's avatar
Riri Novita committed
5132
                                        </div>
Riri Novita's avatar
Riri Novita committed
5133
                                        <div className="col-2">
Riri Novita's avatar
Riri Novita committed
5134 5135 5136 5137 5138 5139 5140
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5141
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5142 5143 5144
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
Riri Novita's avatar
Riri Novita committed
5145
                                                            value={(tableMeta.rowData[35])}
Riri Novita's avatar
Riri Novita committed
5146 5147 5148
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5149
                                            </div>
Riri Novita's avatar
Riri Novita committed
5150
                                        </div>
Riri Novita's avatar
Riri Novita committed
5151
                                        <div className="col-3">
Riri Novita's avatar
Riri Novita committed
5152 5153 5154 5155 5156 5157 5158
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5159
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5160 5161 5162
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
Riri Novita's avatar
Riri Novita committed
5163
                                                            value={(tableMeta.rowData[36])}
Riri Novita's avatar
Riri Novita committed
5164 5165 5166
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5167
                                            </div>
Riri Novita's avatar
Riri Novita committed
5168 5169
                                        </div>
                                </div>
Riri Novita's avatar
Riri Novita committed
5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192
                            </div>
                        )
                    }
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: `% Revenue YoY`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
5193
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
Riri Novita's avatar
Riri Novita committed
5194 5195 5196
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
                            <div className="grid grid-3x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
5197
                                        <span>{`OL ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
5198 5199
                                    </div>
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
5200
                                        <span>{`${Number(this.props.periode) + 1}`}</span>
Riri Novita's avatar
Riri Novita committed
5201 5202
                                    </div>
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
5203
                                        <span>{`${Number(this.props.periode) + 2}`}</span>
Riri Novita's avatar
Riri Novita committed
5204 5205 5206 5207 5208 5209 5210 5211
                                    </div>
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
Riri Novita's avatar
Riri Novita committed
5212
                                <div className="grid grid-3x content-center">
Riri Novita's avatar
Riri Novita committed
5213
                                        <div className="col-1">
Riri Novita's avatar
Riri Novita committed
5214 5215 5216 5217 5218 5219 5220
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5221
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5222 5223 5224 5225
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
                                                            suffix={'%'}
rifkaki's avatar
rifkaki committed
5226
                                                            value={tableMeta.rowData[37]}
rifkaki's avatar
rifkaki committed
5227
                                                            // value={Number(tableMeta.rowData[37]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
5228 5229 5230
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5231
                                            </div>
Riri Novita's avatar
Riri Novita committed
5232
                                        </div>
Riri Novita's avatar
Riri Novita committed
5233
                                        <div className="col-2">
Riri Novita's avatar
Riri Novita committed
5234 5235 5236 5237 5238 5239 5240
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5241
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5242 5243 5244 5245
                                                            type="text"
                                                            placeholder=""
                                                            suffix={'%'}
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
5246
                                                            value={tableMeta.rowData[38]}
rifkaki's avatar
rifkaki committed
5247
                                                            // value={Number(tableMeta.rowData[38]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
5248 5249 5250
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5251
                                            </div>
Riri Novita's avatar
Riri Novita committed
5252
                                        </div>
Riri Novita's avatar
Riri Novita committed
5253
                                        <div className="col-3">
Riri Novita's avatar
Riri Novita committed
5254 5255 5256 5257 5258 5259 5260
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5261
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5262 5263 5264 5265
                                                            type="text"
                                                            suffix={'%'}
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
5266
                                                            value={tableMeta.rowData[39]}
rifkaki's avatar
rifkaki committed
5267
                                                            // value={Number(tableMeta.rowData[39]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
5268 5269 5270
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5271
                                            </div>
Riri Novita's avatar
Riri Novita committed
5272 5273
                                        </div>
                                </div>
Riri Novita's avatar
Riri Novita committed
5274
                            </div>
Riri Novita's avatar
Riri Novita committed
5275 5276
                        )
                    }
Riri Novita's avatar
Riri Novita committed
5277
                }
Riri Novita's avatar
Riri Novita committed
5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: `% EBITDA YoY`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
5297
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
Riri Novita's avatar
Riri Novita committed
5298 5299
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
                            <div className="grid grid-3x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
Riri Novita's avatar
Riri Novita committed
5300
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
5301
                                        <span>{`OL ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
5302 5303
                                    </div>
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
5304
                                        <span>{`${Number(this.props.periode) + 1}`}</span>
Riri Novita's avatar
Riri Novita committed
5305
                                    </div>
Riri Novita's avatar
Riri Novita committed
5306
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
5307
                                        <span>{`${Number(this.props.periode) + 2}`}</span>
Riri Novita's avatar
Riri Novita committed
5308
                                    </div>
Riri Novita's avatar
Riri Novita committed
5309 5310 5311 5312 5313 5314 5315
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
Riri Novita's avatar
Riri Novita committed
5316
                                <div className="grid grid-3x content-center">
Riri Novita's avatar
Riri Novita committed
5317
                                        <div className="col-1">
Riri Novita's avatar
Riri Novita committed
5318 5319 5320 5321 5322 5323 5324
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5325
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5326 5327 5328 5329
                                                            type="text"
                                                            placeholder=""
                                                            suffix={'%'}
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
5330
                                                            value={tableMeta.rowData[40]}
rifkaki's avatar
rifkaki committed
5331
                                                            // value={Number(tableMeta.rowData[40]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
5332 5333 5334
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5335
                                            </div>
Riri Novita's avatar
Riri Novita committed
5336
                                        </div>
Riri Novita's avatar
Riri Novita committed
5337
                                        <div className="col-2">
Riri Novita's avatar
Riri Novita committed
5338 5339 5340 5341 5342 5343 5344
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5345
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5346 5347 5348 5349
                                                            type="text"
                                                            placeholder=""
                                                            suffix={'%'}
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
5350
                                                            value={tableMeta.rowData[41]}
rifkaki's avatar
rifkaki committed
5351
                                                            // value={Number(tableMeta.rowData[41]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
5352 5353 5354
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5355
                                            </div>
Riri Novita's avatar
Riri Novita committed
5356
                                        </div>
Riri Novita's avatar
Riri Novita committed
5357
                                        <div className="col-3">
Riri Novita's avatar
Riri Novita committed
5358 5359 5360 5361 5362 5363 5364
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5365
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5366 5367 5368 5369
                                                            type="text"
                                                            placeholder=""
                                                            suffix={'%'}
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
5370
                                                            value={tableMeta.rowData[42]}
rifkaki's avatar
rifkaki committed
5371
                                                            // value={Number(tableMeta.rowData[42]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
5372 5373 5374
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5375
                                            </div>
Riri Novita's avatar
Riri Novita committed
5376 5377 5378
                                        </div>
                                </div>
                            </div>
Riri Novita's avatar
Riri Novita committed
5379 5380
                        )
                    }
Riri Novita's avatar
Riri Novita committed
5381
                }
Riri Novita's avatar
Riri Novita committed
5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: `% TPAT YoY`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
5401
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
Riri Novita's avatar
Riri Novita committed
5402 5403
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
                            <div className="grid grid-3x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
Riri Novita's avatar
Riri Novita committed
5404
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
5405
                                        <span>{`OL ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
5406 5407
                                    </div>
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
5408
                                        <span>{`${Number(this.props.periode) + 1}`}</span>
Riri Novita's avatar
Riri Novita committed
5409
                                    </div>
Riri Novita's avatar
Riri Novita committed
5410
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
5411
                                        <span>{`${Number(this.props.periode) + 2}`}</span>
Riri Novita's avatar
Riri Novita committed
5412
                                    </div>
Riri Novita's avatar
Riri Novita committed
5413 5414 5415 5416 5417 5418 5419
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
Riri Novita's avatar
Riri Novita committed
5420
                                <div className="grid grid-3x content-center">
Riri Novita's avatar
Riri Novita committed
5421
                                        <div className="col-1">
Riri Novita's avatar
Riri Novita committed
5422 5423 5424 5425 5426 5427 5428
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5429
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5430 5431 5432 5433
                                                            type="text"
                                                            placeholder=""
                                                            suffix={'%'}
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
5434
                                                            value={tableMeta.rowData[43]}
rifkaki's avatar
rifkaki committed
5435
                                                            // value={Number(tableMeta.rowData[43]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
5436 5437 5438
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5439
                                            </div>
Riri Novita's avatar
Riri Novita committed
5440
                                        </div>
Riri Novita's avatar
Riri Novita committed
5441
                                        <div className="col-2">
Riri Novita's avatar
Riri Novita committed
5442 5443 5444 5445 5446 5447 5448
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5449
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5450 5451 5452 5453
                                                            type="text"
                                                            placeholder=""
                                                            suffix={'%'}
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
5454
                                                            value={tableMeta.rowData[44]}
rifkaki's avatar
rifkaki committed
5455
                                                            // value={Number(tableMeta.rowData[44]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
5456 5457 5458
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5459
                                            </div>
Riri Novita's avatar
Riri Novita committed
5460
                                        </div>
Riri Novita's avatar
Riri Novita committed
5461
                                        <div className="col-3">
Riri Novita's avatar
Riri Novita committed
5462 5463 5464 5465 5466 5467 5468
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5469
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5470 5471 5472 5473
                                                            type="text"
                                                            placeholder=""
                                                            suffix={'%'}
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
5474
                                                            value={tableMeta.rowData[45]}
rifkaki's avatar
rifkaki committed
5475
                                                            // value={Number(tableMeta.rowData[45]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
5476 5477 5478
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5479
                                            </div>
Riri Novita's avatar
Riri Novita committed
5480 5481 5482
                                        </div>
                                </div>
                            </div>
Riri Novita's avatar
Riri Novita committed
5483 5484
                        )
                    }
Riri Novita's avatar
Riri Novita committed
5485
                }
Riri Novita's avatar
Riri Novita committed
5486 5487 5488 5489
            }, {
                name: "",
                options: {
                    display: false
Riri Novita's avatar
Riri Novita committed
5490
                }
Riri Novita's avatar
Riri Novita committed
5491 5492 5493 5494
            }, {
                name: "",
                options: {
                    display: false
Riri Novita's avatar
Riri Novita committed
5495
                }
Riri Novita's avatar
Riri Novita committed
5496 5497 5498 5499
            }, {
                name: "",
                options: {
                    display: false
Riri Novita's avatar
Riri Novita committed
5500
                }
Riri Novita's avatar
Riri Novita committed
5501 5502 5503 5504
            }, {
                name: `% NPAT YoY`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
5505
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
Riri Novita's avatar
Riri Novita committed
5506 5507 5508
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
                            <div className="grid grid-3x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
5509
                                        <span>{`OL ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
5510
                                    </div>
Riri Novita's avatar
Riri Novita committed
5511
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
5512
                                        <span>{`${Number(this.props.periode) + 1}`}</span>
Riri Novita's avatar
Riri Novita committed
5513
                                    </div>
Riri Novita's avatar
Riri Novita committed
5514
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
5515
                                        <span>{`${Number(this.props.periode) + 2}`}</span>
Riri Novita's avatar
Riri Novita committed
5516 5517
                                    </div>
                            </div>
Riri Novita's avatar
Riri Novita committed
5518 5519 5520 5521 5522 5523 5524 5525
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
                                <div className="grid grid-3x content-center">
                                        <div className="col-1">
Riri Novita's avatar
Riri Novita committed
5526 5527 5528 5529 5530 5531 5532
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5533
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5534 5535 5536 5537
                                                            type="text"
                                                            placeholder=""
                                                            suffix={'%'}
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
5538
                                                            value={tableMeta.rowData[46]}
rifkaki's avatar
rifkaki committed
5539
                                                            // value={Number(tableMeta.rowData[46]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
5540 5541 5542
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5543
                                            </div>
Riri Novita's avatar
Riri Novita committed
5544
                                        </div>
Riri Novita's avatar
Riri Novita committed
5545
                                        <div className="col-2">
Riri Novita's avatar
Riri Novita committed
5546 5547 5548 5549 5550 5551 5552
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5553
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5554 5555 5556 5557
                                                            type="text"
                                                            placeholder=""
                                                            suffix={'%'}
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
5558
                                                            value={tableMeta.rowData[47]}
rifkaki's avatar
rifkaki committed
5559
                                                            // value={Number(tableMeta.rowData[47]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
5560 5561 5562
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5563
                                            </div>
Riri Novita's avatar
Riri Novita committed
5564
                                        </div>
Riri Novita's avatar
Riri Novita committed
5565
                                        <div className="col-3">
Riri Novita's avatar
Riri Novita committed
5566 5567 5568 5569 5570 5571 5572
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5573
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5574 5575 5576 5577
                                                            type="text"
                                                            placeholder=""
                                                            suffix={'%'}
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
5578
                                                            value={tableMeta.rowData[48]}
rifkaki's avatar
rifkaki committed
5579
                                                            // value={Number(tableMeta.rowData[48]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
5580 5581 5582
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5583
                                            </div>
Riri Novita's avatar
Riri Novita committed
5584 5585 5586
                                        </div>
                                </div>
                            </div>
Riri Novita's avatar
Riri Novita committed
5587 5588
                        )
                    }
Riri Novita's avatar
Riri Novita committed
5589
                }
Riri Novita's avatar
Riri Novita committed
5590 5591 5592 5593
            }, {
                name: "",
                options: {
                    display: false
Riri Novita's avatar
Riri Novita committed
5594 5595 5596 5597 5598
                }
            }, {
                name: "",
                options: {
                    display: false
Riri Novita's avatar
Riri Novita committed
5599
                }
Riri Novita's avatar
Riri Novita committed
5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            },  
Riri Novita's avatar
Riri Novita committed
5611 5612 5613 5614 5615 5616 5617 5618 5619
        ]

        const columns = []

        return (
            <div>
                <div style={{ padding: '0px 20px 20px 20px', width: this.props.width - (this.props.open === true ? 350 : 100) }}>
                    <MuiThemeProvider theme={getMuiTheme()}>
                        <MUIDataTable
Riri Novita's avatar
Riri Novita committed
5620
                            data={dataTable2}
Riri Novita's avatar
Riri Novita committed
5621
                            columns={this.props.type === 1 ? columnMTD : this.props.type === 2 ? columnYTD : this.props.type === 3 ? columnCPSM : this.props.type === 4 ? columnHistorical : columns}
Riri Novita's avatar
Riri Novita committed
5622 5623 5624 5625 5626 5627 5628 5629
                            options={options}
                        />
                    </MuiThemeProvider>
                </div>
            </div>
        )
    }
}