This commit is contained in:
2021-05-21 17:44:36 +00:00
parent 3d1d18d8f2
commit d747918365
2 changed files with 22 additions and 9 deletions

View File

@@ -10,6 +10,7 @@
}"
:readonly="readonly"
:disabled="disabled"
:clearable="!readonly && canClear"
:label="label"
:rules="rules"
:error-messages="errorMessages"
@@ -40,7 +41,8 @@ export default {
readonly: { type: Boolean, default: false },
disabled: { type: Boolean, default: false },
errorMessages: { type: Array, default: null },
appendOuterIcon: { type: String, default: null }
appendOuterIcon: { type: String, default: null },
canClear: { type: Boolean, default: true }
},
computed: {
currencyValue() {

View File

@@ -392,6 +392,7 @@
value.items[activeWoItemIndex].labors[activeItemIndex]
.priceOverride
"
can-clear
:readonly="formState.readOnly || isDeleted"
:disabled="isDeleted"
:label="$ay.t('PriceOverride')"
@@ -409,10 +410,6 @@
form().decimalValid(
this,
`Items[${activeWoItemIndex}].labors[${activeItemIndex}].priceOverride`
),
form().required(
this,
`Items[${activeWoItemIndex}].labors[${activeItemIndex}].priceOverride`
)
]"
@input="
@@ -718,6 +715,14 @@ export default {
});
}
if (this.form().showMe(this, "LaborUnitOfMeasureViz")) {
headers.push({
text: this.$ay.t("UnitOfMeasure"),
align: "left",
value: "unitOfMeasureViz"
});
}
if (this.form().showMe(this, "LaborCost")) {
headers.push({
text: this.$ay.t("Cost"),
@@ -736,17 +741,17 @@ export default {
if (this.form().showMe(this, "LaborPrice")) {
headers.push({
text: this.$ay.t("Price"),
text: this.$ay.t("PriceOverride"),
align: "right",
value: "priceViz"
value: "priceOverride"
});
}
if (this.form().showMe(this, "LaborPrice")) {
headers.push({
text: this.$ay.t("PriceOverride"),
text: this.$ay.t("Price"),
align: "right",
value: "priceOverride"
value: "priceViz"
});
}
@@ -843,6 +848,7 @@ export default {
x.noChargeQuantity,
this.pvm.languageName
),
unitOfMeasureViz: x.unitOfMeasureViz,
costViz: window.$gz.locale.currencyLocalized(
x.costViz,
this.pvm.languageName,
@@ -875,6 +881,11 @@ export default {
this.pvm.languageName,
this.pvm.currencyName
),
netViz: window.$gz.locale.currencyLocalized(
x.netViz,
this.pvm.languageName,
this.pvm.currencyName
),
taxAViz: window.$gz.locale.currencyLocalized(
x.taxAViz,
this.pvm.languageName,