Commit 74b9c46a authored by syadziy's avatar syadziy

push olpa bs

parent 5697b5ef
...@@ -564,13 +564,14 @@ export default class BalanceSheetOLPA extends Component { ...@@ -564,13 +564,14 @@ export default class BalanceSheetOLPA extends Component {
console.log(Number(i[17].value).toFixed(1)) console.log(Number(i[17].value).toFixed(1))
console.log(Number(i[18].value).toFixed(1)) console.log(Number(i[18].value).toFixed(1))
console.log(Number(i[19]).toFixed(1)) console.log(Number(i[19]).toFixed(1))
if ((Number(i[17].value).toFixed(1) < this.state.minValue) || (Number(i[17].value).toFixed(1) > this.state.maxValue)) {
if ((Number(i[17].value).toFixed(1) < Number(this.state.minValue)) || (Number(i[17].value).toFixed(1) > Number(this.state.maxValue))) {
console.log("masuk selisih control 1") console.log("masuk selisih control 1")
err = true err = true
} else if (Number(i[18].value).toFixed(1) < this.state.minValue || Number(i[18].value).toFixed(1) > this.state.maxValue) { } else if ((Number(i[18].value).toFixed(1) < Number(this.state.minValue)) || (Number(i[18].value).toFixed(1) > Number(this.state.maxValue))) {
console.log("masuk selisih control 2") console.log("masuk selisih control 2")
err = true err = true
} else if (Number(i[19]).toFixed(1) < this.state.minValue || Number(i[19]).toFixed(1) > this.state.maxValue) { } else if ((Number(i[19]).toFixed(1) < Number(this.state.minValue)) || (Number(i[19]).toFixed(1) > Number(this.state.maxValue))) {
console.log("masuk selisih control 3") console.log("masuk selisih control 3")
err = true err = true
} }
...@@ -594,7 +595,7 @@ export default class BalanceSheetOLPA extends Component { ...@@ -594,7 +595,7 @@ export default class BalanceSheetOLPA extends Component {
total_current_year: i[0] === 3 && i[19] === "" ? "0.0" : String(Number(i[19]).toFixed(1)), total_current_year: i[0] === 3 && i[19] === "" ? "0.0" : String(Number(i[19]).toFixed(1)),
}) })
}) })
// console.log(JSON.stringify(data)) console.log(JSON.stringify(data))
let payload = { let payload = {
"outlook_pa_id": this.props.outlook_pa_id, "outlook_pa_id": this.props.outlook_pa_id,
"company_id": this.props.company.company_id, "company_id": this.props.company.company_id,
......
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