This commit is contained in:
2021-07-14 23:41:28 +00:00
parent 9e8b9ad128
commit d668f1256d
5 changed files with 20 additions and 10 deletions

View File

@@ -458,8 +458,6 @@ Subcontractor / tech limited modifications
todo: units on work order are not limited to customer on work order?? todo: units on work order are not limited to customer on work order??
todo: looks like wont' need subrights system, need to disentangle and remove it from workorder todo: looks like wont' need subrights system, need to disentangle and remove it from workorder
todo: Status on work order doesn't seem to be preventing "Who can select" by role properly todo: Status on work order doesn't seem to be preventing "Who can select" by role properly

View File

@@ -509,8 +509,12 @@ export default {
chargeTaxCodeId: null, chargeTaxCodeId: null,
taxCodeViz: null, taxCodeViz: null,
reimburseUser: false, reimburseUser: false,
userId: null, userId: this.$store.getters.isScheduleableUser
userViz: null, ? this.$store.state.userId
: null,
userViz: this.$store.getters.isScheduleableUser
? this.$store.state.userName
: null,
chargeToCustomer: false, chargeToCustomer: false,
isDirty: true, isDirty: true,
workOrderItemId: this.value.items[this.activeWoItemIndex].id, workOrderItemId: this.value.items[this.activeWoItemIndex].id,

View File

@@ -523,7 +523,7 @@ export default {
this.value.items[this.activeWoItemIndex].labors.push({ this.value.items[this.activeWoItemIndex].labors.push({
id: 0, id: 0,
concurrency: 0, concurrency: 0,
userId: this.value.userIsRestrictedType userId: this.$store.getters.isScheduleableUser
? this.$store.state.userId ? this.$store.state.userId
: null, : null,
serviceStartDate: null, serviceStartDate: null,
@@ -538,7 +538,7 @@ export default {
isDirty: true, isDirty: true,
workOrderItemId: this.value.items[this.activeWoItemIndex].id, workOrderItemId: this.value.items[this.activeWoItemIndex].id,
uid: Date.now(), uid: Date.now(),
userViz: this.value.userIsRestrictedType userViz: this.$store.getters.isScheduleableUser
? this.$store.state.userName ? this.$store.state.userName
: null, : null,
serviceRateViz: null, serviceRateViz: null,

View File

@@ -386,7 +386,9 @@ export default {
this.value.items[this.activeWoItemIndex].scheduledUsers.push({ this.value.items[this.activeWoItemIndex].scheduledUsers.push({
id: 0, id: 0,
concurrency: 0, concurrency: 0,
userId: null, userId: this.$store.getters.isScheduleableUser
? this.$store.state.userId
: null,
estimatedQuantity: 0, estimatedQuantity: 0,
startDate: null, startDate: null,
stopDate: null, stopDate: null,
@@ -394,7 +396,9 @@ export default {
isDirty: true, isDirty: true,
workOrderItemId: this.value.items[this.activeWoItemIndex].id, workOrderItemId: this.value.items[this.activeWoItemIndex].id,
uid: Date.now(), uid: Date.now(),
userViz: null, userViz: this.$store.getters.isScheduleableUser
? this.$store.state.userName
: null,
serviceRateViz: null serviceRateViz: null
}); });
this.$emit("change"); this.$emit("change");

View File

@@ -500,7 +500,9 @@ export default {
this.value.items[this.activeWoItemIndex].travels.push({ this.value.items[this.activeWoItemIndex].travels.push({
id: 0, id: 0,
concurrency: 0, concurrency: 0,
userId: null, userId: this.$store.getters.isScheduleableUser
? this.$store.state.userId
: null,
travelStartDate: null, travelStartDate: null,
travelStopDate: null, travelStopDate: null,
travelRateId: null, travelRateId: null,
@@ -513,7 +515,9 @@ export default {
isDirty: true, isDirty: true,
workOrderItemId: this.value.items[this.activeWoItemIndex].id, workOrderItemId: this.value.items[this.activeWoItemIndex].id,
uid: Date.now(), uid: Date.now(),
userViz: null, userViz: this.$store.getters.isScheduleableUser
? this.$store.state.userName
: null,
travelRateViz: null, travelRateViz: null,
taxCodeViz: null taxCodeViz: null
}); });