Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Tia-dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dida Adams Arizona
Tia-dev
Commits
817a4bad
Commit
817a4bad
authored
Feb 23, 2026
by
Hardiansyah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix logic
parent
3138a75b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
10 deletions
+19
-10
TableSummaryTriputra.js
src/container/SummaryTriputra/TableSummaryTriputra.js
+19
-10
No files found.
src/container/SummaryTriputra/TableSummaryTriputra.js
View file @
817a4bad
...
...
@@ -22,19 +22,28 @@ const style2 = {
};
export
default
class
TableSummaryTriputra
extends
Component
{
getInputColor
=
({
val
,
column
=
null
})
=>
{
const
COLUMN_RULE
=
{
MTD
:
37
,
YTD
:
45
,
CPSM
:
49
};
const
isEditable
=
!
[
0
,
1
].
includes
(
val
[
2
])
&&
!
val
[
COLUMN_RULE
[
column
]];
getInputColor
=
({
val
,
column
})
=>
{
// const COLUMN_INDEX
= {
//
MTD: 37,
//
YTD: 45,
// CPSM: 49,
//
};
// if (val[2] === 0 || val[2] === 1) {
// return Constant.COLORS_TEXT_COLUMNS.disabled;
// }
return
isEditable
?
Constant
.
COLORS_TEXT_COLUMNS
.
active
:
Constant
.
COLORS_TEXT_COLUMNS
.
disabled
;
// const idx = COLUMN_INDEX[column];
// if (idx === undefined) {
// return Constant.COLORS_TEXT_COLUMNS.disabled;
// }
// return val[idx]
// ? Constant.COLORS_TEXT_COLUMNS.disabled
// : Constant.COLORS_TEXT_COLUMNS.active;
return
Constant
.
COLORS_TEXT_COLUMNS
.
disabled
};
formattingNumber
=
(
v
,
decimal
=
1
)
=>
{
if
(
v
===
null
||
v
===
undefined
||
v
===
''
)
return
''
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment