case 4095

This commit is contained in:
2022-01-25 14:47:55 +00:00
parent 4c95158a8a
commit eaf9819506
2 changed files with 7 additions and 4 deletions

View File

@@ -101,7 +101,7 @@ export default {
customerContactName: null,
fromQuoteId: null,
fromPMId: null,
serviceDate: null,
serviceDate: window.$gz.locale.nowUTC8601String(),
completeByDate: null,
durationToCompleted: "00:00:00",
invoiceNumber: null,
@@ -284,8 +284,6 @@ export default {
//sometimes we're here with some data to fill in (e.g. schedule creates new wo itemscheduled user, if so there will be a add property on the params)
if (this.$route.params.add) {
//todo: REFACTOR this is a temporary abomination, new items should be standardized somewhere else in one location
//ideally a central place for creating new workorder related objects
const n = this.$route.params.add;
switch (n.type) {
case this.$ay.ayt().WorkOrderItemScheduledUser:
@@ -334,7 +332,7 @@ export default {
outsideServices: [],
uid: Date.now() //used for error tracking / display
});
this.obj.serviceDate = n.start;
break;
default:
if (window.$gz.dev) {