This commit is contained in:
2021-05-18 19:27:49 +00:00
parent b13a2fb2ed
commit f489e5b82d
2 changed files with 1 additions and 64 deletions

View File

@@ -339,17 +339,7 @@ todo: many biz objects are not using new PUT methodology
CURRENTLY DOING: labors
todo: remove contract control entirely from code
todo: replicate labor save code at front and back to the other contracted objects
- return full object, update accordingly
- taxes calculated properly /100
- identify any workorder graph objects that will be returned with updated values (any viz I guess too)
- might turn out to be all objects really
CURRENTLY DOING: nothing...pick something below to continue
todo: boolean fields in table are showing "true" "false" must change to checkboxes or checkbox characters or something

View File

@@ -347,59 +347,6 @@ export default {
//flag this record dirty so it gets picked up by save
this.value.isDirty = true;
window.$gz.form.fieldValueChanged(this.pvm, ref);
// if (ref == "customerId") {
// this.value.alertViz = null;
// const custId = this.value.customerId;
// if (custId != null) {
// //------ Alert notes
// let res = await window.$gz.api.get(`customer/alert/${custId}`);
// if (res.data) {
// this.value.alertViz = res.data;
// }
// //------ Addresses
// res = await window.$gz.api.get(`customer/address/${custId}`);
// if (res.data) {
// //Addresses are considered non-empty if the PostAddress or Address field is not empty
// //Set Billing address
// if (
// !window.$gz.util.stringIsNullOrEmpty(
// res.data.headofficepost.postAddress
// )
// ) {
// //Use head office bill to address
// this.value.postAddress = res.data.headofficepost.postAddress;
// this.value.postCity = res.data.headofficepost.postCity;
// this.value.postRegion = res.data.headofficepost.postRegion;
// this.value.postCountry = res.data.headofficepost.postCountry;
// this.value.postCode = res.data.headofficepost.postCode;
// } else {
// //Use customer postal address, if it's empty then it's empty
// this.value.postAddress = res.data.customerpost.postAddress;
// this.value.postCity = res.data.customerpost.postCity;
// this.value.postRegion = res.data.customerpost.postRegion;
// this.value.postCountry = res.data.customerpost.postCountry;
// this.value.postCode = res.data.customerpost.postCode;
// }
// //Set service address
// if (
// !window.$gz.util.stringIsNullOrEmpty(
// res.data.customerphys.address
// )
// ) {
// //Use head office bill to address
// this.value.address = res.data.customerphys.address;
// this.value.city = res.data.customerphys.city;
// this.value.region = res.data.customerphys.region;
// this.value.country = res.data.customerphys.country;
// this.value.latitude = res.data.customerphys.latitude;
// this.value.longitude = res.data.customerphys.longitude;
// }
// }
// }
// }
}
}
},