diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 6e4f4cd3..3321809d 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -539,6 +539,8 @@ PM TODO: todo: should be able to directly duplicate to from any *order to any other *order iow no, it's not enough to have wo be the pivot object for a quote to PM, it should be direct + todo: pm needs fields for copy wiki and copy attachments so server knows to do that on generate + diff --git a/ayanova/src/views/svc-pm.vue b/ayanova/src/views/svc-pm.vue index 64f935c3..3f4d8fcc 100644 --- a/ayanova/src/views/svc-pm.vue +++ b/ayanova/src/views/svc-pm.vue @@ -650,6 +650,17 @@ export default { }); cp.id = 0; cp.fromPMId = this.obj.id; + //Service work order defaults copied from work order Data object + cp.serviceDate = null; + cp.completeByDate = null; + cp.durationToCompleted = "00:00:00"; + cp.invoiceNumber = null; + cp.customerSignature = null; + cp.customerSignatureName = null; + cp.customerSignatureCaptured = null; + cp.techSignature = null; + cp.techSignatureName = null; + cp.techSignatureCaptured = null; //Navigate to new record this.$router.push({ diff --git a/ayanova/src/views/svc-quote.vue b/ayanova/src/views/svc-quote.vue index 514fff39..5cd92a3e 100644 --- a/ayanova/src/views/svc-quote.vue +++ b/ayanova/src/views/svc-quote.vue @@ -690,6 +690,18 @@ export default { cp.id = 0; cp.fromQuoteId = this.obj.id; + //Service work order defaults copied from work order Data object + cp.serviceDate = null; + cp.completeByDate = null; + cp.durationToCompleted = "00:00:00"; + cp.invoiceNumber = null; + cp.customerSignature = null; + cp.customerSignatureName = null; + cp.customerSignatureCaptured = null; + cp.techSignature = null; + cp.techSignatureName = null; + cp.techSignatureCaptured = null; + //Navigate to new record this.$router.push({ name: "workorder-edit", @@ -717,6 +729,17 @@ export default { }); cp.id = 0; + //PM Defaults copied from PM data object + cp.stopGeneratingDate = null; + cp.excludeDaysOfWeek = 96; + cp.active = true; + cp.nextServiceDate = null; + cp.repeatUnit = 7; + cp.generateBeforeUnit = 4; + cp.repeatInterval = 1; + cp.generateBeforeInterval = 14; + cp.generateDate = null; + //Navigate to new record this.$router.push({ name: "pm-edit", diff --git a/ayanova/src/views/svc-workorder.vue b/ayanova/src/views/svc-workorder.vue index a2dc58c9..55892dfb 100644 --- a/ayanova/src/views/svc-workorder.vue +++ b/ayanova/src/views/svc-workorder.vue @@ -735,6 +735,17 @@ export default { }); cp.id = 0; + //PM Defaults copied from PM data object + cp.stopGeneratingDate = null; + cp.excludeDaysOfWeek = 96; + cp.active = true; + cp.nextServiceDate = this.obj.serviceDate; + cp.repeatUnit = 7; + cp.generateBeforeUnit = 4; + cp.repeatInterval = 1; + cp.generateBeforeInterval = 14; + cp.generateDate = null; + //Navigate to new record this.$router.push({ name: "pm-edit",