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
6523fe35
Commit
6523fe35
authored
Dec 22, 2023
by
fahrur huzain
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ENV-DEV' into 'ENV-DEPLOYMENT'
Env dev See merge request
!2281
parents
f463e096
86518d13
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletion
+26
-1
CreateReportItems.js
src/container/MasterData/ReportItems/CreateReportItems.js
+13
-0
EditReportItems.js
src/container/MasterData/ReportItems/EditReportItems.js
+13
-1
No files found.
src/container/MasterData/ReportItems/CreateReportItems.js
View file @
6523fe35
...
...
@@ -47,6 +47,7 @@ export default class CreateReportItems extends Component {
errorCondition
:
false
,
errorJenisLaporan
:
false
,
errorPerusahaan
:
false
,
errorCovertible
:
false
,
msgErrorJenisLaporan
:
''
,
msgErrorPerusahaan
:
''
,
msgErrorTipeData
:
''
,
...
...
@@ -57,6 +58,7 @@ export default class CreateReportItems extends Component {
msgErrorRV
:
''
,
msgErrorSD
:
''
,
msgErrorED
:
''
,
msgErrorCovertible
:
''
,
disabledFormula
:
true
,
disabledFormulaSum
:
true
,
disabledCondt
:
true
,
...
...
@@ -115,6 +117,7 @@ export default class CreateReportItems extends Component {
errorEndDate
:
false
,
errorTipeData
:
false
,
errorCondition
:
false
,
errorCovertible
:
false
,
msgErrorTipeData
:
''
,
msgErrorCondition
:
''
,
msgErrorOrder
:
''
,
...
...
@@ -123,6 +126,7 @@ export default class CreateReportItems extends Component {
msgErrorRV
:
''
,
msgErrorSD
:
''
,
msgErrorED
:
''
,
msgErrorCovertible
:
''
,
})
}
else
if
(
isDate
&&
type
===
'end_date'
)
{
this
.
setState
({
...
...
@@ -135,6 +139,7 @@ export default class CreateReportItems extends Component {
errorEndDate
:
false
,
errorTipeData
:
false
,
errorCondition
:
false
,
errorCovertible
:
false
,
msgErrorTipeData
:
''
,
msgErrorCondition
:
''
,
msgErrorOrder
:
''
,
...
...
@@ -143,6 +148,7 @@ export default class CreateReportItems extends Component {
msgErrorRV
:
''
,
msgErrorSD
:
''
,
msgErrorED
:
''
,
msgErrorCovertible
:
''
,
})
}
else
{
this
.
setState
({
...
...
@@ -155,6 +161,7 @@ export default class CreateReportItems extends Component {
errorEndDate
:
false
,
errorTipeData
:
false
,
errorCondition
:
false
,
errorCovertible
:
false
,
msgErrorTipeData
:
''
,
msgErrorCondition
:
''
,
msgErrorOrder
:
''
,
...
...
@@ -163,6 +170,7 @@ export default class CreateReportItems extends Component {
msgErrorRV
:
''
,
msgErrorSD
:
''
,
msgErrorED
:
''
,
msgErrorCovertible
:
''
,
})
}
}
...
...
@@ -197,6 +205,9 @@ export default class CreateReportItems extends Component {
else
if
(
R
.
isNil
(
this
.
state
.
endDate
))
{
this
.
setState
({
errorEndDate
:
true
,
msgErrorED
:
'Valid To Cannot be Empty'
})
}
else
if
(
R
.
isNil
(
this
.
state
.
convertible
)){
this
.
setState
({
errorCovertible
:
true
,
msgErrorCovertible
:
'Convetible Cannot be Empty'
})
}
else
{
this
.
addReportItems
()
}
...
...
@@ -1072,6 +1083,8 @@ export default class CreateReportItems extends Component {
label
=
"Convertible"
margin
=
"normal"
style
=
{{
marginTop
:
7
}}
error
=
{
this
.
state
.
errorCovertible
}
helperText
=
{
this
.
state
.
msgErrorCovertible
}
InputProps
=
{{
...
params
.
InputProps
,
style
:
{
fontSize
:
11
}
}}
InputLabelProps
=
{{
style
:
{
fontSize
:
11
,
color
:
'#7e8085'
}
}}
/
>
...
...
src/container/MasterData/ReportItems/EditReportItems.js
View file @
6523fe35
...
...
@@ -48,6 +48,7 @@ export default class EditReportItems extends Component {
errorEndDate
:
false
,
errorJenisLaporan
:
false
,
errorPerusahaan
:
false
,
errorCovertible
:
false
,
msgErrorJenisLaporan
:
''
,
msgErrorPerusahaan
:
''
,
msgErrorOrder
:
''
,
...
...
@@ -60,6 +61,7 @@ export default class EditReportItems extends Component {
msgErrorRV
:
''
,
msgErrorSD
:
''
,
msgErrorED
:
''
,
msgErrorCovertible
:
''
,
disabledFormula
:
true
,
disabledCondt
:
true
,
disabledValue
:
true
,
...
...
@@ -105,12 +107,14 @@ export default class EditReportItems extends Component {
errorRV
:
false
,
errorStartDate
:
false
,
errorEndDate
:
false
,
errorCovertible
:
false
,
msgErrorOrder
:
''
,
msgErrorDesc
:
''
,
msgErrorFormula
:
''
,
msgErrorRV
:
''
,
msgErrorSD
:
''
,
msgErrorED
:
''
,
msgErrorCovertible
:
''
,
})
}
else
if
(
isDate
&&
type
===
'end_date'
)
{
this
.
setState
({
...
...
@@ -121,12 +125,14 @@ export default class EditReportItems extends Component {
errorRV
:
false
,
errorStartDate
:
false
,
errorEndDate
:
false
,
errorCovertible
:
false
,
msgErrorOrder
:
''
,
msgErrorDesc
:
''
,
msgErrorFormula
:
''
,
msgErrorRV
:
''
,
msgErrorSD
:
''
,
msgErrorED
:
''
,
msgErrorCovertible
:
''
,
})
}
else
{
this
.
setState
({
...
...
@@ -137,12 +143,14 @@ export default class EditReportItems extends Component {
errorRV
:
false
,
errorStartDate
:
false
,
errorEndDate
:
false
,
errorCovertible
:
false
,
msgErrorOrder
:
''
,
msgErrorDesc
:
''
,
msgErrorFormula
:
''
,
msgErrorRV
:
''
,
msgErrorSD
:
''
,
msgErrorED
:
''
,
msgErrorCovertible
:
''
,
})
}
}
...
...
@@ -168,7 +176,9 @@ export default class EditReportItems extends Component {
}
else
if
(
R
.
isNil
(
this
.
state
.
tempData
.
start_date
))
{
this
.
setState
({
errorStartDate
:
true
,
msgErrorSD
:
'Valid From Cannot be Empty'
})
}
else
if
(
R
.
isNil
(
this
.
state
.
tempData
.
end_date
))
{
this
.
setState
({
errorEndDate
:
true
,
msgErrorED
:
'Valid To Cannot be Empty'
})
this
.
setState
({
errorEndDate
:
true
,
msgErrorED
:
'Valid To Cannot be Empty'
})
}
else
if
(
R
.
isNil
(
this
.
state
.
convertible
))
{
this
.
setState
({
errorCovertible
:
true
,
msgErrorCovertible
:
'Convetible Cannot be Empty'
})
}
else
{
this
.
updateReportItems
()
}
...
...
@@ -1045,6 +1055,8 @@ export default class EditReportItems extends Component {
{...
params
}
label
=
"Convertible"
margin
=
"normal"
error
=
{
this
.
state
.
errorCovertible
}
helperText
=
{
this
.
state
.
msgErrorCovertible
}
style
=
{{
marginTop
:
7
}}
InputProps
=
{{
...
params
.
InputProps
,
style
:
{
fontSize
:
11
}
}}
InputLabelProps
=
{{
style
:
{
fontSize
:
11
,
color
:
'#7e8085'
}
}}
...
...
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