From 8c15b5c610dff90fd58b567ee5d4319ef739cf0c Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 26 Jan 2022 00:00:41 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 13 +++++++++++++ .../work-order-item-scheduled-users.vue | 2 ++ .../src/components/work-order-item-units.vue | 2 +- ayanova/src/views/svc-pm.vue | 9 +++++++++ ayanova/src/views/svc-quote.vue | 9 +++++++++ ayanova/src/views/svc-workorder.vue | 18 +++++++++++++----- 6 files changed, 47 insertions(+), 6 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 1c233527..76357e16 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -268,6 +268,19 @@ I've done the *Orders but nothing else other than a quick check of customer, so giong to need to go through all fields in all docs to make sure this is working properly +Not working: +formErrorFromSaveResult - input is: [{"error":{"code":"2200","details":[{"target":"ServiceRateId","error":"2204"}],"message":"ErrorAPI2200"},"itemUid":0,"childKey":"scheduledUsers"}] svc-workorder.vue:1831 +FormErrorFromSaveREsult calling error target from with following z value: {"error":{"code":"2200","details":[{"target":"ServiceRateId","error":"2204"}],"message":"ErrorAPI2200"},"itemUid":0,"childKey":"scheduledUsers"} +SaveScheduledUsers handleSaveError param is: {"error":{"code":"2200","details":[{"target":"ServiceRateId","error":"2204"}],"message":"ErrorAPI2200"},"itemUid":0,"childKey":"scheduledUsers"} + +Working: +formErrorFromSaveResult - input is: [{"error":{"code":"2200","details":[{"target":"ServiceRateId","error":"2204"}],"message":"ErrorAPI2200"},"itemUid":0,"childKey":"scheduledUsers","childUid":0}] svc-workorder.vue:1831 +FormErrorFromSaveREsult calling error target from with following z value: {"error":{"code":"2200","details":[{"target":"ServiceRateId","error":"2204"}],"message":"ErrorAPI2200"},"itemUid":0,"childKey":"scheduledUsers","childUid":0} + +SaveScheduledUsers handleSaveError param is: {"error":{"code":"2200","details":[{"target":"ServiceRateId","error":"2204"}],"message":"ErrorAPI2200"},"itemUid":0,"childKey":"scheduledUsers","childUid":0} + + + - 1 todo: Search limited to a type is *not* working, it just returns all results, search from a Customer for example and you will see all object results - 1 todo: window.$gz.locale.diffHoursFromUTC8601String is often calculated a total of 1.99 due to some rounding even though the two times look identical must be seconds or something, needs a round up in those cases, that's weird. To recreate try a start time of 11:21 and end time of 1:21pm which should be two hours but is 1.99 hours diff --git a/ayanova/src/components/work-order-item-scheduled-users.vue b/ayanova/src/components/work-order-item-scheduled-users.vue index 033ad4b6..ff89a14f 100644 --- a/ayanova/src/components/work-order-item-scheduled-users.vue +++ b/ayanova/src/components/work-order-item-scheduled-users.vue @@ -259,6 +259,8 @@ lg="4" xl="3" > + server errors: + {{ formState }} { - //console.log("z", z); - //{error:{code:xx,message:xx,target:xx},fatal:true} if (z.error.details != null) { z.error.details.forEach(x => { const target = errorTargetFromSaveResult(vm, z, x.target); + if (target != null) { ret.details.push({ message: x.message,