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

View File

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