Commit 0df31886 authored by idlanirined's avatar idlanirined

Merge branch 'master' of http://103.44.149.204/d.arizona/tia-dev into deni

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