This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user