Commit 3377a7fa authored by rifkaki's avatar rifkaki

ytd

parent 14f32693
......@@ -379,7 +379,7 @@ export default class SummaryOfTriputra extends Component {
item.npat_fy_last_year,
item.npat_fy_percent_of_last_year,
item.order,
item.is_approved
item.is_approved == undefined ? true : item.is_approved,
])
}
if (item.children !== null) {
......@@ -437,7 +437,7 @@ export default class SummaryOfTriputra extends Component {
item.npat_fy_last_year,
item.npat_fy_percent_of_last_year,
item.order,
item.is_approved
item.is_approved == undefined ? true : item.is_approved,
])
if (item.children !== null) {
if (item.children.length > 0) {
......
......@@ -1126,7 +1126,7 @@ export default class TableSummaryTriputra extends Component {
control={
<NumberFormat
thousandSeparator={true}
style={{ color: tableMeta.rowData[45] === undefined ? tableMeta.rowData[45] === true : (tableMeta.rowData[2] === 2 && tableMeta.rowData[45] === 'true') || (tableMeta.rowData[2] === 3 && tableMeta.rowData[45] === 'true') ? 'black' : tableMeta.rowData[2] === 2 || tableMeta.rowData[2] === 3 ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
......@@ -1142,7 +1142,7 @@ export default class TableSummaryTriputra extends Component {
control={
<NumberFormat
thousandSeparator={true}
style={{ color: tableMeta.rowData[2] === 2 && tableMeta.rowData[45] === 'true' ? 'black' : tableMeta.rowData[2] === 2 ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
......@@ -1176,7 +1176,7 @@ export default class TableSummaryTriputra extends Component {
control={
<NumberFormat
thousandSeparator={true}
style={{ color: tableMeta.rowData[2] === 2 && tableMeta.rowData[45] === 'true' ? 'black' : tableMeta.rowData[2] === 2 ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
......@@ -1212,7 +1212,7 @@ export default class TableSummaryTriputra extends Component {
control={
<NumberFormat
thousandSeparator={true}
style={{ color: tableMeta.rowData[2] === 2 && tableMeta.rowData[45] === 'true' ? 'black' : tableMeta.rowData[2] === 2 ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
......@@ -1228,7 +1228,7 @@ export default class TableSummaryTriputra extends Component {
control={
<NumberFormat
thousandSeparator={true}
style={{ color: tableMeta.rowData[2] === 2 && tableMeta.rowData[45] === 'true' ? 'black' : tableMeta.rowData[2] === 2 ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
......@@ -1262,7 +1262,7 @@ export default class TableSummaryTriputra extends Component {
control={
<NumberFormat
thousandSeparator={true}
style={{ color: tableMeta.rowData[2] === 2 && tableMeta.rowData[45] === 'true' ? 'black' : tableMeta.rowData[2] === 2 ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
......@@ -1422,7 +1422,7 @@ export default class TableSummaryTriputra extends Component {
control={
<NumberFormat
thousandSeparator={true}
style={{ color: tableMeta.rowData[2] === 2 && tableMeta.rowData[45] === 'true' ? 'black' : tableMeta.rowData[2] === 2 ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
......@@ -1438,7 +1438,7 @@ export default class TableSummaryTriputra extends Component {
control={
<NumberFormat
thousandSeparator={true}
style={{ color: tableMeta.rowData[2] === 2 && tableMeta.rowData[45] === 'true' ? 'black' : tableMeta.rowData[2] === 2 ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
......@@ -1472,7 +1472,7 @@ export default class TableSummaryTriputra extends Component {
control={
<NumberFormat
thousandSeparator={true}
style={{ color: tableMeta.rowData[2] === 2 && tableMeta.rowData[45] === 'true' ? 'black' : tableMeta.rowData[2] === 2 ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
......@@ -1508,7 +1508,7 @@ export default class TableSummaryTriputra extends Component {
control={
<NumberFormat
thousandSeparator={true}
style={{ color: tableMeta.rowData[2] === 2 && tableMeta.rowData[45] === 'true' ? 'black' : tableMeta.rowData[2] === 2 ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
......@@ -1524,7 +1524,7 @@ export default class TableSummaryTriputra extends Component {
control={
<NumberFormat
thousandSeparator={true}
style={{ color: tableMeta.rowData[2] === 2 && tableMeta.rowData[45] === 'true' ? 'black' : tableMeta.rowData[2] === 2 ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
......@@ -1558,7 +1558,7 @@ export default class TableSummaryTriputra extends Component {
control={
<NumberFormat
thousandSeparator={true}
style={{ color: tableMeta.rowData[2] === 2 && tableMeta.rowData[45] === 'true' ? 'black' : tableMeta.rowData[2] === 2 ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
......@@ -1724,7 +1724,7 @@ export default class TableSummaryTriputra extends Component {
control={
<NumberFormat
thousandSeparator={true}
style={{ color: tableMeta.rowData[2] === 2 && tableMeta.rowData[45] === 'true' ? 'black' : tableMeta.rowData[2] === 2 ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
......@@ -1740,7 +1740,7 @@ export default class TableSummaryTriputra extends Component {
control={
<NumberFormat
thousandSeparator={true}
style={{ color: tableMeta.rowData[2] === 2 && tableMeta.rowData[45] === 'true' ? 'black' : tableMeta.rowData[2] === 2 ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
......@@ -1774,7 +1774,7 @@ export default class TableSummaryTriputra extends Component {
control={
<NumberFormat
thousandSeparator={true}
style={{ color: tableMeta.rowData[2] === 2 && tableMeta.rowData[45] === 'true' ? 'black' : tableMeta.rowData[2] === 2 ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
......@@ -1810,7 +1810,7 @@ export default class TableSummaryTriputra extends Component {
control={
<NumberFormat
thousandSeparator={true}
style={{ color: tableMeta.rowData[2] === 2 && tableMeta.rowData[45] === 'true' ? 'black' : tableMeta.rowData[2] === 2 ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
......@@ -1826,7 +1826,7 @@ export default class TableSummaryTriputra extends Component {
control={
<NumberFormat
thousandSeparator={true}
style={{ color: tableMeta.rowData[2] === 2 && tableMeta.rowData[45] === 'true' ? 'black' : tableMeta.rowData[2] === 2 ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
......@@ -1860,7 +1860,7 @@ export default class TableSummaryTriputra extends Component {
control={
<NumberFormat
thousandSeparator={true}
style={{ color: tableMeta.rowData[2] === 2 && tableMeta.rowData[45] === 'true' ? 'black' : tableMeta.rowData[2] === 2 ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
......@@ -2026,7 +2026,7 @@ export default class TableSummaryTriputra extends Component {
control={
<NumberFormat
thousandSeparator={true}
style={{ color: tableMeta.rowData[2] === 2 && tableMeta.rowData[45] === 'true' ? 'black' : tableMeta.rowData[2] === 2 ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
......@@ -2042,7 +2042,7 @@ export default class TableSummaryTriputra extends Component {
control={
<NumberFormat
thousandSeparator={true}
style={{ color: tableMeta.rowData[2] === 2 && tableMeta.rowData[45] === 'true' ? 'black' : tableMeta.rowData[2] === 2 ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
......@@ -2076,7 +2076,7 @@ export default class TableSummaryTriputra extends Component {
control={
<NumberFormat
thousandSeparator={true}
style={{ color: tableMeta.rowData[2] === 2 && tableMeta.rowData[45] === 'true' ? 'black' : tableMeta.rowData[2] === 2 ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
......@@ -2112,7 +2112,7 @@ export default class TableSummaryTriputra extends Component {
control={
<NumberFormat
thousandSeparator={true}
style={{ color: tableMeta.rowData[2] === 2 && tableMeta.rowData[45] === 'true' ? 'black' : tableMeta.rowData[2] === 2 ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
......@@ -2128,7 +2128,7 @@ export default class TableSummaryTriputra extends Component {
control={
<NumberFormat
thousandSeparator={true}
style={{ color: tableMeta.rowData[2] === 2 && tableMeta.rowData[45] === 'true' ? 'black' : tableMeta.rowData[2] === 2 ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
......@@ -2162,7 +2162,7 @@ export default class TableSummaryTriputra extends Component {
control={
<NumberFormat
thousandSeparator={true}
style={{ color: tableMeta.rowData[2] === 2 && tableMeta.rowData[45] === 'true' ? 'black' : tableMeta.rowData[2] === 2 ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : 'black', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
......@@ -2268,6 +2268,12 @@ export default class TableSummaryTriputra extends Component {
display: false
}
},
{
name: "",
options: {
display: false
}
},
]
const columnHistorical = [
......
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