Commit aa7174e7 authored by fahrur huzain's avatar fahrur huzain

Merge branch 'dev/fahrur-new' into 'ENV-DEV'

issue pl prod

See merge request !2119
parents 92621366 2f236bd5
...@@ -680,11 +680,15 @@ export default class ProfitLossMR extends Component { ...@@ -680,11 +680,15 @@ export default class ProfitLossMR extends Component {
this.state.dataTable.map((i, index) => { this.state.dataTable.map((i, index) => {
if (i[0] === 3) { if (i[0] === 3) {
// console.log(i); // console.log(i);
if (i[19] === "" && (this.props.defaultCurrency.id == 1 ? fixNumber(Number(i[16]), 1) : Number(i[16]) < this.state.minValue || this.props.defaultCurrency.id == 1 ? fixNumber(Number(i[16]), 1) : Number(i[16]) > this.state.maxValue)) { if (i[19] === "" && (fixNumber(Number(i[16]), 1) < this.state.minValue || fixNumber(Number(i[16]), 1) > this.state.maxValue)) {
console.log('msk 1'); console.log('msk 1');
// console.log(i);
err = true err = true
} }
// if (i[19] === "" && (this.props.defaultCurrency.id == 1 ? fixNumber(Number(i[16]), 1) : Number(i[16]) < this.state.minValue || this.props.defaultCurrency.id == 1 ? fixNumber(Number(i[16]), 1) : Number(i[16]) > this.state.maxValue)) {
// console.log('msk 1');
// // console.log(i);
// err = true
// }
// else if ( i[20] === "" && (Number(i[16]) < this.state.minValue || Number(i[16]) > this.state.maxValue)) { // else if ( i[20] === "" && (Number(i[16]) < this.state.minValue || Number(i[16]) > this.state.maxValue)) {
// console.log('msk 2'); // console.log('msk 2');
// err = true // err = true
......
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