From ad9270ab30aa8db2c09b04e3c83aebf0d98400d2 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 17 May 2021 22:30:09 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 12 ++++-------- ayanova/src/views/svc-workorder.vue | 7 +------ 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 51f7eb25..69525db1 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -341,14 +341,10 @@ todo: many biz objects are not using new PUT methodology CURRENTLY DOING: labors - todo: PUT SHOULD UPDATE IF VIZ (work order alert notes isue) - when update header (put) doesn't return populated viz alert notes as it should - I'm guessing this also should return the entire object to resolve this issue - probably every save of every bit should return that object, particularly if it has any populate viz fields - Test by changing customer or contract and save should show new alert notes - (same as done in svc-workorder.vue line 947 with labor, replicate that shit everywhere) - - CHANGED PUT ITEMS: header plus all children of woitem but not woitem (only excluded one) + todo: any change of contract should trigger a full refresh not just manually changing the contract + client requests new record when *it* detects a change of contract on the normal save of header (direct contract change route already handled, this is for customer change) + and in future Unit change may trigger this as well so make it re-usable + Once this is in place, perhaps don't need the whole contract control stuff anymore since it should just handle it...right? todo: check contract expiry for applying!! diff --git a/ayanova/src/views/svc-workorder.vue b/ayanova/src/views/svc-workorder.vue index 41d00835..93dcea0c 100644 --- a/ayanova/src/views/svc-workorder.vue +++ b/ayanova/src/views/svc-workorder.vue @@ -644,12 +644,7 @@ async function saveHeader(vm) { //} } else { - //update any server changed fields - //Server will update fields on put or post for most workorder graph objecs so need to update entire object here - //TODO: update header fields only, not collections here: - //see technique used elsewhere with this same need already done was it woitem?? - //get copy of item without child collections for independant submit - //this is it for woitem: + //this sets 'o' to all values in assigned *except* the ones itemized with removedKey which is a fake key and just used for this trick to work //as undefined won't