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
5216c22e
Commit
5216c22e
authored
Oct 19, 2023
by
fahrur huzain
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ENV-DEV' into 'ENV-STAGING'
Env dev See merge request
!2088
parents
f58b2b3a
9913a807
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
320 additions
and
258 deletions
+320
-258
CreateParameter.js
src/container/MasterData/Parameter/CreateParameter.js
+49
-4
BalanceSheetMR.js
src/container/MonthlyReport/BalanceSheetMR.js
+268
-252
BalanceSheetRO.js
src/container/RollingOutlook/BalanceSheetRO.js
+3
-2
No files found.
src/container/MasterData/Parameter/CreateParameter.js
View file @
5216c22e
...
@@ -871,7 +871,7 @@ export default class CreateParameter extends Component {
...
@@ -871,7 +871,7 @@ export default class CreateParameter extends Component {
if
(
R
.
isEmpty
(
data
.
maxValue
))
{
if
(
R
.
isEmpty
(
data
.
maxValue
))
{
}
else
{
}
else
{
if
(
data
.
maxValue
.
match
(
minMaxValidasi
.
minMaxRegex
)
&&
(
this
.
state
.
getTypes
.
setting_group_name
!=
"THRESHOLD_CONTROL"
?
data
.
maxValue
.
substring
(
0
,
1
)
!=
"0"
:
true
)
&&
(
this
.
state
.
getTypes
.
setting_group_name
!=
"THRESHOLD_CONTROL"
?
data
.
maxValue
.
length
<=
minMaxValidasi
.
maxLength
:
true
))
{
if
(
data
.
maxValue
.
match
(
minMaxValidasi
.
minMaxRegex
)
&&
(
this
.
state
.
getTypes
.
setting_group_name
!=
"THRESHOLD_CONTROL"
?
data
.
maxValue
.
substring
(
0
,
1
)
!=
"0"
:
true
)
&&
(
this
.
state
.
getTypes
.
setting_group_name
!=
"THRESHOLD_CONTROL"
?
data
.
maxValue
.
length
<=
minMaxValidasi
.
maxLength
:
true
))
{
this
.
updateParameter
()
this
.
updateParameter
Threshold
()
}
}
}
}
}
}
...
@@ -954,11 +954,11 @@ export default class CreateParameter extends Component {
...
@@ -954,11 +954,11 @@ export default class CreateParameter extends Component {
}
else
if
(
this
.
state
.
getTypes
.
setting_group_name
==
"THRESHOLD_VARIANCE"
||
this
.
state
.
getTypes
.
setting_group_name
==
"THRESHOLD_CONTROL"
)
{
}
else
if
(
this
.
state
.
getTypes
.
setting_group_name
==
"THRESHOLD_VARIANCE"
||
this
.
state
.
getTypes
.
setting_group_name
==
"THRESHOLD_CONTROL"
)
{
if
(
R
.
isEmpty
(
data
.
minValue
))
{
if
(
R
.
isEmpty
(
data
.
minValue
))
{
}
else
{
}
else
{
if
(
data
.
minValue
.
match
(
minMaxValidasi
.
minMaxRegex
)
&&
data
.
minValue
.
substring
(
0
,
1
)
!=
"0"
&&
data
.
minValue
.
length
<=
minMaxValidasi
.
minLength
)
{
if
(
data
.
minValue
.
match
(
minMaxValidasi
.
minMaxRegex
)
&&
(
this
.
state
.
getTypes
.
setting_group_name
!=
"THRESHOLD_CONTROL"
?
data
.
minValue
.
substring
(
0
,
1
)
!=
"0"
:
true
)
&&
(
this
.
state
.
getTypes
.
setting_group_name
!=
"THRESHOLD_CONTROL"
?
data
.
minValue
.
length
<=
minMaxValidasi
.
minLength
:
true
)
)
{
if
(
R
.
isEmpty
(
data
.
maxValue
))
{
if
(
R
.
isEmpty
(
data
.
maxValue
))
{
}
else
{
}
else
{
if
(
data
.
maxValue
.
match
(
minMaxValidasi
.
minMaxRegex
)
&&
data
.
maxValue
.
substring
(
0
,
1
)
!=
"0"
&&
data
.
maxValue
.
length
<=
minMaxValidasi
.
maxLength
)
{
if
(
data
.
maxValue
.
match
(
minMaxValidasi
.
minMaxRegex
)
&&
(
this
.
state
.
getTypes
.
setting_group_name
!=
"THRESHOLD_CONTROL"
?
data
.
maxValue
.
substring
(
0
,
1
)
!=
"0"
:
true
)
&&
(
this
.
state
.
getTypes
.
setting_group_name
!=
"THRESHOLD_CONTROL"
?
data
.
maxValue
.
length
<=
minMaxValidasi
.
maxLength
:
true
)
)
{
this
.
createParameter
()
this
.
createParameter
Threshold
()
}
}
}
}
}
}
...
@@ -1358,6 +1358,28 @@ export default class CreateParameter extends Component {
...
@@ -1358,6 +1358,28 @@ export default class CreateParameter extends Component {
this
.
props
.
updateParameter
(
body
)
this
.
props
.
updateParameter
(
body
)
}
}
updateParameterThreshold
()
{
// let char = this.state.value
// let arrayChar = char.split('');
// console.log(char);
let
body
=
{
"setting_id"
:
this
.
state
.
tempData
.
setting_id
,
"setting_group_id"
:
this
.
state
.
getTypes
.
setting_group_id
,
"setting_type_id"
:
this
.
state
.
getParameter
.
setting_type_id
,
"company_id"
:
this
.
state
.
getPerusahaan
.
company_id
,
"reference_id"
:
this
.
state
.
getThresholdCurrency
==
null
?
null
:
this
.
state
.
getThresholdCurrency
.
setting_type_id
,
"description"
:
this
.
state
.
tempData
.
description
,
"orders"
:
this
.
state
.
tempData
.
order
,
"value"
:
this
.
state
.
tempData
.
value
,
"max_value"
:
this
.
state
.
tempData
.
max_value
,
"min_value"
:
this
.
state
.
tempData
.
min_value
,
"start_date"
:
this
.
state
.
tempData
.
start_date
,
"end_date"
:
this
.
state
.
tempData
.
end_date
}
console
.
log
(
body
);
this
.
props
.
updateParameter
(
body
)
}
updateParameterCurrebcyMoneyFormat
()
{
updateParameterCurrebcyMoneyFormat
()
{
// let char = this.state.value
// let char = this.state.value
// let arrayChar = char.split('');
// let arrayChar = char.split('');
...
@@ -1403,6 +1425,29 @@ export default class CreateParameter extends Component {
...
@@ -1403,6 +1425,29 @@ export default class CreateParameter extends Component {
this
.
props
.
createParameter
(
body
)
this
.
props
.
createParameter
(
body
)
}
}
createParameterThreshold
()
{
let
char
=
this
.
state
.
value
let
arrayChar
=
char
.
split
(
''
);
console
.
log
(
char
);
let
body
=
{
"setting_group_id"
:
this
.
state
.
getTypes
.
setting_group_id
,
"setting_type_id"
:
this
.
state
.
getParameter
.
setting_type_id
,
"company_id"
:
this
.
state
.
getPerusahaan
.
company_id
,
"reference_id"
:
this
.
state
.
getThresholdCurrency
==
null
?
null
:
this
.
state
.
getThresholdCurrency
.
setting_type_id
,
"description"
:
this
.
state
.
description
,
"orders"
:
this
.
state
.
order
,
"value"
:
this
.
state
.
value
,
// convert IDR to IDR mn
"value"
:
this
.
state
.
enableReportName
?
this
.
state
.
value
.
includes
(
"."
)
||
arrayChar
.
length
==
2
?
this
.
state
.
value
:
this
.
state
.
value
/
1000
:
this
.
state
.
value
,
"max_value"
:
this
.
state
.
maxValue
,
"min_value"
:
this
.
state
.
minValue
,
"start_date"
:
this
.
state
.
startDate
,
"end_date"
:
this
.
state
.
endDate
}
console
.
log
(
body
);
this
.
props
.
createParameter
(
body
)
}
createParameterCurrebcyMoneyFormat
()
{
createParameterCurrebcyMoneyFormat
()
{
let
char
=
this
.
state
.
value
let
char
=
this
.
state
.
value
let
arrayChar
=
char
.
split
(
''
);
let
arrayChar
=
char
.
split
(
''
);
...
...
src/container/MonthlyReport/BalanceSheetMR.js
View file @
5216c22e
...
@@ -1307,7 +1307,15 @@ export default class BalanceSheetMR extends Component {
...
@@ -1307,7 +1307,15 @@ export default class BalanceSheetMR extends Component {
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
7
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
7
?
null
:
null
:
// this.state.get_for == 'view'?
this
.
state
.
get_for
==
'view'
?
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
tableMeta
.
rowData
[
7
]),
1
)
:
Number
(
tableMeta
.
rowData
[
7
])
==
0
?
"0.0"
:
fixNumber
(
Number
(
tableMeta
.
rowData
[
7
]))}
/>
:
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
...
@@ -1404,7 +1412,15 @@ export default class BalanceSheetMR extends Component {
...
@@ -1404,7 +1412,15 @@ export default class BalanceSheetMR extends Component {
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
7
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
7
?
null
:
null
:
// this.state.get_for == 'view'?
this
.
state
.
get_for
==
'view'
?
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
tableMeta
.
rowData
[
8
]),
1
)
:
Number
(
tableMeta
.
rowData
[
8
])
==
0
?
"0.0"
:
fixNumber
(
Number
(
tableMeta
.
rowData
[
8
]))}
/>
:
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
...
...
src/container/RollingOutlook/BalanceSheetRO.js
View file @
5216c22e
...
@@ -1231,7 +1231,8 @@ export default class BalanceSheetRO extends Component {
...
@@ -1231,7 +1231,8 @@ export default class BalanceSheetRO extends Component {
placeholder
=
""
placeholder
=
""
// disabled={this.props.isApprover? true : (this.state.get_for == 'view'? true : false)}
// disabled={this.props.isApprover? true : (this.state.get_for == 'view'? true : false)}
disabled
=
{
this
.
props
.
quarter
==
'q1'
?
false
:
true
}
disabled
=
{
this
.
props
.
quarter
==
'q1'
?
false
:
true
}
value
=
{
this
.
props
.
defaultCurrency
.
id
==
1
?
(
this
.
props
.
quarter
==
'q2'
||
this
.
props
.
quarter
==
'q3'
?
(
val
==
""
?
""
:
fixNumber
(
Number
(
val
),
1
))
:
fixNumber
(
Number
(
val
),
1
))
:
(
this
.
props
.
quarter
==
'q2'
||
this
.
props
.
quarter
==
'q3'
?
(
val
==
""
?
""
:
Number
(
val
)
==
0
?
"0.0"
:
Number
(
val
))
:
Number
(
val
)
==
0
?
"0.0"
:
Number
(
val
))}
value
=
{
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
val
),
1
)
:
Number
(
val
)
==
0
?
"0.0"
:
Number
(
val
)}
// value={this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val == "" ? "" : fixNumber(Number(val), 1)) : fixNumber(Number(val), 1)) : (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val == "" ? "" : Number(val) == 0 ? "0.0" : Number(val)) : Number(val) == 0 ? "0.0" : Number(val))}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
handleChange
(
event
.
target
.
value
,
tableMeta
)
handleChange
(
event
.
target
.
value
,
tableMeta
)
}}
}}
...
@@ -2720,7 +2721,7 @@ export default class BalanceSheetRO extends Component {
...
@@ -2720,7 +2721,7 @@ export default class BalanceSheetRO extends Component {
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
disabled
=
{
true
}
disabled
=
{
true
}
value
=
{
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
val
),
1
)
:
Number
(
val
)
==
0
?
"0.0"
:
Number
(
val
)}
value
=
{
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
val
),
1
)
:
Number
(
val
)
==
0
?
"0.0"
:
fixNumber
(
Number
(
val
),
1
)}
/
>
/
>
:
:
tableMeta
.
rowData
[
0
]
===
2
?
tableMeta
.
rowData
[
0
]
===
2
?
...
...
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