This commit is contained in:
2020-11-12 21:26:37 +00:00
parent 1460ca5903
commit 3ee75abd1a
2 changed files with 67 additions and 0 deletions

View File

@@ -889,6 +889,18 @@ async function clickHandler(menuItem) {
params: { recordid: res.id, ayatype: window.$gz.type.Customer }
});
}
break;
case "geocapture":
try {
let loc = await window.$gz.util.getGeoLocation();
m.vm.obj.latitude = loc.latitude;
m.vm.fieldValueChanged("latitude");
m.vm.obj.longitude = loc.longitude;
m.vm.fieldValueChanged("longitude");
} catch (ex) {
window.$gz.errorHandler.handleFormError(ex, m.vm);
}
break;
default:
window.$gz.eventBus.$emit(
@@ -1011,6 +1023,7 @@ async function initForm(vm) {
//
async function fetchTranslatedText(vm) {
await window.$gz.translation.cacheTranslations([
"Customer",
"CustomerName",
"CustomerNotes",
"WebAddress",