From 8ac640854df295eeece1347a1769b77ea30f3fde Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 10 Feb 2022 20:23:27 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 2 +- ayanova/src/views/svc-workorder.vue | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 05d2328a..1446cea2 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -896,7 +896,7 @@ BUILD 8.0.0-beta.0.14 CHANGES OF NOTE - Changed work order item outside service section of wo/quote/pm to use title "Outside services" (translation key "OutsideServiceList") instead of formerly "Outside service list" (translation key "WorkOrderItemOutsideServiceList") this is to be consistent with other sections - Fixed several broken links in documentation - +- case 4111 fixed diff --git a/ayanova/src/views/svc-workorder.vue b/ayanova/src/views/svc-workorder.vue index 8930f67e..0fa09a34 100644 --- a/ayanova/src/views/svc-workorder.vue +++ b/ayanova/src/views/svc-workorder.vue @@ -267,7 +267,7 @@ export default { } else { //new path if (this.$route.params.obj) { - //DUPLICATE OR GEN FROM QUOTE OR PM + //DUPLICATE OR GEN FROM CSR, QUOTE OR PM //A whole work order basically is presented here this.obj = this.$route.params.obj; @@ -275,6 +275,10 @@ export default { this.obj.id = 0; this.obj.serial = 0; this.obj.isDirty = true; + //set the service date if not set by the caller + if (this.obj.serviceDate == null) { + this.obj.serviceDate = window.$gz.locale.nowUTC8601String(); + } vm.obj.items.forEach(z => { z.workOrderId = 0; this.washWorkOrderItem(z); @@ -332,6 +336,7 @@ export default { outsideServices: [], uid: Date.now() //used for error tracking / display }); + this.obj.serviceDate = n.start; break; default: