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
c5f77f47
Commit
c5f77f47
authored
Dec 13, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ENV-PROD' of
http://103.44.149.204/d.arizona/tia-dev
into ENV-PROD
parents
9ead75a6
a8e08a8f
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
139 additions
and
117 deletions
+139
-117
BalanceSheet.js
src/container/BudgetTahunan/BalanceSheet.js
+28
-14
BudgetTahunan.js
src/container/BudgetTahunan/BudgetTahunan.js
+2
-1
CorporateAnnualTarget.js
src/container/BudgetTahunan/CorporateAnnualTarget.js
+2
-2
MaintenanceMode.js
src/container/GeneralSetting/MaintenanceMode.js
+29
-23
BalanceSheetOLPA.js
src/container/OutlookPA/BalanceSheetOLPA.js
+15
-14
CashFlowOLPA.js
src/container/OutlookPA/CashFlowOLPA.js
+61
-63
SubHolding.js
src/container/Reports/SubHolding.js
+2
-0
No files found.
src/container/BudgetTahunan/BalanceSheet.js
View file @
c5f77f47
...
@@ -1362,7 +1362,8 @@ export default class BalanceSheet extends Component {
...
@@ -1362,7 +1362,8 @@ export default class BalanceSheet extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
7
?
tableMeta
.
rowData
[
0
]
===
7
?
(
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
>=
Number
(
this
.
state
.
minValue
)
&&
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
<=
Number
(
this
.
state
.
maxValue
))
?
(
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
>=
Number
(
this
.
state
.
minValue
)
&&
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
<=
Number
(
this
.
state
.
maxValue
))
?
// (fixNumber(Number(handleValidation(value, tableMeta)), 12) >= Number(this.state.minValue) && fixNumber(Number(handleValidation(value, tableMeta)), 12) <= Number(this.state.maxValue)) ?
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
style
=
{{
...
@@ -1550,7 +1551,8 @@ export default class BalanceSheet extends Component {
...
@@ -1550,7 +1551,8 @@ export default class BalanceSheet extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
7
?
tableMeta
.
rowData
[
0
]
===
7
?
(
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
>=
Number
(
this
.
state
.
minValue
)
&&
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
<=
Number
(
this
.
state
.
maxValue
))
?
(
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
>=
Number
(
this
.
state
.
minValue
)
&&
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
<=
Number
(
this
.
state
.
maxValue
))
?
// (fixNumber(Number(handleValidation(value, tableMeta)), 12) >= Number(this.state.minValue) && fixNumber(Number(handleValidation(value, tableMeta)), 12) <= Number(this.state.maxValue)) ?
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
style
=
{{
...
@@ -1737,7 +1739,8 @@ export default class BalanceSheet extends Component {
...
@@ -1737,7 +1739,8 @@ export default class BalanceSheet extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
7
?
tableMeta
.
rowData
[
0
]
===
7
?
(
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
>=
Number
(
this
.
state
.
minValue
)
&&
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
<=
Number
(
this
.
state
.
maxValue
))
?
(
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
>=
Number
(
this
.
state
.
minValue
)
&&
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
<=
Number
(
this
.
state
.
maxValue
))
?
// (fixNumber(Number(handleValidation(value, tableMeta)), 12) >= Number(this.state.minValue) && fixNumber(Number(handleValidation(value, tableMeta)), 12) <= Number(this.state.maxValue)) ?
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
style
=
{{
...
@@ -1924,7 +1927,8 @@ export default class BalanceSheet extends Component {
...
@@ -1924,7 +1927,8 @@ export default class BalanceSheet extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
7
?
tableMeta
.
rowData
[
0
]
===
7
?
(
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
>=
Number
(
this
.
state
.
minValue
)
&&
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
<=
Number
(
this
.
state
.
maxValue
))
?
(
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
>=
Number
(
this
.
state
.
minValue
)
&&
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
<=
Number
(
this
.
state
.
maxValue
))
?
// (fixNumber(Number(handleValidation(value, tableMeta)), 12) >= Number(this.state.minValue) && fixNumber(Number(handleValidation(value, tableMeta)), 12) <= Number(this.state.maxValue)) ?
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
style
=
{{
...
@@ -2111,7 +2115,8 @@ export default class BalanceSheet extends Component {
...
@@ -2111,7 +2115,8 @@ export default class BalanceSheet extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
7
?
tableMeta
.
rowData
[
0
]
===
7
?
(
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
>=
Number
(
this
.
state
.
minValue
)
&&
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
<=
Number
(
this
.
state
.
maxValue
))
?
(
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
>=
Number
(
this
.
state
.
minValue
)
&&
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
<=
Number
(
this
.
state
.
maxValue
))
?
// (fixNumber(Number(handleValidation(value, tableMeta)), 12) >= Number(this.state.minValue) && fixNumber(Number(handleValidation(value, tableMeta)), 12) <= Number(this.state.maxValue)) ?
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
style
=
{{
...
@@ -2298,7 +2303,8 @@ export default class BalanceSheet extends Component {
...
@@ -2298,7 +2303,8 @@ export default class BalanceSheet extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
7
?
tableMeta
.
rowData
[
0
]
===
7
?
(
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
>=
Number
(
this
.
state
.
minValue
)
&&
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
<=
Number
(
this
.
state
.
maxValue
))
?
(
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
>=
Number
(
this
.
state
.
minValue
)
&&
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
<=
Number
(
this
.
state
.
maxValue
))
?
// (fixNumber(Number(handleValidation(value, tableMeta)), 12) >= Number(this.state.minValue) && fixNumber(Number(handleValidation(value, tableMeta)), 12) <= Number(this.state.maxValue)) ?
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
style
=
{{
...
@@ -2485,7 +2491,8 @@ export default class BalanceSheet extends Component {
...
@@ -2485,7 +2491,8 @@ export default class BalanceSheet extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
7
?
tableMeta
.
rowData
[
0
]
===
7
?
(
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
>=
Number
(
this
.
state
.
minValue
)
&&
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
<=
Number
(
this
.
state
.
maxValue
))
?
(
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
>=
Number
(
this
.
state
.
minValue
)
&&
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
<=
Number
(
this
.
state
.
maxValue
))
?
// (fixNumber(Number(handleValidation(value, tableMeta)), 12) >= Number(this.state.minValue) && fixNumber(Number(handleValidation(value, tableMeta)), 12) <= Number(this.state.maxValue)) ?
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
style
=
{{
...
@@ -2672,7 +2679,8 @@ export default class BalanceSheet extends Component {
...
@@ -2672,7 +2679,8 @@ export default class BalanceSheet extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
7
?
tableMeta
.
rowData
[
0
]
===
7
?
(
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
>=
Number
(
this
.
state
.
minValue
)
&&
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
<=
Number
(
this
.
state
.
maxValue
))
?
(
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
>=
Number
(
this
.
state
.
minValue
)
&&
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
<=
Number
(
this
.
state
.
maxValue
))
?
// (fixNumber(Number(handleValidation(value, tableMeta)), 12) >= Number(this.state.minValue) && fixNumber(Number(handleValidation(value, tableMeta)), 12) <= Number(this.state.maxValue)) ?
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
style
=
{{
...
@@ -2859,7 +2867,8 @@ export default class BalanceSheet extends Component {
...
@@ -2859,7 +2867,8 @@ export default class BalanceSheet extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
7
?
tableMeta
.
rowData
[
0
]
===
7
?
(
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
>=
Number
(
this
.
state
.
minValue
)
&&
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
<=
Number
(
this
.
state
.
maxValue
))
?
(
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
>=
Number
(
this
.
state
.
minValue
)
&&
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
<=
Number
(
this
.
state
.
maxValue
))
?
// (fixNumber(Number(handleValidation(value, tableMeta)), 12) >= Number(this.state.minValue) && fixNumber(Number(handleValidation(value, tableMeta)), 12) <= Number(this.state.maxValue)) ?
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
style
=
{{
...
@@ -3046,7 +3055,8 @@ export default class BalanceSheet extends Component {
...
@@ -3046,7 +3055,8 @@ export default class BalanceSheet extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
7
?
tableMeta
.
rowData
[
0
]
===
7
?
(
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
>=
Number
(
this
.
state
.
minValue
)
&&
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
<=
Number
(
this
.
state
.
maxValue
))
?
(
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
>=
Number
(
this
.
state
.
minValue
)
&&
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
<=
Number
(
this
.
state
.
maxValue
))
?
// (fixNumber(Number(handleValidation(value, tableMeta)), 12) >= Number(this.state.minValue) && fixNumber(Number(handleValidation(value, tableMeta)), 12) <= Number(this.state.maxValue)) ?
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
style
=
{{
...
@@ -3233,7 +3243,8 @@ export default class BalanceSheet extends Component {
...
@@ -3233,7 +3243,8 @@ export default class BalanceSheet extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
7
?
tableMeta
.
rowData
[
0
]
===
7
?
(
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
>=
Number
(
this
.
state
.
minValue
)
&&
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
<=
Number
(
this
.
state
.
maxValue
))
?
(
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
>=
Number
(
this
.
state
.
minValue
)
&&
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
<=
Number
(
this
.
state
.
maxValue
))
?
// (fixNumber(Number(handleValidation(value, tableMeta)), 12) >= Number(this.state.minValue) && fixNumber(Number(handleValidation(value, tableMeta)), 12) <= Number(this.state.maxValue)) ?
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
style
=
{{
...
@@ -3420,7 +3431,8 @@ export default class BalanceSheet extends Component {
...
@@ -3420,7 +3431,8 @@ export default class BalanceSheet extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
7
?
tableMeta
.
rowData
[
0
]
===
7
?
(
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
>=
Number
(
this
.
state
.
minValue
)
&&
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
<=
Number
(
this
.
state
.
maxValue
))
?
(
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
>=
Number
(
this
.
state
.
minValue
)
&&
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
<=
Number
(
this
.
state
.
maxValue
))
?
// (fixNumber(Number(handleValidation(value, tableMeta)), 12) >= Number(this.state.minValue) && fixNumber(Number(handleValidation(value, tableMeta)), 12) <= Number(this.state.maxValue)) ?
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
style
=
{{
...
@@ -3607,7 +3619,8 @@ export default class BalanceSheet extends Component {
...
@@ -3607,7 +3619,8 @@ export default class BalanceSheet extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
7
?
tableMeta
.
rowData
[
0
]
===
7
?
(
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
>=
Number
(
this
.
state
.
minValue
)
&&
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
<=
Number
(
this
.
state
.
maxValue
))
?
(
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
>=
Number
(
this
.
state
.
minValue
)
&&
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
<=
Number
(
this
.
state
.
maxValue
))
?
// (fixNumber(Number(handleValidation(value, tableMeta)), 12) >= Number(this.state.minValue) && fixNumber(Number(handleValidation(value, tableMeta)), 12) <= Number(this.state.maxValue)) ?
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
style
=
{{
...
@@ -3794,7 +3807,8 @@ export default class BalanceSheet extends Component {
...
@@ -3794,7 +3807,8 @@ export default class BalanceSheet extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
7
?
tableMeta
.
rowData
[
0
]
===
7
?
(
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
>=
Number
(
this
.
state
.
minValue
)
&&
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
<=
Number
(
this
.
state
.
maxValue
))
?
(
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
>=
Number
(
this
.
state
.
minValue
)
&&
this
.
props
.
defaultCurrency
.
id
===
1
?
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
1
)
:
fixNumber
(
Number
(
handleValidation
(
value
,
tableMeta
)),
12
)
<=
Number
(
this
.
state
.
maxValue
))
?
// (fixNumber(Number(handleValidation(value, tableMeta)), 12) >= Number(this.state.minValue) && fixNumber(Number(handleValidation(value, tableMeta)), 12) <= Number(this.state.maxValue)) ?
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
style
=
{{
...
...
src/container/BudgetTahunan/BudgetTahunan.js
View file @
c5f77f47
...
@@ -552,6 +552,7 @@ export default class BudgetTahunan extends Component {
...
@@ -552,6 +552,7 @@ export default class BudgetTahunan extends Component {
options
:
periodeData
,
options
:
periodeData
,
getOptionLabel
:
(
option
)
=>
option
.
periode
,
getOptionLabel
:
(
option
)
=>
option
.
periode
,
};
};
// ubah code dibawah ini jika mau mengubah default periode jadi tahun saat ini
let
periode
=
(
this
.
state
.
lastPeriod
==
""
?
String
(
Number
(
currentYear
))
:
this
.
state
.
lastPeriod
)
let
periode
=
(
this
.
state
.
lastPeriod
==
""
?
String
(
Number
(
currentYear
))
:
this
.
state
.
lastPeriod
)
let
index
=
data
.
sort
((
a
,
b
)
=>
a
-
b
).
findIndex
((
val
)
=>
val
===
periode
)
let
index
=
data
.
sort
((
a
,
b
)
=>
a
-
b
).
findIndex
((
val
)
=>
val
===
periode
)
// // console.log(this.props.location.state.rawData)
// // console.log(this.props.location.state.rawData)
...
@@ -3055,7 +3056,7 @@ export default class BudgetTahunan extends Component {
...
@@ -3055,7 +3056,7 @@ export default class BudgetTahunan extends Component {
disabled
=
{
this
.
state
.
listCompany
===
null
?
true
:
this
.
state
.
intent
===
'Home'
?
true
:
false
}
disabled
=
{
this
.
state
.
listCompany
===
null
?
true
:
this
.
state
.
intent
===
'Home'
?
true
:
false
}
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
company
:
newInputValue
},
()
=>
{
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
company
:
newInputValue
},
()
=>
{
this
.
setState
({
visibleTableHistory
:
false
})
this
.
setState
({
visibleTableHistory
:
false
})
//
this.getLastPeriod()
this
.
getLastPeriod
()
this
.
getCurrency
(
newInputValue
.
company_id
)
this
.
getCurrency
(
newInputValue
.
company_id
)
this
.
getRevision
()
this
.
getRevision
()
})}
})}
...
...
src/container/BudgetTahunan/CorporateAnnualTarget.js
View file @
c5f77f47
...
@@ -175,7 +175,7 @@ export default class CorporateAnnualTarget extends Component {
...
@@ -175,7 +175,7 @@ export default class CorporateAnnualTarget extends Component {
item
.
level
,
item
.
level
,
""
,
""
,
item
.
description
,
item
.
description
,
item
.
type_report_id
==
1
?
`
${
Number
(
item
.
weight
)
*
100
}
%`
:
(
String
(
item
.
cat
.
weight
).
includes
(
'%'
)
?
(
String
(
Number
(
String
(
item
.
cat
.
weight
).
substr
(
0
,
String
(
item
.
cat
.
weight
).
length
-
1
)))
+
'%'
)
:
((
String
(
Number
(
item
.
cat
.
weight
))
+
'%'
)
+
'%'
)),
item
.
type_report_id
==
1
?
`
${
fixNumber
(
Number
(
item
.
weight
)
*
100
)
}
%`
:
(
String
(
item
.
cat
.
weight
).
includes
(
'%'
)
?
(
String
(
Number
(
String
(
item
.
cat
.
weight
).
substr
(
0
,
String
(
item
.
cat
.
weight
).
length
-
1
)))
+
'%'
)
:
((
String
(
Number
(
item
.
cat
.
weight
))
+
'%'
)
+
'%'
)),
parentTrue
?
item
.
cat
.
uom
:
item
.
uom
,
parentTrue
?
item
.
cat
.
uom
:
item
.
uom
,
parentTrue
?
item
.
cat
.
kpi_type
==
""
?
null
:
{
value
:
item
.
cat
.
kpi_type
}
:
item
.
kpi_type
==
""
?
null
:
{
value
:
item
.
kpi_type
},
parentTrue
?
item
.
cat
.
kpi_type
==
""
?
null
:
{
value
:
item
.
cat
.
kpi_type
}
:
item
.
kpi_type
==
""
?
null
:
{
value
:
item
.
kpi_type
},
parentTrue
?
item
.
cat
.
max_ach
==
""
?
null
:
{
value
:
titleCase
(
item
.
cat
.
max_ach
)
}
:
item
.
max_ach
==
""
?
null
:
{
value
:
titleCase
(
item
.
max_ach
)
},
parentTrue
?
item
.
cat
.
max_ach
==
""
?
null
:
{
value
:
titleCase
(
item
.
cat
.
max_ach
)
}
:
item
.
max_ach
==
""
?
null
:
{
value
:
titleCase
(
item
.
max_ach
)
},
...
@@ -219,7 +219,7 @@ export default class CorporateAnnualTarget extends Component {
...
@@ -219,7 +219,7 @@ export default class CorporateAnnualTarget extends Component {
item
.
level
,
item
.
level
,
""
,
""
,
item
.
description
,
item
.
description
,
item
.
type_report_id
==
1
?
(
`
${
String
(
item
.
weight
).
includes
(
'%'
)
?
String
(
item
.
weight
)
:
String
(
(
Number
(
item
.
weight
)
*
100
)
+
'% '
)}
`
)
:
(
String
(
Number
(
String
(
item
.
cat
.
weight
).
substr
(
0
,
String
(
item
.
cat
.
weight
).
length
-
1
)))
+
'%'
),
item
.
type_report_id
==
1
?
(
`
${
String
(
item
.
weight
).
includes
(
'%'
)
?
String
(
item
.
weight
)
:
String
(
fixNumber
((
Number
(
item
.
weight
)
*
100
)
)
+
'% '
)}
`
)
:
(
String
(
Number
(
String
(
item
.
cat
.
weight
).
substr
(
0
,
String
(
item
.
cat
.
weight
).
length
-
1
)))
+
'%'
),
item
.
cat
.
uom
,
item
.
cat
.
uom
,
item
.
kpi_type
==
""
?
null
:
{
value
:
item
.
kpi_type
},
item
.
kpi_type
==
""
?
null
:
{
value
:
item
.
kpi_type
},
item
.
max_ach
==
""
?
null
:
{
value
:
titleCase
(
item
.
max_ach
)
},
item
.
max_ach
==
""
?
null
:
{
value
:
titleCase
(
item
.
max_ach
)
},
...
...
src/container/GeneralSetting/MaintenanceMode.js
View file @
c5f77f47
...
@@ -166,6 +166,9 @@ class MaintenanceMode extends Component {
...
@@ -166,6 +166,9 @@ class MaintenanceMode extends Component {
}
}
handleCreate
()
{
handleCreate
()
{
let
bodyInactive
=
'<p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)">Hi,</span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)">We’re happy to let you know that TIA 4.0 is back online!</span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)">We appreciate your patience and kind understanding.</span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)">Thank you!</span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"> </span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)">Regards,</span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"> </span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"><strong><span style="font-size: 13px"><span style="color: rgb(0, 32, 96)">Triputra Group</span></span></strong></span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"><strong> </strong></span></span></p><div class="se-component se-image-container __se__float-" contenteditable="false"><figure style="margin: 0px; width: 288px;"><img alt="" src="https://ci3.googleusercontent.com/proxy/pZlDMYsSIvwgrUzQ7hPn1nrk26YNIJbCPH_G8X56UqyPfO3tJ2BX1RFFZ7tTlXkJa7ccfzn7CVm6zWmbgFyhVkvTBjAAHzaAo3sllX9kkd9aQnnk=s0-d-e1-ft#https://www.triputra-group.com/mt-content/uploads/images/logo.png" data-origin="288,64" data-proportion="true" data-size="288px,64px" data-align="" data-file-name="logo.png" data-file-size="0" origin-size="288,64" style="width: 288px; height: 64px;" data-index="0"></figure></div><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"> </span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"><strong>Menara Kadin Indonesia, 23<sup>rd</sup> Floor</strong></span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"><strong>Jl. HR Rasuna Said Blok X-5, Kav 2-3, Kuningan, Jakarta Selatan 12950</strong></span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"><strong>Ph <a href="callto:+62%2021%205274323" target="_blank">+62 21 5274323</a>; <a href="http://www.triputra-group.com/" target="_blank" class="on">www.triputra-group.com</a></strong></span></span></p>'
let
bodyActive
=
'<p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)">Hi,</span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"><span style="font-size: 29px">TIA 4.0 is down for maintenance!</span></span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)">Thank you for your patience, we expect to be back shortly.</span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"> </span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)">We apologize for any inconvenience.</span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)">For more information, please contact our email: <span style="color: rgb(0, 90, 149)"><a href="mailto:tia4.0@triputra-group.com" target="_blank">tia4.0@triputra-group.com</a></span>.</span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"> </span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)">Regards,</span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"> </span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"><strong><span style="font-size: 13px"><span style="color: rgb(0, 32, 96)">Triputra Group</span></span></strong></span></span></p><div class="se-component se-image-container __se__float-" contenteditable="false"><figure style="margin: 0px; width: 288px;"><img alt="" src="https://www.triputra-group.com/mt-content/uploads/images/logo.png" data-origin="288,64" data-proportion="true" data-size="288px,64px" data-align="" data-file-name="logo.png" data-file-size="0" origin-size="288,64" style="width: 288px; height: 64px;" data-index="0"></figure></div><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"> </span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"><strong>Menara Kadin Indonesia, 23<sup>rd</sup> Floor</strong></span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"><strong>Jl. HR Rasuna Said Blok X-5, Kav 2-3, Kuningan, Jakarta Selatan 12950</strong></span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"><strong>Ph <a href="callto:+62 21 5274323">+62 21 5274323</a>; <a href="http://www.triputra-group.com/" target="_blank">www.triputra-group.com</a></strong></span></span></p>'
let
payload
=
{
let
payload
=
{
"maintenance_headline"
:
this
.
state
.
headline
,
"maintenance_headline"
:
this
.
state
.
headline
,
"maintenance_content"
:
this
.
state
.
maintenanceContent
,
"maintenance_content"
:
this
.
state
.
maintenanceContent
,
...
@@ -174,13 +177,13 @@ class MaintenanceMode extends Component {
...
@@ -174,13 +177,13 @@ class MaintenanceMode extends Component {
{
{
"mail_type"
:
"MAINTENANCE_MODE_ACTIVE"
,
"mail_type"
:
"MAINTENANCE_MODE_ACTIVE"
,
"mail_subject"
:
"TIA 4.0 Is Under Maintenance"
,
"mail_subject"
:
"TIA 4.0 Is Under Maintenance"
,
"mail_body"
:
""
,
"mail_body"
:
bodyActive
,
"mail_status"
:
0
"mail_status"
:
0
},
},
{
{
"mail_type"
:
"MAINTENANCE_MODE_INACTIVE"
,
"mail_type"
:
"MAINTENANCE_MODE_INACTIVE"
,
"mail_subject"
:
"TIA 4.0 is Back"
,
"mail_subject"
:
"TIA 4.0 is Back"
,
"mail_body"
:
""
,
"mail_body"
:
bodyInactive
,
"mail_status"
:
1
"mail_status"
:
1
}
}
]
]
...
@@ -230,39 +233,42 @@ class MaintenanceMode extends Component {
...
@@ -230,39 +233,42 @@ class MaintenanceMode extends Component {
}
}
handleEdit
()
{
handleEdit
()
{
let
bodyInactive
=
'<p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)">Hi,</span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)">We’re happy to let you know that TIA 4.0 is back online!</span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)">We appreciate your patience and kind understanding.</span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)">Thank you!</span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"> </span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)">Regards,</span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"> </span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"><strong><span style="font-size: 13px"><span style="color: rgb(0, 32, 96)">Triputra Group</span></span></strong></span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"><strong> </strong></span></span></p><div class="se-component se-image-container __se__float-" contenteditable="false"><figure style="margin: 0px; width: 288px;"><img alt="" src="https://ci3.googleusercontent.com/proxy/pZlDMYsSIvwgrUzQ7hPn1nrk26YNIJbCPH_G8X56UqyPfO3tJ2BX1RFFZ7tTlXkJa7ccfzn7CVm6zWmbgFyhVkvTBjAAHzaAo3sllX9kkd9aQnnk=s0-d-e1-ft#https://www.triputra-group.com/mt-content/uploads/images/logo.png" data-origin="288,64" data-proportion="true" data-size="288px,64px" data-align="" data-file-name="logo.png" data-file-size="0" origin-size="288,64" style="width: 288px; height: 64px;" data-index="0"></figure></div><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"> </span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"><strong>Menara Kadin Indonesia, 23<sup>rd</sup> Floor</strong></span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"><strong>Jl. HR Rasuna Said Blok X-5, Kav 2-3, Kuningan, Jakarta Selatan 12950</strong></span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"><strong>Ph <a href="callto:+62%2021%205274323" target="_blank">+62 21 5274323</a>; <a href="http://www.triputra-group.com/" target="_blank" class="on">www.triputra-group.com</a></strong></span></span></p>'
let
bodyActive
=
'<p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)">Hi,</span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"><span style="font-size: 29px">TIA 4.0 is down for maintenance!</span></span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)">Thank you for your patience, we expect to be back shortly.</span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"> </span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)">We apologize for any inconvenience.</span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)">For more information, please contact our email: <span style="color: rgb(0, 90, 149)"><a href="mailto:tia4.0@triputra-group.com" target="_blank">tia4.0@triputra-group.com</a></span>.</span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"> </span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)">Regards,</span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"> </span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"><strong><span style="font-size: 13px"><span style="color: rgb(0, 32, 96)">Triputra Group</span></span></strong></span></span></p><div class="se-component se-image-container __se__float-" contenteditable="false"><figure style="margin: 0px; width: 288px;"><img alt="" src="https://www.triputra-group.com/mt-content/uploads/images/logo.png" data-origin="288,64" data-proportion="true" data-size="288px,64px" data-align="" data-file-name="logo.png" data-file-size="0" origin-size="288,64" style="width: 288px; height: 64px;" data-index="0"></figure></div><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"> </span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"><strong>Menara Kadin Indonesia, 23<sup>rd</sup> Floor</strong></span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"><strong>Jl. HR Rasuna Said Blok X-5, Kav 2-3, Kuningan, Jakarta Selatan 12950</strong></span></span></p><p><span style="font-size: 15px"><span style="color: rgb(0, 0, 0)"><strong>Ph <a href="callto:+62 21 5274323">+62 21 5274323</a>; <a href="http://www.triputra-group.com/" target="_blank">www.triputra-group.com</a></strong></span></span></p>'
let
payload
=
{
let
payload
=
{
"maintenance_id"
:
this
.
state
.
maintenanceID
,
"maintenance_id"
:
this
.
state
.
maintenanceID
,
"maintenance_headline"
:
this
.
state
.
headline
,
"maintenance_headline"
:
this
.
state
.
headline
,
"maintenance_content"
:
this
.
state
.
maintenanceContent
,
"maintenance_content"
:
this
.
state
.
maintenanceContent
,
"maintenance_status"
:
this
.
state
.
maintenanceStatus
,
"maintenance_status"
:
this
.
state
.
maintenanceStatus
,
// "maintenance_mail": [
// {
// "mail_type": "MAINTENANCE_MODE_ACTIVE",
// "mail_subject": "TIA 4.0 Is Under Maintenance",
// "mail_body": "",
// "mail_status": 0
// },
// {
// "mail_type": "MAINTENANCE_MODE_INACTIVE",
// "mail_subject": "TIA 4.0 is Back",
// "mail_body": "",
// "mail_status": 1
// }
// ]
"maintenance_mail"
:
[
"maintenance_mail"
:
[
{
{
"mail_type"
:
"MAINTENANCE_MODE_ACTIVE"
,
"mail_type"
:
"MAINTENANCE_MODE_ACTIVE"
,
"mail_subject"
:
this
.
state
.
subjectMailActive
,
"mail_subject"
:
"TIA 4.0 Is Under Maintenance"
,
"mail_body"
:
this
.
state
.
mailcontentMode
Active
,
"mail_body"
:
body
Active
,
"mail_status"
:
this
.
state
.
mailStatusActive
"mail_status"
:
0
},
},
{
{
"mail_type"
:
"MAINTENANCE_MODE_INACTIVE"
,
"mail_type"
:
"MAINTENANCE_MODE_INACTIVE"
,
"mail_subject"
:
this
.
state
.
subjectMailNonActive
,
"mail_subject"
:
"TIA 4.0 is Back"
,
"mail_body"
:
this
.
state
.
mailcontentModeNonA
ctive
,
"mail_body"
:
bodyIna
ctive
,
"mail_status"
:
this
.
state
.
mailStatusNonActive
"mail_status"
:
1
}
}
]
]
// "maintenance_mail": [
// {
// "mail_type": "MAINTENANCE_MODE_ACTIVE",
// "mail_subject": this.state.subjectMailActive,
// "mail_body": this.state.mailcontentModeActive,
// "mail_status": this.state.mailStatusActive
// },
// {
// "mail_type": "MAINTENANCE_MODE_INACTIVE",
// "mail_subject": this.state.subjectMailNonActive,
// "mail_body": this.state.mailcontentModeNonActive,
// "mail_status": this.state.mailStatusNonActive
// }
// ]
}
}
console
.
log
(
payload
);
console
.
log
(
payload
);
api
.
create
().
updateMaintenanceMode
(
payload
).
then
((
response
)
=>
{
api
.
create
().
updateMaintenanceMode
(
payload
).
then
((
response
)
=>
{
...
...
src/container/OutlookPA/BalanceSheetOLPA.js
View file @
c5f77f47
...
@@ -483,7 +483,7 @@ export default class BalanceSheetOLPA extends Component {
...
@@ -483,7 +483,7 @@ export default class BalanceSheetOLPA extends Component {
this
.
setState
({
buttonError
:
true
,
errorPreview
:
true
,
editable
:
true
})
this
.
setState
({
buttonError
:
true
,
errorPreview
:
true
,
editable
:
true
})
}
}
})
})
console
.
log
(
this
.
state
.
dataTable
);
//
console.log(this.state.dataTable);
})
})
}
else
{
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
...
@@ -552,6 +552,7 @@ export default class BalanceSheetOLPA extends Component {
...
@@ -552,6 +552,7 @@ export default class BalanceSheetOLPA extends Component {
balance_sheet
:
data
,
balance_sheet
:
data
,
status
:
type
status
:
type
}
}
console
.
log
(
body
);
// console.log(JSON.stringify(body));
// console.log(JSON.stringify(body));
api
.
create
(
'UPLOAD'
).
uploadOLPA
(
body
).
then
(
response
=>
{
api
.
create
(
'UPLOAD'
).
uploadOLPA
(
body
).
then
(
response
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
...
@@ -628,13 +629,13 @@ export default class BalanceSheetOLPA extends Component {
...
@@ -628,13 +629,13 @@ export default class BalanceSheetOLPA extends Component {
// console.log(Number(i[18].value).toFixed(1))
// console.log(Number(i[18].value).toFixed(1))
// console.log(Number(i[19]).toFixed(1))
// console.log(Number(i[19]).toFixed(1))
if
(
(
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
i
[
17
].
value
),
1
)
:
Number
(
i
[
17
].
value
)
<
Number
(
this
.
state
.
minValue
))
||
(
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
i
[
17
].
value
),
1
)
:
Number
(
i
[
17
].
value
)
>
Number
(
this
.
state
.
maxValue
)))
{
if
(
this
.
props
.
defaultCurrency
.
id
==
1
?
(
fixNumber
(
Number
(
i
[
17
].
value
),
1
)
<
Number
(
this
.
state
.
minValue
))
:
(
Number
(
i
[
17
].
value
)
<
Number
(
this
.
state
.
minValue
))
||
this
.
props
.
defaultCurrency
.
id
==
1
?
(
fixNumber
(
Number
(
i
[
17
].
value
),
1
)
>
Number
(
this
.
state
.
maxValue
))
:
(
Number
(
i
[
17
].
value
)
>
Number
(
this
.
state
.
maxValue
)))
{
console
.
log
(
"masuk selisih control 1"
)
console
.
log
(
"masuk selisih control 1"
)
err
=
true
err
=
true
}
else
if
(
(
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
i
[
18
].
value
),
1
)
:
Number
(
i
[
18
].
value
)
<
Number
(
this
.
state
.
minValue
))
||
(
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
i
[
18
].
value
),
1
)
:
Number
(
i
[
18
].
value
)
>
Number
(
this
.
state
.
maxValue
)))
{
}
else
if
(
this
.
props
.
defaultCurrency
.
id
==
1
?
(
fixNumber
(
Number
(
i
[
18
].
value
),
1
)
<
Number
(
this
.
state
.
minValue
))
:
(
Number
(
i
[
18
].
value
)
<
Number
(
this
.
state
.
minValue
))
||
this
.
props
.
defaultCurrency
.
id
==
1
?
(
fixNumber
(
Number
(
i
[
18
].
value
),
1
)
>
Number
(
this
.
state
.
maxValue
))
:
(
Number
(
i
[
18
].
value
)
>
Number
(
this
.
state
.
maxValue
)))
{
console
.
log
(
"masuk selisih control 2"
)
console
.
log
(
"masuk selisih control 2"
)
err
=
true
err
=
true
}
else
if
(
(
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
i
[
19
]),
1
)
:
Number
(
i
[
19
])
<
Number
(
this
.
state
.
minValue
))
||
(
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
i
[
19
]),
1
)
:
Number
(
i
[
19
])
>
Number
(
this
.
state
.
maxValue
)))
{
}
else
if
(
this
.
props
.
defaultCurrency
.
id
==
1
?
(
fixNumber
(
Number
(
i
[
19
]),
1
)
<
Number
(
this
.
state
.
minValue
))
:
(
Number
(
i
[
19
])
<
Number
(
this
.
state
.
minValue
))
||
this
.
props
.
defaultCurrency
.
id
==
1
?
(
fixNumber
(
Number
(
i
[
19
]),
1
)
>
Number
(
this
.
state
.
maxValue
))
:
(
Number
(
i
[
19
])
>
Number
(
this
.
state
.
maxValue
)))
{
console
.
log
(
"masuk selisih control 3"
)
console
.
log
(
"masuk selisih control 3"
)
err
=
true
err
=
true
}
}
...
@@ -658,7 +659,7 @@ export default class BalanceSheetOLPA extends Component {
...
@@ -658,7 +659,7 @@ export default class BalanceSheetOLPA extends Component {
total_current_year
:
i
[
0
]
===
3
&&
i
[
19
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
19
])),
total_current_year
:
i
[
0
]
===
3
&&
i
[
19
]
===
""
?
"0.0"
:
String
(
Number
(
i
[
19
])),
})
})
})
})
console
.
log
(
JSON
.
stringify
(
data
))
//
console.log(JSON.stringify(data))
let
payload
=
{
let
payload
=
{
"outlook_pa_id"
:
this
.
props
.
outlook_pa_id
,
"outlook_pa_id"
:
this
.
props
.
outlook_pa_id
,
"company_id"
:
this
.
props
.
company
.
company_id
,
"company_id"
:
this
.
props
.
company
.
company_id
,
...
@@ -669,26 +670,26 @@ export default class BalanceSheetOLPA extends Component {
...
@@ -669,26 +670,26 @@ export default class BalanceSheetOLPA extends Component {
"status"
:
"submitted"
"status"
:
"submitted"
}
}
api
.
create
().
validateSubmitReportOLPA
(
payload
).
then
((
response
)
=>
{
api
.
create
().
validateSubmitReportOLPA
(
payload
).
then
((
response
)
=>
{
//
console.log(response)
console
.
log
(
response
)
// console.log(response.data.data.result)
// console.log(response.data.data.result)
//
console.log(err);
console
.
log
(
err
);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
data
.
result
&&
err
===
false
)
{
if
(
response
.
data
.
data
.
result
&&
err
===
false
)
{
this
.
setState
({
loading
:
false
,
buttonError
:
false
,
editable
:
false
,
saveDraft
:
false
})
this
.
setState
({
loading
:
false
,
buttonError
:
false
,
editable
:
false
,
saveDraft
:
false
})
if
(
kansas
==
0
)
{
if
(
kansas
==
0
)
{
this
.
setState
({
kansas
:
1
,
loading
:
true
},
()
=>
{
//
this.setState({ kansas: 1, loading: true }, () => {
this
.
handleValidate
()
//
this.handleValidate()
})
//
})
}
else
{
}
else
{
this
.
setState
({
kansas
:
0
})
this
.
setState
({
kansas
:
0
})
}
}
}
else
{
}
else
{
this
.
setState
({
loading
:
false
,
buttonError
:
true
,
editable
:
true
,
saveDraft
:
true
})
this
.
setState
({
loading
:
false
,
buttonError
:
true
,
editable
:
true
,
saveDraft
:
true
})
if
(
kansas
==
0
)
{
if
(
kansas
==
0
)
{
this
.
setState
({
kansas
:
1
,
loading
:
true
},
()
=>
{
//
this.setState({ kansas: 1, loading: true }, () => {
this
.
handleValidate
()
//
this.handleValidate()
})
//
})
}
else
{
}
else
{
this
.
setState
({
kansas
:
0
})
this
.
setState
({
kansas
:
0
})
}
}
...
...
src/container/OutlookPA/CashFlowOLPA.js
View file @
c5f77f47
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/container/Reports/SubHolding.js
View file @
c5f77f47
...
@@ -4344,6 +4344,8 @@ export default class SubHolding extends Component {
...
@@ -4344,6 +4344,8 @@ export default class SubHolding extends Component {
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
company
:
newInputValue
,
loading
:
true
,
previewTable
:
false
},
()
=>
{
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
company
:
newInputValue
,
loading
:
true
,
previewTable
:
false
},
()
=>
{
this
.
getReportType
()
this
.
getReportType
()
this
.
getCurrency
(
newInputValue
.
company_id
)
this
.
getCurrency
(
newInputValue
.
company_id
)
let
bizpar
=
this
.
state
.
usdBefore2024
==
false
&&
defaultCurrencyID
==
2
&&
newInputValue
.
id
==
1
?
defaultReport
.
filter
(
e
=>
e
.
report
===
2
)
:
defaultReport
this
.
setState
({
report
:
bizpar
[
0
],
reportType
:
bizpar
})
})}
})}
disableClearable
disableClearable
style
=
{{
width
:
250
}}
style
=
{{
width
:
250
}}
...
...
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