Commit 5576e288 authored by Riri Novita's avatar Riri Novita

Merge branch 'master' of http://103.44.149.204/d.arizona/tia-dev into riri

parents dc52ad61 b709807f
...@@ -1584,7 +1584,7 @@ export default class SubHolding extends Component { ...@@ -1584,7 +1584,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
...@@ -1594,7 +1594,7 @@ export default class SubHolding extends Component { ...@@ -1594,7 +1594,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
...@@ -1638,7 +1638,7 @@ export default class SubHolding extends Component { ...@@ -1638,7 +1638,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
...@@ -1648,7 +1648,7 @@ export default class SubHolding extends Component { ...@@ -1648,7 +1648,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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment