Commit 71f6d7fa authored by Deni Rinaldi's avatar Deni Rinaldi

bs++

parent 5ccd8333
import React, { Component } from 'react'; import React, { Component } from 'react';
import { Typography, Paper, createMuiTheme, MuiThemeProvider, TableCell, FormControlLabel, TextField, Input } from '@material-ui/core'; import { Typography, Paper, createMuiTheme, MuiThemeProvider, TableCell, FormControlLabel, TextField, Input, Fab } from '@material-ui/core';
import MUIDataTable from 'mui-datatables'; import MUIDataTable from 'mui-datatables';
import NumberFormat from 'react-number-format'; import NumberFormat from 'react-number-format';
import api from '../../api'; import api from '../../api';
import AddIcon from '@material-ui/icons/Add';
var ct = require("../../library/CustomTable"); var ct = require("../../library/CustomTable");
const getMuiTheme = () => createMuiTheme(ct.customTable()); const getMuiTheme = () => createMuiTheme(ct.customTable());
...@@ -360,11 +361,11 @@ export default class BalanceSheet extends Component { ...@@ -360,11 +361,11 @@ export default class BalanceSheet extends Component {
return ( return (
<div style={{ width: 388 }}> <div style={{ width: 388 }}>
{tableMeta.rowData[4] == 0 ? {tableMeta.rowData[4] == 0 ?
<span style={{ fontSize: 12, fontWeight: 'bold' }}>{String(val).toUpperCase()}</span> <span style={{ fontSize: 12, fontWeight: 'bold' }}>{String(tableMeta.rowData[0] === 4 ?"": val).toUpperCase()}</span>
: :
tableMeta.rowData[4] === 1 ? tableMeta.rowData[4] === 1 ?
<span style={{ fontSize: 12, marginLeft: 20 * Number(tableMeta.rowData[4]) }}>{val}</span> : <span style={{ fontSize: 12, marginLeft: 20 * Number(tableMeta.rowData[4])}}>{tableMeta.rowData[0] === 4 ? "" : val}</span> :
<span style={{ fontSize: 12, marginLeft: 20 * Number(tableMeta.rowData[4]) }}>{val}</span> <span style={{ fontSize: 12, marginLeft: 20 * Number(tableMeta.rowData[4]) }}>{tableMeta.rowData[0] === 4 ? "" : val}</span>
} }
</div> </div>
) )
...@@ -470,6 +471,9 @@ export default class BalanceSheet extends Component { ...@@ -470,6 +471,9 @@ export default class BalanceSheet extends Component {
/> />
</span> </span>
: :
tableMeta.rowData[0] === 4 ?
null
:
tableMeta.rowData[0] === 1 ? tableMeta.rowData[0] === 1 ?
<span>-</span> <span>-</span>
: :
...@@ -523,6 +527,9 @@ export default class BalanceSheet extends Component { ...@@ -523,6 +527,9 @@ export default class BalanceSheet extends Component {
/> />
</span> </span>
: :
tableMeta.rowData[0] === 4 ?
null
:
tableMeta.rowData[0] === 1 ? tableMeta.rowData[0] === 1 ?
<span>-</span> <span>-</span>
: :
...@@ -576,6 +583,9 @@ export default class BalanceSheet extends Component { ...@@ -576,6 +583,9 @@ export default class BalanceSheet extends Component {
/> />
</span> </span>
: :
tableMeta.rowData[0] === 4 ?
null
:
tableMeta.rowData[0] === 1 ? tableMeta.rowData[0] === 1 ?
<span>-</span> <span>-</span>
: :
...@@ -629,6 +639,9 @@ export default class BalanceSheet extends Component { ...@@ -629,6 +639,9 @@ export default class BalanceSheet extends Component {
/> />
</span> </span>
: :
tableMeta.rowData[0] === 4 ?
null
:
tableMeta.rowData[0] === 1 ? tableMeta.rowData[0] === 1 ?
<span>-</span> <span>-</span>
: :
...@@ -682,6 +695,9 @@ export default class BalanceSheet extends Component { ...@@ -682,6 +695,9 @@ export default class BalanceSheet extends Component {
/> />
</span> </span>
: :
tableMeta.rowData[0] === 4 ?
null
:
tableMeta.rowData[0] === 1 ? tableMeta.rowData[0] === 1 ?
<span>-</span> <span>-</span>
: :
...@@ -735,6 +751,9 @@ export default class BalanceSheet extends Component { ...@@ -735,6 +751,9 @@ export default class BalanceSheet extends Component {
/> />
</span> </span>
: :
tableMeta.rowData[0] === 4 ?
null
:
tableMeta.rowData[0] === 1 ? tableMeta.rowData[0] === 1 ?
<span>-</span> <span>-</span>
: :
...@@ -820,6 +839,11 @@ export default class BalanceSheet extends Component { ...@@ -820,6 +839,11 @@ export default class BalanceSheet extends Component {
options={options} options={options}
/> />
</MuiThemeProvider> </MuiThemeProvider>
<Fab color="primary" aria-label="add" style={{ bottom: 0, right: 0, position: 'fixed' }} onClick={() => {
this.forceUpdate()
}}>
<AddIcon />
</Fab>
</div> </div>
</div> </div>
<div className="grid grid-2x"> <div className="grid grid-2x">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment