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
c55e65d2
Commit
c55e65d2
authored
Oct 17, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ENV-DEV' into 'ENV-STAGING'
update download See merge request
!2076
parents
5bd11c52
569eab65
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
15 deletions
+17
-15
BudgetTahunan.js
src/container/BudgetTahunan/BudgetTahunan.js
+2
-1
CreateParameter.js
src/container/MasterData/Parameter/CreateParameter.js
+7
-10
MonthlyReport.js
src/container/MonthlyReport/MonthlyReport.js
+2
-1
OperatingIndicator.js
src/container/OperatingIndicator/OperatingIndicator.js
+2
-1
OutlookPA.js
src/container/OutlookPA/OutlookPA.js
+2
-1
RollingOutlook.js
src/container/RollingOutlook/RollingOutlook.js
+2
-1
No files found.
src/container/BudgetTahunan/BudgetTahunan.js
View file @
c55e65d2
...
...
@@ -2520,7 +2520,8 @@ export default class BudgetTahunan extends Component {
"report_id"
:
selectReport
,
"month"
:
""
,
"quartal"
:
""
,
"type_report_name"
:
"Master Budget"
"type_report_name"
:
"Master Budget"
,
"currency_id"
:
defaultCurrency
.
id
}
// console.log(payload);
api
.
create
().
createDownloadFile
(
payload
).
then
((
response
)
=>
{
...
...
src/container/MasterData/Parameter/CreateParameter.js
View file @
c55e65d2
...
...
@@ -867,10 +867,10 @@ export default class CreateParameter extends Component {
}
else
if
(
this
.
state
.
getTypes
.
setting_group_name
==
"THRESHOLD_VARIANCE"
||
this
.
state
.
getTypes
.
setting_group_name
==
"THRESHOLD_CONTROL"
)
{
if
(
R
.
isEmpty
(
data
.
minValue
))
{
}
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
))
{
}
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
.
updateParameter
()
}
}
...
...
@@ -1104,10 +1104,10 @@ export default class CreateParameter extends Component {
})
break
case
"THRESHOLD_CONTROL"
:
this
.
setState
({
errorMinValue
:
true
,
msgErrorMinValue
:
'Incorrect min value format, example : 99999999'
})
this
.
setState
({
errorMinValue
:
true
,
msgErrorMinValue
:
'Incorrect min value format, example :
-
99999999'
})
break
case
"THRESHOLD_VARIANCE"
:
this
.
setState
({
errorMinValue
:
true
,
msgErrorMinValue
:
'Incorrect min value format, example : 99999999'
})
this
.
setState
({
errorMinValue
:
true
,
msgErrorMinValue
:
'Incorrect min value format, example :
-
99999999'
})
break
default
:
this
.
setState
({
errorMinValue
:
false
,
msgErrorMinValue
:
''
})
...
...
@@ -1191,7 +1191,7 @@ export default class CreateParameter extends Component {
}
break
case
"THRESHOLD_CONTROL"
:
obj
=
{
minMaxRegex
:
(
/
-
?\d
+
(\.?
\d
+
)?
$/
),
minLength
:
this
.
state
.
minValue
.
length
,
maxLength
:
this
.
state
.
maxValue
.
length
}
obj
=
{
minMaxRegex
:
(
/
^-
?\d
+
(\.
\d
+
)?
$/
),
minLength
:
this
.
state
.
minValue
.
length
,
maxLength
:
this
.
state
.
maxValue
.
length
}
break
default
:
obj
=
{
regexValue
:
null
,
minLength
:
11
,
maxLength
:
11
}
...
...
@@ -1211,9 +1211,6 @@ export default class CreateParameter extends Component {
}
validasiCurrencyTC
(){
console
.
log
(
this
.
state
.
getThresholdCurrency
)
console
.
log
(
this
.
state
.
errorThresholdCurrency
)
console
.
log
(
this
.
state
.
msgErrorThresholdCurrency
)
if
(
R
.
isNil
(
this
.
state
.
getThresholdCurrency
)){
this
.
setState
({
errorThresholdCurrency
:
true
,
msgErrorThresholdCurrency
:
'Currency Cannot be Empty'
})
}
...
...
@@ -1234,7 +1231,7 @@ export default class CreateParameter extends Component {
this
.
validasiCurrencyTC
()
}
}
else
{
if
(
data
.
maxValue
.
match
(
minMaxValidasi
.
minMaxRegex
)
&&
(
this
.
state
.
getTypes
.
setting_group_name
!=
"THRESHOLD_CONTROL"
?
data
.
maxValue
.
substring
(
0
,
1
)
!=
"0"
:
true
)
&&
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
.
validasiCurrencyTC
()
}
else
{
this
.
validasiMaxResponse
()
...
...
@@ -1268,7 +1265,7 @@ export default class CreateParameter extends Component {
this
.
validasiFormatData
()
}
}
else
{
if
(
data
.
minValue
.
match
(
minMaxValidasi
.
minMaxRegex
)
&&
(
this
.
state
.
getTypes
.
setting_group_name
!=
"THRESHOLD_CONTROL"
?
data
.
minValue
.
substring
(
0
,
1
)
!=
"0"
:
true
)
&&
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
)
){
this
.
validasiFormatData
()
}
else
{
this
.
validasiMinResponse
()
...
...
src/container/MonthlyReport/MonthlyReport.js
View file @
c55e65d2
...
...
@@ -2311,7 +2311,8 @@ export default class MonthlyReport extends Component {
"report_id"
:
selectReport
,
"month"
:
month
?
String
(
month
.
month_id
).
toString
()
:
""
,
"quartal"
:
""
,
"type_report_name"
:
"Monthly Report"
"type_report_name"
:
"Monthly Report"
,
"currency_id"
:
defaultCurrency
.
id
}
console
.
log
(
payload
);
api
.
create
().
createDownloadFile
(
payload
).
then
((
response
)
=>
{
...
...
src/container/OperatingIndicator/OperatingIndicator.js
View file @
c55e65d2
...
...
@@ -658,7 +658,8 @@ export default class OperatingIndicator extends Component {
"report_id"
:
selectReport
,
"month"
:
""
,
"quartal"
:
""
,
"type_report_name"
:
"Operating Indicator"
"type_report_name"
:
"Operating Indicator"
,
"currency_id"
:
defaultCurrency
.
id
}
console
.
log
(
payload
);
api
.
create
().
createDownloadFile
(
payload
).
then
((
response
)
=>
{
...
...
src/container/OutlookPA/OutlookPA.js
View file @
c55e65d2
...
...
@@ -1545,7 +1545,8 @@ export default class OutlookPA extends Component {
"report_id"
:
selectReport
,
"month"
:
""
,
"quartal"
:
""
,
"type_report_name"
:
"Outlook PA"
"type_report_name"
:
"Outlook PA"
,
"currency_id"
:
defaultCurrency
.
id
}
console
.
log
(
payload
);
api
.
create
().
createDownloadFile
(
payload
).
then
((
response
)
=>
{
...
...
src/container/RollingOutlook/RollingOutlook.js
View file @
c55e65d2
...
...
@@ -1560,7 +1560,8 @@ export default class RollingOutlook extends Component {
"report_id"
:
selectReport
,
"month"
:
""
,
"quartal"
:
quarter
?
quarter
.
value
:
""
,
"type_report_name"
:
"Rolling Outlook"
"type_report_name"
:
"Rolling Outlook"
,
"currency_id"
:
defaultCurrency
.
id
}
console
.
log
(
payload
);
api
.
create
().
createDownloadFile
(
payload
).
then
((
response
)
=>
{
...
...
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