Update edit.js
This commit is contained in:
parent
0d11052d46
commit
6b1eb6c829
|
@ -591,7 +591,7 @@ export default class exchangedit extends React.Component{
|
|||
onQuantityChange(e,row){
|
||||
|
||||
this.setState({tempdata:this.state.tempdata})
|
||||
let value = e.target.value == "" ? 0 : e.target.value;
|
||||
let value = e.target.value;
|
||||
let rowIndex =this.state.tempdata.findIndex((o)=>{return o.product_id == row.product_id})
|
||||
if(value - this.state.tempdata[rowIndex].usage < 0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue