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
961bc557
Commit
961bc557
authored
Dec 20, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
banyak maunya
parent
74d20b8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
SubHolding.js
src/container/Reports/SubHolding.js
+6
-1
No files found.
src/container/Reports/SubHolding.js
View file @
961bc557
...
@@ -4328,6 +4328,8 @@ export default class SubHolding extends Component {
...
@@ -4328,6 +4328,8 @@ export default class SubHolding extends Component {
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
periode
:
newInputValue
,
loading
:
true
,
previewTable
:
false
},
()
=>
{
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
periode
:
newInputValue
,
loading
:
true
,
previewTable
:
false
},
()
=>
{
let
tahun
=
Number
(
this
.
state
.
periode
.
periode
)
let
tahun
=
Number
(
this
.
state
.
periode
.
periode
)
let
bizpar
=
tahun
>=
2024
&&
defaultCurrencyID
==
2
&&
newInputValue
.
id
==
1
?
defaultReport
.
filter
(
e
=>
e
.
report
===
2
)
:
defaultReport
let
bizpar
=
tahun
>=
2024
&&
defaultCurrencyID
==
2
&&
newInputValue
.
id
==
1
?
defaultReport
.
filter
(
e
=>
e
.
report
===
2
)
:
defaultReport
console
.
log
(
bizpar
);
console
.
log
(
defaultReport
);
this
.
setState
({
report
:
this
.
state
.
report
,
reportType
:
bizpar
})
this
.
setState
({
report
:
this
.
state
.
report
,
reportType
:
bizpar
})
this
.
getCurrency
(
this
.
state
.
company
.
company_id
)
this
.
getCurrency
(
this
.
state
.
company
.
company_id
)
this
.
getReportType
()
this
.
getReportType
()
...
@@ -4351,6 +4353,8 @@ export default class SubHolding extends Component {
...
@@ -4351,6 +4353,8 @@ export default class SubHolding extends Component {
this
.
getCurrency
(
newInputValue
.
company_id
)
this
.
getCurrency
(
newInputValue
.
company_id
)
let
tahun
=
Number
(
this
.
state
.
periode
.
periode
)
let
tahun
=
Number
(
this
.
state
.
periode
.
periode
)
let
bizpar
=
tahun
>=
2024
&&
defaultCurrencyID
==
2
&&
newInputValue
.
id
==
1
?
defaultReport
.
filter
(
e
=>
e
.
report
===
2
)
:
defaultReport
let
bizpar
=
tahun
>=
2024
&&
defaultCurrencyID
==
2
&&
newInputValue
.
id
==
1
?
defaultReport
.
filter
(
e
=>
e
.
report
===
2
)
:
defaultReport
console
.
log
(
bizpar
);
console
.
log
(
defaultReport
);
this
.
setState
({
report
:
this
.
state
.
report
,
reportType
:
bizpar
})
this
.
setState
({
report
:
this
.
state
.
report
,
reportType
:
bizpar
})
})}
})}
disableClearable
disableClearable
...
@@ -4392,7 +4396,8 @@ export default class SubHolding extends Component {
...
@@ -4392,7 +4396,8 @@ export default class SubHolding extends Component {
// }
// }
let
tahun
=
Number
(
this
.
state
.
periode
.
periode
)
let
tahun
=
Number
(
this
.
state
.
periode
.
periode
)
let
bizpar
=
tahun
>=
2024
&&
defaultCurrencyID
==
2
&&
newInputValue
.
id
==
1
?
defaultReport
.
filter
(
e
=>
e
.
report
===
2
)
:
defaultReport
let
bizpar
=
tahun
>=
2024
&&
defaultCurrencyID
==
2
&&
newInputValue
.
id
==
1
?
defaultReport
.
filter
(
e
=>
e
.
report
===
2
)
:
defaultReport
this
.
setState
({
report
:
tahun
>=
2024
?
bizpar
[
0
]
:
this
.
state
.
report
,
reportType
:
bizpar
})
let
indexID
=
bizpar
.
findIndex
((
val
)
=>
val
.
value
==
this
.
state
.
report
.
value
)
this
.
setState
({
report
:
indexID
==
-
1
?
bizpar
[
0
]
:
this
.
state
.
report
,
reportType
:
bizpar
})
this
.
getReportType
()
this
.
getReportType
()
})}
})}
...
...
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