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
213b78e4
Commit
213b78e4
authored
Dec 01, 2020
by
r.kurnia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue handleTotalControl kalo status nya close
parent
e34f39b4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
TaxPlanning.js
src/container/BudgetTahunan/TaxPlanning.js
+10
-3
No files found.
src/container/BudgetTahunan/TaxPlanning.js
View file @
213b78e4
...
@@ -1269,11 +1269,18 @@ export default class TaxPlanning extends Component {
...
@@ -1269,11 +1269,18 @@ export default class TaxPlanning extends Component {
let
total
=
0
let
total
=
0
dataTable2
[
tableMeta
.
rowIndex
].
map
((
item
,
index
)
=>
{
dataTable2
[
tableMeta
.
rowIndex
].
map
((
item
,
index
)
=>
{
if
(
index
>=
9
&&
index
<=
20
)
{
if
(
index
>=
9
&&
index
<=
20
)
{
if
(
this
.
props
.
status
===
'CLOSED'
)
{
let
indexChild
=
item
.
tbf
if
(
indexChild
!==
-
1
)
{
total
+=
Number
(
item
.
tbf
)
}
}
else
{
let
indexChild
=
item
.
tbf
.
formula
.
findIndex
((
val
)
=>
val
.
periode
===
periode
)
let
indexChild
=
item
.
tbf
.
formula
.
findIndex
((
val
)
=>
val
.
periode
===
periode
)
if
(
indexChild
!==
-
1
)
{
if
(
indexChild
!==
-
1
)
{
total
+=
Number
(
item
.
tbf
.
formula
[
indexChild
].
value
)
total
+=
Number
(
item
.
tbf
.
formula
[
indexChild
].
value
)
}
}
}
}
}
})
})
let
nilai
=
Number
(
total
)
+
Number
(
dataTable2
[
88
][
21
])
let
nilai
=
Number
(
total
)
+
Number
(
dataTable2
[
88
][
21
])
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
nilai
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
nilai
...
...
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