diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt
index 6b50079d..d4f1bf7d 100644
--- a/ayanova/devdocs/todo.txt
+++ b/ayanova/devdocs/todo.txt
@@ -341,10 +341,7 @@ todo: many biz objects are not using new PUT methodology
CURRENTLY DOING: labors
- 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: 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.
diff --git a/ayanova/src/components/work-order-header.vue b/ayanova/src/components/work-order-header.vue
index be31c168..fa90d525 100644
--- a/ayanova/src/components/work-order-header.vue
+++ b/ayanova/src/components/work-order-header.vue
@@ -95,7 +95,7 @@
>
-
+ -->
+
+
+
{
@@ -453,8 +455,6 @@ export default {
//some ops require a full refresh like ones that trigger contract changes
let forceFullRefresh = false;
- let contractIdBeforeSave = vm.obj.contractId;
- console.log("ContractIdBeforeSave=", contractIdBeforeSave);
//reset error object
this.saveResult.fatal = false;
@@ -525,8 +525,8 @@ export default {
});
} else {
//check if full refresh is necessary
- console.log("ContractIdAfterSave=", vm.obj.contractId);
- if (vm.obj.contractId != contractIdBeforeSave) {
+
+ if (vm.obj.contractId != vm.obj.lastGetContractId) {
//there may be others which is why I'm doing it this way with the extra variable
forceFullRefresh = true;
}