TaxPlanning.js 30.3 KB
Newer Older
1 2 3 4
import React, { Component } from 'react';
import { Typography, Paper, createMuiTheme, MuiThemeProvider, TableCell, FormControlLabel, TextField, Input } from '@material-ui/core';
import MUIDataTable from 'mui-datatables';
import NumberFormat from 'react-number-format';
5 6
import Images from '../../assets/Images';
import ReactTooltip from 'react-tooltip';
7
import api from '../../api';
8 9 10

var ct = require("../../library/CustomTable");
const getMuiTheme = () => createMuiTheme(ct.customTable());
11
const options = ct.customOptionsFixedColumn();
12 13 14 15 16 17 18

const style = {
    position: "sticky",
    left: 0,
    background: "white",
    zIndex: 101,
};
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
const style2 = {
    position: "sticky",
    left: 420,
    background: "white",
    zIndex: 101
};

export default class TaxPlanning extends Component {
    constructor(props) {
        super(props)
        this.state = {
            dataTable: [
                // ["TOTAL ASSETS", "11,247,249", "10,702,196"],
                // ["TOTAL CURRENT ASSETS", "2,647,647", "2,058,898"],
                // ["Cash & Cash Equivalent", "1,464,571", "729,743"],
                // ["Cash & Bank Balance", "938,707", "265,584"],
                // ["Time & Call Deposit", "525,864", "464,159"],
                // ["BI Deposit", "", ""],
                // ["Marketable Securities", "150,250", "154,500"],
                // ["Notes Receivable", "", ""],
                // ["Accounts Receivable", "172,031", "97,112"],
                // ["Trade Receivables - Third Party", "142,668", "77,480"],
            ]
        }
    }
    
    componentDidMount() {
        this.getItemHierarki()
        console.log(this.props);
    }

    getItemHierarki() {
        let payload = {
            "report_id": this.props.report_id,
            "company_id": this.props.company.company_id
        }
        api.create().getItemReportHierarki(payload).then(response => {
            console.log(response);
            if (response.data) {
                if (response.data.status === "success") {
                    let dataTable = []
                    response.data.data.map((item, index) => {
                        if (item.children && item.children.length > 0) {
                            dataTable.push([
                                item.type_report_id,
                                item.id,
                                item.parent,
                                item.level,
                                item.description
                            ])
                            item.children.map(i => {
                                if (i.children) {
                                    if (i.children.length > 0) {
                                        dataTable.push([
                                            i.type_report_id,
                                            i.id,
                                            i.parent,
                                            i.level,
                                            i.description
                                        ])
                                        i.children.map(val => {
                                            dataTable.push([
                                                val.type_report_id,
                                                val.id,
                                                val.parent,
                                                val.level,
                                                val.description
                                            ])
                                        })
                                    } else {
                                        dataTable.push([
                                            i.type_report_id,
                                            i.id,
                                            i.parent,
                                            i.level,
                                            i.description
                                        ])
                                    }
                                } else {
                                    dataTable.push([
                                        i.type_report_id,
                                        i.id,
                                        i.parent,
                                        i.level,
                                        i.description
                                    ])
                                }
                            })
                        } else {
                            dataTable.push([
                                item.type_report_id,
                                item.id,
                                item.parent,
                                item.level,
                                item.description
                            ])
                        }
                    })
                    console.log(dataTable);
                    this.setState({ dataTable })
                }
            }
        })
    }

    handleValue(data) {
        let total = 0
126
        this.state.dataTable.map((item, index) => {
127
            if (data.rowData[1] == item[2]) {
128
                total = item[data.columnIndex] == undefined ? (total + 0) : (total + item[data.columnIndex])
129 130 131 132 133 134 135 136 137
            }
        })
        let indexParent = this.state.dataTable.findIndex((val) => val[1] == this.state.dataTable[data.rowIndex][2])
        let a = this.state.dataTable[data.rowIndex][data.columnIndex] = total
        // console.log(indexParent);
        return a
    }

    handleChange(value, tableMeta) {
138
        let val = String(value).split(",").join("")
139 140 141
        let data = this.state.dataTable
        let indexParent = data.findIndex((val) => val[1] == data[tableMeta.rowIndex][2])
        if (indexParent > 0) {
142
            let a = data[tableMeta.rowIndex][tableMeta.columnIndex] = Number(val)
143
            let jagain = data[indexParent][tableMeta.columnIndex]
144
            a = data[indexParent][tableMeta.columnIndex] = jagain == undefined ? (0 + Number(val)) : (jagain + Number(val))
145
        } else {
146
            data[tableMeta.rowIndex][tableMeta.columnIndex] = Number(val)
147
        }
148
        this.forceUpdate()
149
        // console.log(this.state.dataTable)
150 151 152 153 154
        // this.setState({
        //     data: a,
        // }, () => console.log(this.state.dataTable))
    }

155 156
    render() {
        const columns = [{
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
            name: "",
            options: {
                display: false
            }
        },{
            name: "",
            options: {
                display: false
            }
        },{
            name: "",
            options: {
                display: false
            }
        },{
            name: "",
            options: {
                display: false
            }
        },{
177 178 179 180 181 182 183 184 185 186 187
            name: "Account",
            options: {
                customHeadRender: (columnMeta) => (
                    <TableCell key={columnMeta.index} style={{ ...style, top: 0, zIndex: 102, backgroundColor: '#354960', width: 388 }}>
                        <Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'left' }}>{columnMeta.name}</Typography>
                    </TableCell>
                ),
                setCellProps: () => ({ style }),
                customBodyRender: (val, tableMeta) => {
                    return (
                        <div style={{ width: 388 }}>
188 189 190 191 192 193 194 195 196 197 198
                            {tableMeta.rowData[3] == 0 ?
                                <span style={{ fontSize: 12, fontWeight: 'bold' }}>{String(val).toUpperCase()}</span>
                                :
                                tableMeta.rowData[3] === 1?
                                    <span style={{ fontSize: 12, marginLeft: 20 }}>{val}</span> :
                                    <span style={{ fontSize: 12, marginLeft: 40 }}>{val}</span>
                            }
                        </div>
                    )
                }
            }
199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215
        // }, {
        //     name: "31 Dec 2020  Actual",
        //     options: {
        //         customHeadRender: (columnMeta) => (
        //             <TableCell key={columnMeta.index} style={{ ...style2, top: 0, zIndex: 102, backgroundColor: '#354960', width: 96 }}>
        //                 <Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'center' }}>{columnMeta.name}</Typography>
        //             </TableCell>
        //         ),
        //         setCellProps: () => ({
        //             style: {
        //                 position: "sticky",
        //                 left: 420,
        //                 background: "white",
        //                 zIndex: 101
        //             }
        //         })
        //     }
216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237
        }, {
            name: "January 2021",
            options: {
                customHeadRender: (columnMeta) => (
                    <TableCell style={{ backgroundColor: '#354960', width: 96 }}>
                        <Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'center' }}>{columnMeta.name}</Typography>
                    </TableCell>
                ),
                customBodyRender: (value, tableMeta, updateValue) => {
                    console.log(tableMeta)
                    return (
                        <div style={{ textAlign: 'right' }}>
                            {tableMeta.rowData[0] === 4 ?
                                <div style={{ flex: 1 }}>
                                    <FormControlLabel
                                        style={{ margin: 0 }}
                                        value={value}
                                        control={
                                            <NumberFormat
                                                thousandSeparator={true}
                                                style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                type="text"
238
                                                placeholder="input"
239 240 241 242 243 244 245 246 247 248 249
                                                value={value}
                                                onChange={event => {
                                                    // console.log(event.target)
                                                    updateValue(event.target.value)
                                                    this.handleChange(event.target.value, tableMeta)
                                                }}
                                            />
                                        }
                                    />
                                </div> :
                                tableMeta.rowData[0] === 2 ?
250 251 252 253 254 255 256 257 258 259
                                    <span style={{ fontSize: 12, textAlign: 'right' }}>
                                        <NumberFormat
                                            thousandSeparator={true}
                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                            type="text"
                                            placeholder=""
                                            disabled={true}
                                            value={this.handleValue(tableMeta)}
                                        />
                                    </span>
260
                                :
261 262 263 264
                                tableMeta.rowData[0] === 1 ?
                                <span>-</span>
                                :
                                <span>validasi</span>
265 266 267 268 269 270
                            }
                        </div>
                    )
                }
            }
        }, {
271
            name: "February 2021",
272
            options: {
Deni Rinaldi's avatar
Deni Rinaldi committed
273
                filter: false,
274
                customHeadRender: (columnMeta) => (
275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307
                    <th key={3} style={{ cursor: 'pointer', backgroundColor: '#354960', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, border: "1px solid rgb(255, 255, 255)" }} >
                        <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', padding: 5 }}>{columnMeta.name}</div>
                        <div className="grid grid-3x" style={{ backgroundColor: '#354960', color: '#fff', fontSize: 13, fontWeight: 1, position: "sticky" }}>
                            <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5 }}>
                                <span>{"Trial Balance (Commercial) MTD"}</span>
                            </div>
                            <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5 }}>
                                <span>{"Fiscal Correction Positive /(Negative)"}</span>
                            </div>
                            <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5 }}>
                                <span>{"Trial Balance (Fiscal) MTD"}</span>
                            </div>
                        </div>
                    </th>
                ),
                customBodyRender: (value, tableMeta, updateValue) => {
                    return (
                        <div>
                            <div className="grid grid-3x content-center">
                                <div className="column-1" style={{ paddingRight: 20}}>
                                    {99}
                                </div>
                                <div className="column-2" style={{ }}>
                                    {tableMeta.rowData[0] === 4 ?
                                        <div style={{ flex: 1 }}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={value}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
                                                        style={{ color: "#5198ea", fontSize: 12, textAlign: 'center', borderColor: 'transparent', margin: 0, width: '100%', backgroundColor: 'transparent' }}
                                                        type="text"
308
                                                        placeholder="input"
309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351
                                                        value={value}
                                                        onChange={event => {
                                                            // console.log(event.target)
                                                            updateValue(event.target.value)
                                                            this.handleChange(event.target.value, tableMeta)
                                                        }}
                                                    />
                                                }
                                            />
                                        </div> :
                                        tableMeta.rowData[0] === 2 ?
                                            <span style={{ fontSize: 12, textAlign: 'center' }}>
                                                <NumberFormat
                                                    thousandSeparator={true}
                                                    style={{ fontSize: 12, textAlign: 'center', borderColor: 'transparent', margin: 0, width: '100%', backgroundColor: 'transparent' }}
                                                    type="text"
                                                    placeholder=""
                                                    disabled={true}
                                                    value={this.handleValue(tableMeta)}
                                                />
                                            </span>
                                            :
                                            tableMeta.rowData[0] === 1 ?
                                                <span>-</span>
                                                :
                                                <span>validasi</span>
                                    }
                                </div>
                                <div className="column-3" style={{ paddingLeft: 35}}>
                                    {99}
                                </div>
                            </div>
                        </div>
                    );
                }
            }
        }, {
            name: "March 2021",
            options: {
                filter: false,
                customHeadRender: (columnMeta) => (
                    <th style={{ cursor: 'pointer', backgroundColor: '#354960', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, border: "1px solid rgb(255, 255, 255)" }} >
                        <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', padding: 5 }}>{columnMeta.name}</div>
Deni Rinaldi's avatar
Deni Rinaldi committed
352
                        <div className="grid grid-3x" style={{ backgroundColor: '#354960', color: '#fff', fontSize: 13, fontWeight: 1, position: "sticky" }}>
353
                            <div style={{ placeSelf: 'center', textAlign: 'center', padding: 5 }}>
Deni Rinaldi's avatar
Deni Rinaldi committed
354 355
                                <span style={{ textAlign: 'center' }}>{"Trial Balance (Commercial) MTD"}</span>
                            </div>
356
                            <div style={{ placeSelf: 'center', textAlign: 'center', padding: 5 }}>
Deni Rinaldi's avatar
Deni Rinaldi committed
357 358
                                <span>{"Fiscal Correction Positive /(Negative)"}</span>
                            </div>
359
                            <div style={{ placeSelf: 'center', textAlign: 'center', padding: 5 }}>
Deni Rinaldi's avatar
Deni Rinaldi committed
360 361
                                <span>{"Trial Balance (Fiscal) MTD"}</span>
                            </div>
362
                        </div>
Deni Rinaldi's avatar
Deni Rinaldi committed
363
                    </th>
364 365 366
                ),
                customBodyRender: (val) => {
                    return (
Deni Rinaldi's avatar
Deni Rinaldi committed
367 368 369 370 371 372 373 374 375 376 377 378
                        <div>
                            <div className="grid grid-3x content-center">
                                <div className="col-1">
                                    {val}
                                </div>
                                <div className="col-2">
                                    {val}
                                </div>
                                <div className="col-3">
                                    {val}
                                </div>
                            </div>
379
                        </div>
Deni Rinaldi's avatar
Deni Rinaldi committed
380
                    );
381 382
                }
            }
383 384 385 386 387 388 389
        }, {
            name: "April 2021",
            options: {
                customHeadRender: (columnMeta) => (
                    <TableCell style={{ backgroundColor: '#354960', width: 96 }}>
                        <Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'center' }}>{columnMeta.name}</Typography>
                    </TableCell>
390 391 392
                ),
                customBodyRender: (val) => {
                    return (
393 394
                        <div style={{ width: 96 }}>
                            {val}
395
                        </div>
396
                    )
397 398 399
                }
            }
        }, {
400
            name: "May 2021",
401 402
            options: {
                customHeadRender: (columnMeta) => (
403 404 405 406 407 408 409 410
                    <TableCell style={{ backgroundColor: '#354960', width: 96 }}>
                        <Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'center' }}>{columnMeta.name}</Typography>
                    </TableCell>
                ),
                customBodyRender: (val) => {
                    return (
                        <div style={{ width: 96 }}>
                            {val}
411
                        </div>
412 413 414 415 416 417 418 419 420 421
                    )
                }
            }
        }, {
            name: "June 2021",
            options: {
                customHeadRender: (columnMeta) => (
                    <TableCell style={{ backgroundColor: '#354960', width: 96 }}>
                        <Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'center' }}>{columnMeta.name}</Typography>
                    </TableCell>
422 423 424
                ),
                customBodyRender: (val) => {
                    return (
425 426
                        <div style={{ width: 96 }}>
                            {val}
427
                        </div>
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 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476
                    )
                }
            }
        }, {
            name: "31 Dec 2021 Total",
            options: {
                customHeadRender: (columnMeta) => (
                    <TableCell style={{ backgroundColor: '#354960', width: 96 }}>
                        <Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'center' }}>{columnMeta.name}</Typography>
                    </TableCell>
                ),
                customBodyRender: (val) => {
                    return (
                        <div style={{ width: 96 }}>
                            {val}
                        </div>
                    )
                }
            }
        }, {
            name: "31 Dec 2022 Total",
            options: {
                customHeadRender: (columnMeta) => (
                    <TableCell style={{ backgroundColor: '#354960', width: 96 }}>
                        <Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'center' }}>{columnMeta.name}</Typography>
                    </TableCell>
                ),
                customBodyRender: (val) => {
                    return (
                        <div style={{ width: 96 }}>
                            {val}
                        </div>
                    )
                }
            }
        }, {
            name: "31 Dec 2023 Total",
            options: {
                customHeadRender: (columnMeta) => (
                    <TableCell style={{ backgroundColor: '#354960', width: 96 }}>
                        <Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'center' }}>{columnMeta.name}</Typography>
                    </TableCell>
                ),
                customBodyRender: (val) => {
                    return (
                        <div style={{ width: 96 }}>
                            {val}
                        </div>
                    )
477 478
                }
            }
479
        }
480
        ]
481
        
482
        return (
483 484 485 486 487 488 489 490 491
            <div style={{ height: this.props.height }}>
                <div class="main-color" style={{ height: 279, width: '100%' }} />
                <div>
                    <div style={{ alignItems: 'center', paddingLeft: 25, marginTop: -229 }} >
                        <Typography style={{ fontSize: '16px', color: 'white' }}>Master Budget - Tax Planning</Typography>
                    </div>
                    <div style={{ display: 'flex', flexDirection: 'row', justifyContent: 'space-between', paddingRight: 25, paddingLeft: 25, marginTop: 45 }}>
                        {/* <label style={{ width: '20%', color: 'white', fontSize: 16, alignSelf: 'center', paddingTop: 8 }}>Master Budget - Tax Planning</label> */}
                        <div>
492
                            <Typography style={{ fontSize: '11px', color: 'white' }}>{this.props.company.company_name} Company</Typography>
493 494
                            <Typography style={{ fontSize: '11px', color: 'white' }}>Periode : 2021</Typography>
                            <Typography style={{ fontSize: '11px', color: 'white' }}>in IDR mn</Typography>
495
                        </div>
496 497 498 499 500 501 502 503 504 505
                        <div style={{ width: '30%', justifyContent: 'flex-end', display: 'flex', flexFlow: 'wrap' }}>
                            <a data-tip={'Download Template'} data-for="template">
                                <button
                                    style={{
                                        backgroundColor: 'transparent',
                                        cursor: 'pointer',
                                        borderColor: 'transparent',
                                        padding: 0,
                                        margin: 5
                                    }}
506
                                    // onClick={() => this.downloadFile()}
507 508 509 510 511 512 513 514 515 516 517 518 519 520 521
                                >
                                    <img src={Images.template} />
                                </button>
                            </a>
                            <ReactTooltip border={true} id="template" place="bottom" type="light" effect="solid" />
                            <a data-tip={'Upload'} data-for="upload">
                                <button
                                    style={{
                                        backgroundColor: 'transparent',
                                        cursor: 'pointer',
                                        borderColor: 'transparent',
                                        marginLeft: 16,
                                        padding: 0,
                                        margin: 5
                                    }}
522
                                    // onClick={() => this.setState({ visibleUpload: true })}
523 524 525 526 527 528 529 530 531 532 533 534 535 536 537
                                >
                                    <img src={Images.upload} />
                                </button>
                            </a>
                            <ReactTooltip border={true} id="upload" place="bottom" type="light" effect="solid" />
                            <a data-tip={'Download'} data-for="download">
                                <button
                                    style={{
                                        backgroundColor: 'transparent',
                                        cursor: 'pointer',
                                        borderColor: 'transparent',
                                        marginLeft: 16,
                                        padding: 0,
                                        margin: 5
                                    }}
538
                                    // onClick={() => this.downloadDataTable()}
539 540 541 542 543 544 545 546 547 548
                                >
                                    <img src={Images.download} />
                                </button>
                            </a>
                            <ReactTooltip border={true} id="download" place="bottom" type="light" effect="solid" />
                        </div >
                    </div>
                    <div style={{ padding: 25, width: '100%' }}>
                        <MuiThemeProvider theme={getMuiTheme()}>
                            <MUIDataTable
549
                                data={this.state.dataTable}
550 551 552 553 554
                                columns={columns}
                                options={options}
                            />
                        </MuiThemeProvider>
                    </div>
555 556
                    <div className="grid grid-2x" style={{ marginBottom: 20, paddingRight: 10, paddingLeft: 10 }}>
                        <div className="col-1">
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
557 558
                            <div onClick={() => this.props.onClickClose()} style={{ backgroundColor: '#019ce5', width: 105, height: 25, borderRadius: 3, justifyContent: 'center', display: 'flex', alignItems: 'center', cursor: 'pointer' }}>
                                <Typography style={{ fontSize: '11px', color: '#fff', textAlign: 'center' }}>Back</Typography>
559 560 561
                            </div>
                        </div>
                        <div className="col-2" style={{ display: 'flex', justifyContent: 'flex-end', maxWidth: '100%' }}>
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
562 563
                            <div onClick={() => this.props.onClickClose()} style={{ backgroundColor: '#fff', width: 105, height: 25, borderRadius: 3, justifyContent: 'center', display: 'flex', alignItems: 'center', border: 'solid 1px #354960', cursor: 'pointer', marginRight: 20 }}>
                                <Typography style={{ fontSize: '11px', color: '#354960', textAlign: 'center' }}>Cancel</Typography>
564
                            </div>
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
565 566
                            <div style={{ backgroundColor: '#354960', width: 105, height: 25, borderRadius: 3, justifyContent: 'center', display: 'flex', alignItems: 'center', cursor: 'pointer' }}>
                                <Typography style={{ fontSize: '11px', color: '#fff', textAlign: 'center' }}>Save</Typography>
567 568 569
                            </div>
                        </div>
                    </div>
570 571
                </div>
            </div>
572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600
            // <div style={{ height: this.props.height, backgroundColor: '#f8f8f8', marginBottom: 100, minHeight: 1000 }}>
            //     <div className={"main-color"} style={{ height: 78, flex: 1, display: 'flex', alignItems: 'center', paddingLeft: 20 }}>
            //         <Typography style={{ fontSize: '16px', color: 'white' }}>Budget Tahunan - Tax Planning</Typography>
            //     </div>
            //     <div style={{ flex: 1, padding: 20, width: '100%' }}>
            //         {/* <Paper style={{ paddingTop: 10 }}>
            //             <div style={{ borderBottom: 'solid 1px #c4c4c4' }} >
            //                 <Typography style={{ fontSize: '12px', fontWeight: 'bold', color: '#4b4b4b', margin: 10 }}>Budget Tahunan</Typography>
            //             </div> */}
            //             <div style={{ padding: 20 }}>
            //                 <div>
            //                     <Typography style={{ fontSize: '11px', color: '#4b4b4b' }}>PT. XYZ</Typography>
            //                     <Typography style={{ fontSize: '11px', color: '#4b4b4b' }}>Periode : 2021</Typography>
            //                     <Typography style={{ fontSize: '11px', color: '#4b4b4b' }}>in IDR mn</Typography>
            //                 </div>

            //                 <div style={{ marginTop: 20, width: '100%' }}>
            //                     <MuiThemeProvider theme={getMuiTheme()}>
            //                         <MUIDataTable
            //                             data={dataTable}
            //                             columns={columns}
            //                             options={options}
            //                         />
            //                     </MuiThemeProvider>
            //                 </div>
            //             </div>
            //         {/* </Paper> */}
            //     </div>
            // </div>
601 602 603
        );
    }
}