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
b709807f
Commit
b709807f
authored
Feb 02, 2021
by
Faisal Hamdi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'faisal' into 'master'
fixed negative comparison See merge request
!1089
parents
189ed559
b9980c12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
SubHolding.js
src/container/Laporan/SubHolding.js
+4
-4
No files found.
src/container/Laporan/SubHolding.js
View file @
b709807f
...
@@ -1548,7 +1548,7 @@ export default class SubHolding extends Component {
...
@@ -1548,7 +1548,7 @@ export default class SubHolding extends Component {
let
persenOL
=
0
let
persenOL
=
0
if
(
mtd_mb
<
0
)
{
if
(
mtd_mb
<
0
)
{
if
(
mtd_actual
<
mtd_mb
)
{
if
(
parseFloat
(
mtd_actual
)
<
parseFloat
(
mtd_mb
)
)
{
persenMtd
=
Number
((
mtd_mb
-
mtd_actual
)
/
mtd_mb
)
persenMtd
=
Number
((
mtd_mb
-
mtd_actual
)
/
mtd_mb
)
}
else
{
}
else
{
persenMtd
=
Number
((
mtd_mb
-
mtd_actual
)
/
mtd_mb
)
+
1
persenMtd
=
Number
((
mtd_mb
-
mtd_actual
)
/
mtd_mb
)
+
1
...
@@ -1558,7 +1558,7 @@ export default class SubHolding extends Component {
...
@@ -1558,7 +1558,7 @@ export default class SubHolding extends Component {
}
}
if
(
mtd_ol
<
0
)
{
if
(
mtd_ol
<
0
)
{
if
(
mtd_actual
<
mtd_ol
)
{
if
(
parseFloat
(
mtd_actual
)
<
parseFloat
(
mtd_ol
)
)
{
persenOL
=
Number
((
mtd_ol
-
mtd_actual
)
/
mtd_ol
)
persenOL
=
Number
((
mtd_ol
-
mtd_actual
)
/
mtd_ol
)
}
else
{
}
else
{
persenOL
=
Number
((
mtd_ol
-
mtd_actual
)
/
mtd_ol
)
+
1
persenOL
=
Number
((
mtd_ol
-
mtd_actual
)
/
mtd_ol
)
+
1
...
@@ -1602,7 +1602,7 @@ export default class SubHolding extends Component {
...
@@ -1602,7 +1602,7 @@ export default class SubHolding extends Component {
let
persenOL
=
0
let
persenOL
=
0
if
(
mtd_mb
<
0
)
{
if
(
mtd_mb
<
0
)
{
if
(
mtd_actual
<
mtd_mb
)
{
if
(
parseFloat
(
mtd_actual
)
<
parseFloat
(
mtd_mb
)
)
{
persenMtd
=
Number
((
mtd_mb
-
mtd_actual
)
/
mtd_mb
)
persenMtd
=
Number
((
mtd_mb
-
mtd_actual
)
/
mtd_mb
)
}
else
{
}
else
{
persenMtd
=
Number
((
mtd_mb
-
mtd_actual
)
/
mtd_mb
)
+
1
persenMtd
=
Number
((
mtd_mb
-
mtd_actual
)
/
mtd_mb
)
+
1
...
@@ -1612,7 +1612,7 @@ export default class SubHolding extends Component {
...
@@ -1612,7 +1612,7 @@ export default class SubHolding extends Component {
}
}
if
(
mtd_ol
<
0
)
{
if
(
mtd_ol
<
0
)
{
if
(
mtd_actual
<
mtd_ol
)
{
if
(
parseFloat
(
mtd_actual
)
<
parseFloat
(
mtd_ol
)
)
{
persenOL
=
Number
((
mtd_ol
-
mtd_actual
)
/
mtd_ol
)
persenOL
=
Number
((
mtd_ol
-
mtd_actual
)
/
mtd_ol
)
}
else
{
}
else
{
persenOL
=
Number
((
mtd_ol
-
mtd_actual
)
/
mtd_ol
)
+
1
persenOL
=
Number
((
mtd_ol
-
mtd_actual
)
/
mtd_ol
)
+
1
...
...
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