Commit 2c507d0d authored by Dida Adams Arizona's avatar Dida Adams Arizona

Merge branch 'didam' into 'master'

keren

See merge request !593
parents a2dac336 a62cd838
...@@ -42,6 +42,13 @@ const stylenotes = { ...@@ -42,6 +42,13 @@ const stylenotes = {
left: 350 left: 350
}; };
const styleNotesEmpty = {
position: "sticky",
background: "white",
zIndex: 99,
left: 0
}
export default class ProfitLoss extends Component { export default class ProfitLoss extends Component {
constructor(props) { constructor(props) {
super(props) super(props)
...@@ -570,9 +577,11 @@ export default class ProfitLoss extends Component { ...@@ -570,9 +577,11 @@ export default class ProfitLoss extends Component {
// operator.push(item) // operator.push(item)
// } // }
}) })
// if (String(tableMeta.rowData[5]) == "Unit Business/ Brand/ SubCo 1") {
// console.log(arrayFormula) // console.log(arrayFormula)
// console.log(arrayJumlah) // console.log(arrayJumlah)
// }
let array = arrayJumlah let array = arrayJumlah
let total = 0 let total = 0
let opt = "" let opt = ""
...@@ -671,8 +680,12 @@ export default class ProfitLoss extends Component { ...@@ -671,8 +680,12 @@ export default class ProfitLoss extends Component {
name: "Notes", name: "Notes",
options: { options: {
customHeadRender: (columnMeta) => ( customHeadRender: (columnMeta) => (
dataTable2.length > 0 ?
<TableCell style={{ ...stylenotes, top: 0, zIndex: 102, backgroundColor: '#1c71b8', width: 96 }}> <TableCell style={{ ...stylenotes, top: 0, zIndex: 102, backgroundColor: '#1c71b8', width: 96 }}>
<Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'center' }}>{columnMeta.name}</Typography> <Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'center' }}>{columnMeta.name}</Typography>
</TableCell> :
<TableCell style={{ ...styleNotesEmpty, top: 0, zIndex: 102, backgroundColor: '#1c71b8', width: 96 }}>
<Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'center' }}>{columnMeta.name}</Typography>
</TableCell> </TableCell>
), ),
setCellProps: () => ({ setCellProps: () => ({
......
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