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
8ab8a8aa
Commit
8ab8a8aa
authored
Nov 29, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rifka' into 'master'
lagi See merge request
!720
parents
699fb585
05c77893
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
TaxPlanning.js
src/container/BudgetTahunan/TaxPlanning.js
+4
-10
No files found.
src/container/BudgetTahunan/TaxPlanning.js
View file @
8ab8a8aa
...
@@ -948,6 +948,7 @@ export default class TaxPlanning extends Component {
...
@@ -948,6 +948,7 @@ export default class TaxPlanning extends Component {
total
=
R
.
equals
(
total
,
NaN
)
?
"0.00"
:
Number
(
total
).
toFixed
(
2
)
total
=
R
.
equals
(
total
,
NaN
)
?
"0.00"
:
Number
(
total
).
toFixed
(
2
)
if
(
total
<
0
)
{
if
(
total
<
0
)
{
total
=
0
total
=
0
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
total
return
total
return
total
}
else
{
}
else
{
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
total
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
total
...
@@ -1219,8 +1220,9 @@ export default class TaxPlanning extends Component {
...
@@ -1219,8 +1220,9 @@ export default class TaxPlanning extends Component {
}
else
{
}
else
{
if
(
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
tbf
.
value
==
undefined
)
{
if
(
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
tbf
.
value
==
undefined
)
{
if
(
tableMeta
.
rowData
[
8
]
==
"Corporate Income Tax"
)
{
if
(
tableMeta
.
rowData
[
8
]
==
"Corporate Income Tax"
)
{
if
(
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
tbf
)
<
0
)
{
if
(
total
<
0
)
{
total
=
0
total
=
0
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
tbf
=
Number
(
total
)
}
else
{
}
else
{
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
tbf
=
Number
(
total
)
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
tbf
=
Number
(
total
)
}
}
...
@@ -1229,16 +1231,8 @@ export default class TaxPlanning extends Component {
...
@@ -1229,16 +1231,8 @@ export default class TaxPlanning extends Component {
}
}
}
else
{
}
else
{
if
(
tableMeta
.
rowData
[
8
]
==
"Corporate Income Tax"
)
{
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
tbf
.
value
=
Number
(
total
)
if
(
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
tbf
.
value
)
<
0
)
{
total
=
0
}
else
{
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
tbf
.
value
=
Number
(
total
)
}
}
else
{
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
tbf
.
value
=
Number
(
total
)
}
}
}
}
}
...
...
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