This commit is contained in:
2022-03-09 23:56:11 +00:00
parent a54fcb32d9
commit edc4c713d6
3 changed files with 21 additions and 24 deletions

View File

@@ -929,10 +929,7 @@ export default {
if (!this.showAdvanceNotice) {
this.obj.advanceNotice = "00:00:00";
}
if (!this.showDecValue) {
this.obj.decValue = 0;
}
if (!this.showIntegerDecValue) {
if (!this.showDecValue && !this.showIntegerDecValue) {
this.obj.decValue = 0;
}

View File

@@ -521,6 +521,22 @@ export default {
try {
vm.formState.loading = true;
window.$gz.form.deleteAllErrorBoxErrors(vm);
//don't include invalid settings (could be set by duplicate option)
if (!this.showAgeValue) {
this.obj.ageValue = "00:00:00";
}
if (!this.showAdvanceNotice) {
this.obj.advanceNotice = "00:00:00";
}
if (!this.showDecValue && !this.showIntegerDecValue) {
this.obj.decValue = 0;
}
if (!this.showQuoteStatus && !this.showWoStatus) {
this.obj.idValue = 0;
}
//don't send the deliveryaddress if it's an in-app notification
if (vm.obj.deliveryMethod == 1) {
vm.obj.deliveryAddress = null;