This commit is contained in:
2021-06-04 19:13:06 +00:00
parent 8315845d85
commit 1d6f584647
3 changed files with 72 additions and 142 deletions

View File

@@ -365,21 +365,13 @@ todo: many biz objects are not using new PUT methodology
CURRENTLY DOING: workorder round two electric boogaloo
basics first then increasingly esoteric features
currently: request button implementations
make the button actually do the work
trigger a route that adds a request and then insert it into the object tree so it appears
maybe though it's done from the parts form but signals to the svc-workorder header to do the actual work??
or maybe better in the part form as a separation of concerns issue and part does have access to the full object so can
easily insert it into the tree!!!!!!
handle the case where the inventory changes after error but before click
both ways: has enough all of a sudden or has even less all of a sudden
Biggies
todo 3: actual inventory
1961 / 3752- auto remove from inventory immediately when wo saved and re-instate if changed
see PO back end for example of exactly this
SEEDER
make sure generated inventory and workorders are going to work with enough quantity etc
ODDS / ENDS
replicate new viz strip code to all children save like parts does now
INVENTORY
todo: No inventory setting *IMPORTANT* must test with inventory turned off for this and for PO system as well or whatever is necessary
make it work like v7
NOTE: In v7 selecting serial copied to description field for some reason, but v8 has dedicated serial field so this is probably an import issue i.e. make sure import copies serials to serials
@@ -387,11 +379,7 @@ todo: No inventory setting *IMPORTANT* must test with inventory turned off for t
NEED:
on WO must hide all serial number selection elements if useinventory is off
but it seems reasonable to leave the field to just hand enter them in if desired
WO part selection: if useinventory then must run CheckIfEnoughInventory and offer to request or set to zero
in v7 when useinventory=true you cannot enter a quantity that is more than is in stock, you either initiate a request or it sets it to zero and won't allow any other value
so this must be replicated in v8 exactly and dynamically, not from server itself, but server must still check at last moment of save and return error if unavailable
See v7 project workorderform.cs line 8878 for the code in question
Proper error messages that are localized and must display correctly in UI at the source of the woitempart error
todo: workorder save method is using a shallow clone by reference for each object NOT a copy as intended which is killing the error system as UID is being wiped
See Part save for a clone method using json parse and stringify, but maybe that's shit and need something better