This commit is contained in:
@@ -458,8 +458,6 @@ Subcontractor / tech limited modifications
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
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: Status on work order doesn't seem to be preventing "Who can select" by role properly
|
||||
|
||||
@@ -509,8 +509,12 @@ export default {
|
||||
chargeTaxCodeId: null,
|
||||
taxCodeViz: null,
|
||||
reimburseUser: false,
|
||||
userId: null,
|
||||
userViz: null,
|
||||
userId: this.$store.getters.isScheduleableUser
|
||||
? this.$store.state.userId
|
||||
: null,
|
||||
userViz: this.$store.getters.isScheduleableUser
|
||||
? this.$store.state.userName
|
||||
: null,
|
||||
chargeToCustomer: false,
|
||||
isDirty: true,
|
||||
workOrderItemId: this.value.items[this.activeWoItemIndex].id,
|
||||
|
||||
@@ -523,7 +523,7 @@ export default {
|
||||
this.value.items[this.activeWoItemIndex].labors.push({
|
||||
id: 0,
|
||||
concurrency: 0,
|
||||
userId: this.value.userIsRestrictedType
|
||||
userId: this.$store.getters.isScheduleableUser
|
||||
? this.$store.state.userId
|
||||
: null,
|
||||
serviceStartDate: null,
|
||||
@@ -538,7 +538,7 @@ export default {
|
||||
isDirty: true,
|
||||
workOrderItemId: this.value.items[this.activeWoItemIndex].id,
|
||||
uid: Date.now(),
|
||||
userViz: this.value.userIsRestrictedType
|
||||
userViz: this.$store.getters.isScheduleableUser
|
||||
? this.$store.state.userName
|
||||
: null,
|
||||
serviceRateViz: null,
|
||||
|
||||
@@ -386,7 +386,9 @@ export default {
|
||||
this.value.items[this.activeWoItemIndex].scheduledUsers.push({
|
||||
id: 0,
|
||||
concurrency: 0,
|
||||
userId: null,
|
||||
userId: this.$store.getters.isScheduleableUser
|
||||
? this.$store.state.userId
|
||||
: null,
|
||||
estimatedQuantity: 0,
|
||||
startDate: null,
|
||||
stopDate: null,
|
||||
@@ -394,7 +396,9 @@ export default {
|
||||
isDirty: true,
|
||||
workOrderItemId: this.value.items[this.activeWoItemIndex].id,
|
||||
uid: Date.now(),
|
||||
userViz: null,
|
||||
userViz: this.$store.getters.isScheduleableUser
|
||||
? this.$store.state.userName
|
||||
: null,
|
||||
serviceRateViz: null
|
||||
});
|
||||
this.$emit("change");
|
||||
|
||||
@@ -500,7 +500,9 @@ export default {
|
||||
this.value.items[this.activeWoItemIndex].travels.push({
|
||||
id: 0,
|
||||
concurrency: 0,
|
||||
userId: null,
|
||||
userId: this.$store.getters.isScheduleableUser
|
||||
? this.$store.state.userId
|
||||
: null,
|
||||
travelStartDate: null,
|
||||
travelStopDate: null,
|
||||
travelRateId: null,
|
||||
@@ -513,7 +515,9 @@ export default {
|
||||
isDirty: true,
|
||||
workOrderItemId: this.value.items[this.activeWoItemIndex].id,
|
||||
uid: Date.now(),
|
||||
userViz: null,
|
||||
userViz: this.$store.getters.isScheduleableUser
|
||||
? this.$store.state.userName
|
||||
: null,
|
||||
travelRateViz: null,
|
||||
taxCodeViz: null
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user