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
b6a8521f
Commit
b6a8521f
authored
May 07, 2024
by
fahrur huzain
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ENV-PROD' into 'ENV-DEPLOYMENT-PROD'
issue TP RO view dan parameter value See merge request
!2347
parents
7099ac77
66e1e57c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
CreateParameter.js
src/container/MasterData/Parameter/CreateParameter.js
+2
-1
Parameter.js
src/container/MasterData/Parameter/Parameter.js
+2
-1
No files found.
src/container/MasterData/Parameter/CreateParameter.js
View file @
b6a8521f
...
...
@@ -8,6 +8,7 @@ import * as R from 'ramda'
import
Images
from
'../../../assets/Images'
;
import
Constant
from
'../../../library/Constant'
;
import
PopUpInformation
from
'../../../library/PopUpInformation'
;
import
{
fixNumber
,
roundMath
}
from
'../../../library/Utils'
;
export
default
class
CreateParameter
extends
Component
{
constructor
(
props
)
{
...
...
@@ -1669,7 +1670,7 @@ export default class CreateParameter extends Component {
id
=
"value"
label
=
{
"Value"
}
// get data IDR by IDR mn
value
=
{
this
.
state
.
tempData
===
null
?
''
:
this
.
state
.
tempData
.
setting_group
===
"CURRENCY"
?
Number
(
this
.
state
.
tempData
.
value
)
*
1000
:
this
.
state
.
tempData
.
value
}
value
=
{
this
.
state
.
tempData
===
null
?
''
:
this
.
state
.
tempData
.
setting_group
===
"CURRENCY"
?
fixNumber
(
Number
(
this
.
state
.
tempData
.
value
)
*
1000
)
:
this
.
state
.
tempData
.
value
}
inputProps
=
{{
min
:
0
,
style
:
{
...
...
src/container/MasterData/Parameter/Parameter.js
View file @
b6a8521f
...
...
@@ -14,6 +14,7 @@ import Constant from '../../../library/Constant';
import
PopUpDelete
from
'../../../library/PopUpDelete'
;
import
{
css
}
from
"@emotion/core"
;
import
PropagateLoader
from
"react-spinners/PropagateLoader"
import
{
fixNumber
,
roundMath
}
from
'../../../library/Utils'
;
const
LightTooltip
=
withStyles
((
theme
)
=>
({
tooltip
:
{
...
...
@@ -119,7 +120,7 @@ export default class Parameter extends Component {
item
.
company_name
,
item
.
description
,
item
.
order
,
item
.
setting_group
===
"CURRENCY"
?
Number
(
item
.
value
)
*
1000
:
item
.
value
,
// convert IDR mn to IDR
item
.
setting_group
===
"CURRENCY"
?
fixNumber
(
Number
(
item
.
value
)
*
1000
)
:
item
.
value
,
// convert IDR mn to IDR
item
.
min_value
,
item
.
max_value
,
item
.
status
...
...
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