import { createMuiTheme, MuiThemeProvider, Paper, TableCell, Typography } from '@material-ui/core' import MUIDataTable from 'mui-datatables'; import React, { Component } from 'react' import ReactTooltip from 'react-tooltip'; import Images from '../../assets/Images'; 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, top: 0 }; export default class BalanceSheetMR extends Component { render() { let columns = [ { name: "Account", options: { customHeadRender: (columnMeta) => ( {columnMeta.name} ), setCellProps: () => ({ style }), customBodyRender: (val, tableMeta) => { return (
{val}
) } } }, { name: "Rolling Outlook (FY2021)", options: { customHeadRender: (columnMeta) => ( {columnMeta.name} ), setCellProps: () => ({ style2 }), customBodyRender: (val, tableMeta, updateValue) => { return (
{val}
) } } }, { name: `Month To Date (MTD)`, options: { customHeadRender: (columnMeta) => ( {/* {columnMeta.name} */}
{columnMeta.name}
{"Master Budget (MB)"}
{"Rolling Budget (RB)"}
{"Actual"}
), setCellProps: () => ({ style2 }), customBodyRender: (val, tableMeta, updateValue) => { return (
{val.a}
{val.b}
{val.c}
) } } }, { name: "Actual Previous Month", options: { customHeadRender: (columnMeta) => ( {columnMeta.name} ), setCellProps: () => ({ style2 }), customBodyRender: (val, tableMeta, updateValue) => { return (
{val}
) } } }, { name: `Variance`, options: { customHeadRender: (columnMeta) => (
{columnMeta.name}
{"Act vs Previous Month"}
{"Amount"}
{"%"}
{"Act vs MB"}
{"Amount"}
{"%"}
{"Act vs RB"}
{"Amount"}
{"%"}
), setCellProps: () => ({ style2 }), customBodyRender: (val, tableMeta, updateValue) => { return (
{val.a}
{val.b}
{val.c}
{val.d}
{val.e}
{val.f}
) } } }, { name: `MTD Explanation`, options: { customHeadRender: (columnMeta) => ( {/* {columnMeta.name} */}
{columnMeta.name}
{"vs Prev Month"}
{"vs MB"}
{"vs RB"}
), setCellProps: () => ({ style2 }), customBodyRender: (val, tableMeta, updateValue) => { return (
{val.a}
{val.b}
{val.c}
) } } }, ] let data = [ ["Total Assets", "1", { a: "2", b: "3", c: "4" }, "5", { a: "6", b: "7", c: "8", d: "9", e: "10", f: "11" }, { a: "12", b: "13", c: "14" }], ["Total Assets", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11"] ] return (
Monthly Report
Monthly Report - Balance Sheet
{this.props.company.company_name} Period : {this.props.periode} (rev.{this.props.revision}) in IDR mn
) } }