Commit ca9290a6 authored by fahrur huzain's avatar fahrur huzain

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

Dev/fahrur

See merge request !2004
parents 5baea9c4 f34ac53b
......@@ -728,13 +728,14 @@ export default class CreateParameter extends Component {
}
async validasiCreateEdit(){
console.log("Masuk ke validasiCreateEdit")
// console.log("Masuk ke validasiCreateEdit")
let data = await this.validasiValueData()
if (this.props.type === "edit"){
if (R.isNil(this.state.getTypes)){
}else {
if (this.state.getTypes.setting_group_name == "CURRENCY"){
if (R.isNil(this.state.getReportName)) {
}else {
if (R.isEmpty(data.maxValue) || data.maxValue == "") {
} else {
this.updateParameter()
......@@ -746,7 +747,6 @@ export default class CreateParameter extends Component {
this.updateParameter()
}
} else if (this.state.getTypes.setting_group_name == "REPORT_SUBMIT_PERIOD") {
console.log("masuk creat : " + data.maxValue);
if (R.isEmpty(data.maxValue) || data.maxValue == "" ) {
} else {
this.updateParameter()
......@@ -760,7 +760,8 @@ export default class CreateParameter extends Component {
}else {
if (this.state.getTypes.setting_group_name == "CURRENCY"){
if (R.isNil(this.state.getReportName)) {
if (R.isEmpty(data.maxValue)) {
}else {
if (R.isEmpty(data.maxValue) || data.maxValue == "") {
} else {
this.createParameter()
}
......@@ -771,7 +772,6 @@ export default class CreateParameter extends Component {
this.createParameter()
}
} else if (this.state.getTypes.setting_group_name == "REPORT_SUBMIT_PERIOD") {
console.log("masuk creat : " + data.maxValue);
if (R.isEmpty(data.maxValue) || data.maxValue == "" ) {
} else {
this.createParameter()
......@@ -936,22 +936,22 @@ export default class CreateParameter extends Component {
}
async validasiCreate() {
console.log(this.state.getFormatData);
console.log(this.state.tempData);
console.log(this.state.getTypes);
console.log(this.state.getParameter);
console.log(this.state.getPerusahaan);
console.log(this.state.getReportName);
console.log(this.state.value);
console.log(this.state.minValue);
console.log(this.state.startDate);
console.log(this.state.maxValue);
console.log(this.state.maxValue.substring(0,1));
// console.log(this.state.getFormatData);
// console.log(this.state.tempData);
// console.log(this.state.getTypes);
// console.log(this.state.getParameter);
// console.log(this.state.getPerusahaan);
// console.log(this.state.getReportName);
// console.log(this.state.value);
// console.log(this.state.minValue);
// console.log(this.state.startDate);
// console.log(this.state.maxValue);
// console.log(this.state.maxValue.substring(0,1));
let minMaxValidasi = await this.validasiMinMaxValue()
let data = await this.validasiValueData()
let response = await this.validasiRegexValue()
console.log(data);
console.log(data.endDate)
// console.log(data);
// console.log(data.endDate)
if (R.isNil(this.state.getTypes)) {
this.setState({ errorGroup: true, msgErrorGroup: 'Group Cannot be Empty' })
if(R.isNil(this.state.getParameter)){
......
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