This commit is contained in:
@@ -166,7 +166,10 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<v-col
|
<v-col
|
||||||
v-if="form().showMe(this, 'WorkOrderItemExpenseChargeAmount')"
|
v-if="
|
||||||
|
form().showMe(this, 'WorkOrderItemExpenseChargeAmount') &&
|
||||||
|
!value.userIsRestrictedType
|
||||||
|
"
|
||||||
cols="12"
|
cols="12"
|
||||||
sm="6"
|
sm="6"
|
||||||
lg="4"
|
lg="4"
|
||||||
@@ -209,7 +212,10 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<v-col
|
<v-col
|
||||||
v-if="form().showMe(this, 'WorkOrderItemExpenseChargeToCustomer')"
|
v-if="
|
||||||
|
form().showMe(this, 'WorkOrderItemExpenseChargeToCustomer') &&
|
||||||
|
!value.userIsRestrictedType
|
||||||
|
"
|
||||||
cols="12"
|
cols="12"
|
||||||
sm="6"
|
sm="6"
|
||||||
lg="4"
|
lg="4"
|
||||||
@@ -284,7 +290,10 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<v-col
|
<v-col
|
||||||
v-if="form().showMe(this, 'WorkOrderItemExpenseChargeTaxCodeID')"
|
v-if="
|
||||||
|
form().showMe(this, 'WorkOrderItemExpenseChargeTaxCodeID') &&
|
||||||
|
!value.userIsRestrictedType
|
||||||
|
"
|
||||||
cols="12"
|
cols="12"
|
||||||
sm="6"
|
sm="6"
|
||||||
lg="4"
|
lg="4"
|
||||||
@@ -320,7 +329,10 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<v-col
|
<v-col
|
||||||
v-if="form().showMe(this, 'WorkOrderItemExpenseReimburseUser')"
|
v-if="
|
||||||
|
form().showMe(this, 'WorkOrderItemExpenseReimburseUser') &&
|
||||||
|
!value.userIsRestrictedType
|
||||||
|
"
|
||||||
cols="12"
|
cols="12"
|
||||||
sm="6"
|
sm="6"
|
||||||
lg="4"
|
lg="4"
|
||||||
@@ -362,11 +374,13 @@
|
|||||||
<gz-pick-list
|
<gz-pick-list
|
||||||
:aya-type="$ay.ayt().User"
|
:aya-type="$ay.ayt().User"
|
||||||
variant="tech"
|
variant="tech"
|
||||||
:show-edit-icon="true"
|
:show-edit-icon="!value.userIsRestrictedType"
|
||||||
v-model="
|
v-model="
|
||||||
value.items[activeWoItemIndex].expenses[activeItemIndex].userId
|
value.items[activeWoItemIndex].expenses[activeItemIndex].userId
|
||||||
"
|
"
|
||||||
:readonly="formState.readOnly || isDeleted"
|
:readonly="
|
||||||
|
formState.readOnly || isDeleted || value.userIsRestrictedType
|
||||||
|
"
|
||||||
:disabled="isDeleted"
|
:disabled="isDeleted"
|
||||||
:label="$ay.t('WorkOrderItemExpenseUserID')"
|
:label="$ay.t('WorkOrderItemExpenseUserID')"
|
||||||
:ref="
|
:ref="
|
||||||
|
|||||||
@@ -214,7 +214,7 @@
|
|||||||
<gz-pick-list
|
<gz-pick-list
|
||||||
:aya-type="$ay.ayt().ServiceRate"
|
:aya-type="$ay.ayt().ServiceRate"
|
||||||
:variant="'contractid:' + value.contractId"
|
:variant="'contractid:' + value.contractId"
|
||||||
:show-edit-icon="true"
|
:show-edit-icon="!value.userIsRestrictedType"
|
||||||
v-model="
|
v-model="
|
||||||
value.items[activeWoItemIndex].labors[activeItemIndex]
|
value.items[activeWoItemIndex].labors[activeItemIndex]
|
||||||
.serviceRateId
|
.serviceRateId
|
||||||
@@ -251,11 +251,13 @@
|
|||||||
<gz-pick-list
|
<gz-pick-list
|
||||||
:aya-type="$ay.ayt().User"
|
:aya-type="$ay.ayt().User"
|
||||||
variant="tech"
|
variant="tech"
|
||||||
:show-edit-icon="true"
|
:show-edit-icon="!value.userIsRestrictedType"
|
||||||
v-model="
|
v-model="
|
||||||
value.items[activeWoItemIndex].labors[activeItemIndex].userId
|
value.items[activeWoItemIndex].labors[activeItemIndex].userId
|
||||||
"
|
"
|
||||||
:readonly="formState.readOnly || isDeleted"
|
:readonly="
|
||||||
|
formState.readOnly || isDeleted || value.userIsRestrictedType
|
||||||
|
"
|
||||||
:disabled="isDeleted"
|
:disabled="isDeleted"
|
||||||
:label="$ay.t('WorkOrderItemLaborUserID')"
|
:label="$ay.t('WorkOrderItemLaborUserID')"
|
||||||
:ref="
|
:ref="
|
||||||
@@ -321,7 +323,10 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<v-col
|
<v-col
|
||||||
v-if="form().showMe(this, 'WorkOrderItemLaborTaxRateSaleID')"
|
v-if="
|
||||||
|
form().showMe(this, 'WorkOrderItemLaborTaxRateSaleID') &&
|
||||||
|
!value.userIsRestrictedType
|
||||||
|
"
|
||||||
cols="12"
|
cols="12"
|
||||||
sm="6"
|
sm="6"
|
||||||
lg="4"
|
lg="4"
|
||||||
@@ -357,7 +362,10 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<v-col
|
<v-col
|
||||||
v-if="form().showMe(this, 'LaborPriceOverride')"
|
v-if="
|
||||||
|
form().showMe(this, 'LaborPriceOverride') &&
|
||||||
|
!value.userIsRestrictedType
|
||||||
|
"
|
||||||
cols="12"
|
cols="12"
|
||||||
sm="6"
|
sm="6"
|
||||||
lg="4"
|
lg="4"
|
||||||
@@ -786,7 +794,8 @@ export default {
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
this.form().showMe(this, "LaborCostViz") &&
|
this.form().showMe(this, "LaborCostViz") &&
|
||||||
this.value.userCanViewLaborOrTravelRateCosts
|
this.value.userCanViewLaborOrTravelRateCosts &&
|
||||||
|
!this.value.userIsRestrictedType
|
||||||
) {
|
) {
|
||||||
headers.push({
|
headers.push({
|
||||||
text: this.$ay.t("Cost"),
|
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({
|
headers.push({
|
||||||
text: this.$ay.t("ListPrice"),
|
text: this.$ay.t("ListPrice"),
|
||||||
align: "right",
|
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({
|
headers.push({
|
||||||
text: this.$ay.t("PriceOverride"),
|
text: this.$ay.t("PriceOverride"),
|
||||||
align: "right",
|
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({
|
headers.push({
|
||||||
text: this.$ay.t("Price"),
|
text: this.$ay.t("Price"),
|
||||||
align: "right",
|
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({
|
headers.push({
|
||||||
text: this.$ay.t("Tax"),
|
text: this.$ay.t("Tax"),
|
||||||
align: "left",
|
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({
|
headers.push({
|
||||||
text: this.$ay.t("NetPrice"),
|
text: this.$ay.t("NetPrice"),
|
||||||
align: "right",
|
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({
|
headers.push({
|
||||||
text: this.$ay.t("TaxAAmt"),
|
text: this.$ay.t("TaxAAmt"),
|
||||||
align: "right",
|
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({
|
headers.push({
|
||||||
text: this.$ay.t("TaxBAmt"),
|
text: this.$ay.t("TaxBAmt"),
|
||||||
align: "right",
|
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({
|
headers.push({
|
||||||
text: this.$ay.t("LineTotal"),
|
text: this.$ay.t("LineTotal"),
|
||||||
align: "right",
|
align: "right",
|
||||||
|
|||||||
@@ -205,7 +205,7 @@
|
|||||||
<gz-pick-list
|
<gz-pick-list
|
||||||
:aya-type="$ay.ayt().TravelRate"
|
:aya-type="$ay.ayt().TravelRate"
|
||||||
:variant="'contractid:' + value.contractId"
|
:variant="'contractid:' + value.contractId"
|
||||||
:show-edit-icon="true"
|
:show-edit-icon="!value.userIsRestrictedType"
|
||||||
v-model="
|
v-model="
|
||||||
value.items[activeWoItemIndex].travels[activeItemIndex]
|
value.items[activeWoItemIndex].travels[activeItemIndex]
|
||||||
.travelRateId
|
.travelRateId
|
||||||
@@ -242,11 +242,13 @@
|
|||||||
<gz-pick-list
|
<gz-pick-list
|
||||||
:aya-type="$ay.ayt().User"
|
:aya-type="$ay.ayt().User"
|
||||||
variant="tech"
|
variant="tech"
|
||||||
:show-edit-icon="true"
|
:show-edit-icon="!value.userIsRestrictedType"
|
||||||
v-model="
|
v-model="
|
||||||
value.items[activeWoItemIndex].travels[activeItemIndex].userId
|
value.items[activeWoItemIndex].travels[activeItemIndex].userId
|
||||||
"
|
"
|
||||||
:readonly="formState.readOnly || isDeleted"
|
:readonly="
|
||||||
|
formState.readOnly || isDeleted || value.userIsRestrictedType
|
||||||
|
"
|
||||||
:disabled="isDeleted"
|
:disabled="isDeleted"
|
||||||
:label="$ay.t('WorkOrderItemTravelUserID')"
|
:label="$ay.t('WorkOrderItemTravelUserID')"
|
||||||
:ref="
|
:ref="
|
||||||
@@ -312,7 +314,10 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<v-col
|
<v-col
|
||||||
v-if="form().showMe(this, 'WorkOrderItemTravelTaxRateSaleID')"
|
v-if="
|
||||||
|
form().showMe(this, 'WorkOrderItemTravelTaxRateSaleID') &&
|
||||||
|
!value.userIsRestrictedType
|
||||||
|
"
|
||||||
cols="12"
|
cols="12"
|
||||||
sm="6"
|
sm="6"
|
||||||
lg="4"
|
lg="4"
|
||||||
@@ -348,7 +353,10 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<v-col
|
<v-col
|
||||||
v-if="form().showMe(this, 'TravelPriceOverride')"
|
v-if="
|
||||||
|
form().showMe(this, 'TravelPriceOverride') &&
|
||||||
|
!value.userIsRestrictedType
|
||||||
|
"
|
||||||
cols="12"
|
cols="12"
|
||||||
sm="6"
|
sm="6"
|
||||||
lg="4"
|
lg="4"
|
||||||
@@ -764,7 +772,8 @@ export default {
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
this.form().showMe(this, "TravelCostViz") &&
|
this.form().showMe(this, "TravelCostViz") &&
|
||||||
this.value.userCanViewLaborOrTravelRateCosts
|
this.value.userCanViewLaborOrTravelRateCosts &&
|
||||||
|
!this.value.userIsRestrictedType
|
||||||
) {
|
) {
|
||||||
headers.push({
|
headers.push({
|
||||||
text: this.$ay.t("Cost"),
|
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({
|
headers.push({
|
||||||
text: this.$ay.t("ListPrice"),
|
text: this.$ay.t("ListPrice"),
|
||||||
align: "right",
|
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({
|
headers.push({
|
||||||
text: this.$ay.t("PriceOverride"),
|
text: this.$ay.t("PriceOverride"),
|
||||||
align: "right",
|
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({
|
headers.push({
|
||||||
text: this.$ay.t("Price"),
|
text: this.$ay.t("Price"),
|
||||||
align: "right",
|
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({
|
headers.push({
|
||||||
text: this.$ay.t("Tax"),
|
text: this.$ay.t("Tax"),
|
||||||
align: "left",
|
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({
|
headers.push({
|
||||||
text: this.$ay.t("NetPrice"),
|
text: this.$ay.t("NetPrice"),
|
||||||
align: "right",
|
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({
|
headers.push({
|
||||||
text: this.$ay.t("TaxAAmt"),
|
text: this.$ay.t("TaxAAmt"),
|
||||||
align: "right",
|
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({
|
headers.push({
|
||||||
text: this.$ay.t("TaxBAmt"),
|
text: this.$ay.t("TaxBAmt"),
|
||||||
align: "right",
|
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({
|
headers.push({
|
||||||
text: this.$ay.t("LineTotal"),
|
text: this.$ay.t("LineTotal"),
|
||||||
align: "right",
|
align: "right",
|
||||||
|
|||||||
Reference in New Issue
Block a user