Commit 3ce7e46b authored by fahrur huzain's avatar fahrur huzain

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

validasi convertable item report

See merge request !2283
parents 86518d13 bebcb447
...@@ -206,7 +206,7 @@ export default class CreateReportItems extends Component { ...@@ -206,7 +206,7 @@ export default class CreateReportItems extends Component {
this.setState({ errorEndDate: true, msgErrorED: 'Valid To Cannot be Empty' }) this.setState({ errorEndDate: true, msgErrorED: 'Valid To Cannot be Empty' })
} }
else if (R.isNil(this.state.convertible)){ else if (R.isNil(this.state.convertible)){
this.setState({ errorCovertible: true, msgErrorCovertible: 'Convetible Cannot be Empty' }) this.setState({ errorCovertible: true, msgErrorCovertible: 'Convertible Cannot be Empty' })
} }
else { else {
this.addReportItems() this.addReportItems()
......
...@@ -178,7 +178,7 @@ export default class EditReportItems extends Component { ...@@ -178,7 +178,7 @@ export default class EditReportItems extends Component {
} else if (R.isNil(this.state.tempData.end_date)) { } else if (R.isNil(this.state.tempData.end_date)) {
this.setState({errorEndDate: true, msgErrorED: 'Valid To Cannot be Empty'}) this.setState({errorEndDate: true, msgErrorED: 'Valid To Cannot be Empty'})
} else if (R.isNil(this.state.convertible)) { } else if (R.isNil(this.state.convertible)) {
this.setState({errorCovertible: true, msgErrorCovertible: 'Convetible Cannot be Empty' }) this.setState({errorCovertible: true, msgErrorCovertible: 'Convertible Cannot be Empty' })
} else { } else {
this.updateReportItems() this.updateReportItems()
} }
......
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