This commit is contained in:
2021-05-17 22:30:09 +00:00
parent 4590caed1d
commit ad9270ab30
2 changed files with 5 additions and 14 deletions

View File

@@ -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!!

View File

@@ -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