This commit is contained in:
@@ -166,7 +166,10 @@
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'WorkOrderItemExpenseChargeAmount')"
|
||||
v-if="
|
||||
form().showMe(this, 'WorkOrderItemExpenseChargeAmount') &&
|
||||
!value.userIsRestrictedType
|
||||
"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
@@ -209,7 +212,10 @@
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'WorkOrderItemExpenseChargeToCustomer')"
|
||||
v-if="
|
||||
form().showMe(this, 'WorkOrderItemExpenseChargeToCustomer') &&
|
||||
!value.userIsRestrictedType
|
||||
"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
@@ -284,7 +290,10 @@
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'WorkOrderItemExpenseChargeTaxCodeID')"
|
||||
v-if="
|
||||
form().showMe(this, 'WorkOrderItemExpenseChargeTaxCodeID') &&
|
||||
!value.userIsRestrictedType
|
||||
"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
@@ -320,7 +329,10 @@
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'WorkOrderItemExpenseReimburseUser')"
|
||||
v-if="
|
||||
form().showMe(this, 'WorkOrderItemExpenseReimburseUser') &&
|
||||
!value.userIsRestrictedType
|
||||
"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
@@ -362,11 +374,13 @@
|
||||
<gz-pick-list
|
||||
:aya-type="$ay.ayt().User"
|
||||
variant="tech"
|
||||
:show-edit-icon="true"
|
||||
:show-edit-icon="!value.userIsRestrictedType"
|
||||
v-model="
|
||||
value.items[activeWoItemIndex].expenses[activeItemIndex].userId
|
||||
"
|
||||
:readonly="formState.readOnly || isDeleted"
|
||||
:readonly="
|
||||
formState.readOnly || isDeleted || value.userIsRestrictedType
|
||||
"
|
||||
:disabled="isDeleted"
|
||||
:label="$ay.t('WorkOrderItemExpenseUserID')"
|
||||
:ref="
|
||||
|
||||
@@ -214,7 +214,7 @@
|
||||
<gz-pick-list
|
||||
:aya-type="$ay.ayt().ServiceRate"
|
||||
:variant="'contractid:' + value.contractId"
|
||||
:show-edit-icon="true"
|
||||
:show-edit-icon="!value.userIsRestrictedType"
|
||||
v-model="
|
||||
value.items[activeWoItemIndex].labors[activeItemIndex]
|
||||
.serviceRateId
|
||||
@@ -251,11 +251,13 @@
|
||||
<gz-pick-list
|
||||
:aya-type="$ay.ayt().User"
|
||||
variant="tech"
|
||||
:show-edit-icon="true"
|
||||
:show-edit-icon="!value.userIsRestrictedType"
|
||||
v-model="
|
||||
value.items[activeWoItemIndex].labors[activeItemIndex].userId
|
||||
"
|
||||
:readonly="formState.readOnly || isDeleted"
|
||||
:readonly="
|
||||
formState.readOnly || isDeleted || value.userIsRestrictedType
|
||||
"
|
||||
:disabled="isDeleted"
|
||||
:label="$ay.t('WorkOrderItemLaborUserID')"
|
||||
:ref="
|
||||
@@ -321,7 +323,10 @@
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'WorkOrderItemLaborTaxRateSaleID')"
|
||||
v-if="
|
||||
form().showMe(this, 'WorkOrderItemLaborTaxRateSaleID') &&
|
||||
!value.userIsRestrictedType
|
||||
"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
@@ -357,7 +362,10 @@
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'LaborPriceOverride')"
|
||||
v-if="
|
||||
form().showMe(this, 'LaborPriceOverride') &&
|
||||
!value.userIsRestrictedType
|
||||
"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
@@ -786,7 +794,8 @@ export default {
|
||||
|
||||
if (
|
||||
this.form().showMe(this, "LaborCostViz") &&
|
||||
this.value.userCanViewLaborOrTravelRateCosts
|
||||
this.value.userCanViewLaborOrTravelRateCosts &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("Cost"),
|
||||
@@ -795,7 +804,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "LaborListPriceViz")) {
|
||||
if (
|
||||
this.form().showMe(this, "LaborListPriceViz") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("ListPrice"),
|
||||
align: "right",
|
||||
@@ -803,7 +815,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "LaborPriceOverride")) {
|
||||
if (
|
||||
this.form().showMe(this, "LaborPriceOverride") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("PriceOverride"),
|
||||
align: "right",
|
||||
@@ -811,7 +826,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "LaborPriceViz")) {
|
||||
if (
|
||||
this.form().showMe(this, "LaborPriceViz") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("Price"),
|
||||
align: "right",
|
||||
@@ -819,7 +837,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "WorkOrderItemLaborTaxRateSaleID")) {
|
||||
if (
|
||||
this.form().showMe(this, "WorkOrderItemLaborTaxRateSaleID") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("Tax"),
|
||||
align: "left",
|
||||
@@ -827,7 +848,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "LaborNetViz")) {
|
||||
if (
|
||||
this.form().showMe(this, "LaborNetViz") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("NetPrice"),
|
||||
align: "right",
|
||||
@@ -835,7 +859,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "LaborTaxAViz")) {
|
||||
if (
|
||||
this.form().showMe(this, "LaborTaxAViz") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("TaxAAmt"),
|
||||
align: "right",
|
||||
@@ -843,7 +870,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "LaborTaxBViz")) {
|
||||
if (
|
||||
this.form().showMe(this, "LaborTaxBViz") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("TaxBAmt"),
|
||||
align: "right",
|
||||
@@ -851,7 +881,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "LaborLineTotalViz")) {
|
||||
if (
|
||||
this.form().showMe(this, "LaborLineTotalViz") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("LineTotal"),
|
||||
align: "right",
|
||||
|
||||
@@ -205,7 +205,7 @@
|
||||
<gz-pick-list
|
||||
:aya-type="$ay.ayt().TravelRate"
|
||||
:variant="'contractid:' + value.contractId"
|
||||
:show-edit-icon="true"
|
||||
:show-edit-icon="!value.userIsRestrictedType"
|
||||
v-model="
|
||||
value.items[activeWoItemIndex].travels[activeItemIndex]
|
||||
.travelRateId
|
||||
@@ -242,11 +242,13 @@
|
||||
<gz-pick-list
|
||||
:aya-type="$ay.ayt().User"
|
||||
variant="tech"
|
||||
:show-edit-icon="true"
|
||||
:show-edit-icon="!value.userIsRestrictedType"
|
||||
v-model="
|
||||
value.items[activeWoItemIndex].travels[activeItemIndex].userId
|
||||
"
|
||||
:readonly="formState.readOnly || isDeleted"
|
||||
:readonly="
|
||||
formState.readOnly || isDeleted || value.userIsRestrictedType
|
||||
"
|
||||
:disabled="isDeleted"
|
||||
:label="$ay.t('WorkOrderItemTravelUserID')"
|
||||
:ref="
|
||||
@@ -312,7 +314,10 @@
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'WorkOrderItemTravelTaxRateSaleID')"
|
||||
v-if="
|
||||
form().showMe(this, 'WorkOrderItemTravelTaxRateSaleID') &&
|
||||
!value.userIsRestrictedType
|
||||
"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
@@ -348,7 +353,10 @@
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'TravelPriceOverride')"
|
||||
v-if="
|
||||
form().showMe(this, 'TravelPriceOverride') &&
|
||||
!value.userIsRestrictedType
|
||||
"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
@@ -764,7 +772,8 @@ export default {
|
||||
|
||||
if (
|
||||
this.form().showMe(this, "TravelCostViz") &&
|
||||
this.value.userCanViewLaborOrTravelRateCosts
|
||||
this.value.userCanViewLaborOrTravelRateCosts &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("Cost"),
|
||||
@@ -773,7 +782,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "TravelListPriceViz")) {
|
||||
if (
|
||||
this.form().showMe(this, "TravelListPriceViz") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("ListPrice"),
|
||||
align: "right",
|
||||
@@ -781,7 +793,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "TravelPriceOverride")) {
|
||||
if (
|
||||
this.form().showMe(this, "TravelPriceOverride") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("PriceOverride"),
|
||||
align: "right",
|
||||
@@ -789,7 +804,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "TravelPriceViz")) {
|
||||
if (
|
||||
this.form().showMe(this, "TravelPriceViz") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("Price"),
|
||||
align: "right",
|
||||
@@ -797,7 +815,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "WorkOrderItemTravelTaxRateSaleID")) {
|
||||
if (
|
||||
this.form().showMe(this, "WorkOrderItemTravelTaxRateSaleID") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("Tax"),
|
||||
align: "left",
|
||||
@@ -805,7 +826,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "TravelNetViz")) {
|
||||
if (
|
||||
this.form().showMe(this, "TravelNetViz") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("NetPrice"),
|
||||
align: "right",
|
||||
@@ -813,7 +837,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "TravelTaxAViz")) {
|
||||
if (
|
||||
this.form().showMe(this, "TravelTaxAViz") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("TaxAAmt"),
|
||||
align: "right",
|
||||
@@ -821,7 +848,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "TravelTaxBViz")) {
|
||||
if (
|
||||
this.form().showMe(this, "TravelTaxBViz") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("TaxBAmt"),
|
||||
align: "right",
|
||||
@@ -829,7 +859,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "TravelLineTotalViz")) {
|
||||
if (
|
||||
this.form().showMe(this, "TravelLineTotalViz") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("LineTotal"),
|
||||
align: "right",
|
||||
|
||||
Reference in New Issue
Block a user