This commit is contained in:
2021-05-18 00:12:15 +00:00
parent fdf7791a94
commit c6d7b1fe6d

View File

@@ -341,27 +341,29 @@ todo: many biz objects are not using new PUT methodology
CURRENTLY DOING: labors
todo: Once this is in place, perhaps don't need the whole contract control stuff anymore since it should just handle it...right?
todo: address setting - rather than setting it *at* the client automatically shouldn't it set at the server automatically?
this would remove some weight from the client and with a forcefullrefresh system in place that will help with this as well.
todo: customer change is fetching both address and alert notes at the same time
since server detects change anyway couldn't that be part of the refresh?? or is that too much?
todo: since a contract change is resulting in refresh no need to retun the full object, just a flag that says refresh maybe??
todo: test - contract auto set (leaving aside unit for now) following conditions
if cust contract and not expired should set to that
if ho contract and no cust contract should set to that
if both cust and ho contract but cust contract exipred should use ho contract
if only ho contract and expired should not set to that
if only cust contract and expired should not set to that
if previously had a contract all of the above should change it
todo: check contract expiry for applying!!
todo: test - Double check it correctly sets response time (complete by date) on NEW workorder
if Gold then should be 24 hours from setting to gold
if silver then should be 48 hours from setting to silver
if bronze should take global default
if none should take global default
if global default is changed new wo should take it
todo: Test back end correctly sets contract on new wo and correctly sets response time (complete by date) on NEW workorder
todo: remove contract control entirely from code
todo:
todo: Server new wo auto contract resolution code,
if NEW record and contractid already set then use that otherwise find effective one and set (only way it's set automatically)
todo: test - new from scratch wo auto contract resolution code works as expected
if NEW record and contractid already set then use that otherwise sets it to correct auto set
confirm complete by is also correctly set on new wo
todo: remove contract control entirely from code
todo: replicate labor save code at front and back to the other contracted objects
- return full object, update accordingly