Commit 6523fe35 authored by fahrur huzain's avatar fahrur huzain

Merge branch 'ENV-DEV' into 'ENV-DEPLOYMENT'

Env dev

See merge request !2281
parents f463e096 86518d13
......@@ -47,6 +47,7 @@ export default class CreateReportItems extends Component {
errorCondition: false,
errorJenisLaporan: false,
errorPerusahaan: false,
errorCovertible: false,
msgErrorJenisLaporan: '',
msgErrorPerusahaan: '',
msgErrorTipeData: '',
......@@ -57,6 +58,7 @@ export default class CreateReportItems extends Component {
msgErrorRV: '',
msgErrorSD: '',
msgErrorED: '',
msgErrorCovertible: '',
disabledFormula: true,
disabledFormulaSum: true,
disabledCondt: true,
......@@ -115,6 +117,7 @@ export default class CreateReportItems extends Component {
errorEndDate: false,
errorTipeData: false,
errorCondition: false,
errorCovertible: false,
msgErrorTipeData: '',
msgErrorCondition: '',
msgErrorOrder: '',
......@@ -123,6 +126,7 @@ export default class CreateReportItems extends Component {
msgErrorRV: '',
msgErrorSD: '',
msgErrorED: '',
msgErrorCovertible: '',
})
} else if (isDate && type === 'end_date') {
this.setState({
......@@ -135,6 +139,7 @@ export default class CreateReportItems extends Component {
errorEndDate: false,
errorTipeData: false,
errorCondition: false,
errorCovertible: false,
msgErrorTipeData: '',
msgErrorCondition: '',
msgErrorOrder: '',
......@@ -143,6 +148,7 @@ export default class CreateReportItems extends Component {
msgErrorRV: '',
msgErrorSD: '',
msgErrorED: '',
msgErrorCovertible: '',
})
} else {
this.setState({
......@@ -155,6 +161,7 @@ export default class CreateReportItems extends Component {
errorEndDate: false,
errorTipeData: false,
errorCondition: false,
errorCovertible: false,
msgErrorTipeData: '',
msgErrorCondition: '',
msgErrorOrder: '',
......@@ -163,6 +170,7 @@ export default class CreateReportItems extends Component {
msgErrorRV: '',
msgErrorSD: '',
msgErrorED: '',
msgErrorCovertible: '',
})
}
}
......@@ -197,6 +205,9 @@ export default class CreateReportItems extends Component {
else if (R.isNil(this.state.endDate)) {
this.setState({ errorEndDate: true, msgErrorED: 'Valid To Cannot be Empty' })
}
else if (R.isNil(this.state.convertible)){
this.setState({ errorCovertible: true, msgErrorCovertible: 'Convetible Cannot be Empty' })
}
else {
this.addReportItems()
}
......@@ -1072,6 +1083,8 @@ export default class CreateReportItems extends Component {
label="Convertible"
margin="normal"
style={{ marginTop: 7 }}
error={this.state.errorCovertible}
helperText={this.state.msgErrorCovertible}
InputProps={{ ...params.InputProps, style: { fontSize: 11 } }}
InputLabelProps={{ style: { fontSize: 11, color: '#7e8085' } }}
/>
......
......@@ -48,6 +48,7 @@ export default class EditReportItems extends Component {
errorEndDate: false,
errorJenisLaporan: false,
errorPerusahaan: false,
errorCovertible: false,
msgErrorJenisLaporan: '',
msgErrorPerusahaan: '',
msgErrorOrder: '',
......@@ -60,6 +61,7 @@ export default class EditReportItems extends Component {
msgErrorRV: '',
msgErrorSD: '',
msgErrorED: '',
msgErrorCovertible: '',
disabledFormula: true,
disabledCondt: true,
disabledValue: true,
......@@ -105,12 +107,14 @@ export default class EditReportItems extends Component {
errorRV: false,
errorStartDate: false,
errorEndDate: false,
errorCovertible: false,
msgErrorOrder: '',
msgErrorDesc: '',
msgErrorFormula: '',
msgErrorRV: '',
msgErrorSD: '',
msgErrorED: '',
msgErrorCovertible: '',
})
} else if (isDate && type === 'end_date') {
this.setState({
......@@ -121,12 +125,14 @@ export default class EditReportItems extends Component {
errorRV: false,
errorStartDate: false,
errorEndDate: false,
errorCovertible: false,
msgErrorOrder: '',
msgErrorDesc: '',
msgErrorFormula: '',
msgErrorRV: '',
msgErrorSD: '',
msgErrorED: '',
msgErrorCovertible: '',
})
} else {
this.setState({
......@@ -137,12 +143,14 @@ export default class EditReportItems extends Component {
errorRV: false,
errorStartDate: false,
errorEndDate: false,
errorCovertible: false,
msgErrorOrder: '',
msgErrorDesc: '',
msgErrorFormula: '',
msgErrorRV: '',
msgErrorSD: '',
msgErrorED: '',
msgErrorCovertible: '',
})
}
}
......@@ -168,7 +176,9 @@ export default class EditReportItems extends Component {
} else if (R.isNil(this.state.tempData.start_date)) {
this.setState({ errorStartDate: true, msgErrorSD: 'Valid From Cannot be Empty' })
} 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)) {
this.setState({errorCovertible: true, msgErrorCovertible: 'Convetible Cannot be Empty' })
} else {
this.updateReportItems()
}
......@@ -1045,6 +1055,8 @@ export default class EditReportItems extends Component {
{...params}
label="Convertible"
margin="normal"
error={this.state.errorCovertible}
helperText={this.state.msgErrorCovertible}
style={{ marginTop: 7 }}
InputProps={{ ...params.InputProps, style: { fontSize: 11 } }}
InputLabelProps={{ style: { fontSize: 11, color: '#7e8085' } }}
......
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