This commit is contained in:
2021-05-11 13:33:54 +00:00
parent d81b61d1d4
commit 69d6147121

View File

@@ -691,7 +691,7 @@ export default {
headers.push({ headers.push({
text: this.$ay.t("WorkOrderItemLaborTaxRateSaleID"), text: this.$ay.t("WorkOrderItemLaborTaxRateSaleID"),
align: "left", align: "left",
value: "TaxCodeSaleViz" value: "taxCodeSaleViz"
}); });
} }
@@ -722,31 +722,46 @@ export default {
return headers; return headers;
}, },
itemList: function() { itemList: function() {
HERE NEXT, then actual form fields
return this.value.items[this.activeWoItemIndex].labors.map((x, i) => { return this.value.items[this.activeWoItemIndex].labors.map((x, i) => {
return { return {
index: i, index: i,
id: x.id, id: x.id,
name: x.name, serviceStartDate: window.$gz.locale.utcDateToShortDateAndTimeLocalized(
totalCost: window.$gz.locale.currencyLocalized( x.serviceStartDate,
x.totalCost, this.pvm.timeZoneName,
this.pvm.languageName,
this.pvm.hour12
),
serviceStopDate: window.$gz.locale.utcDateToShortDateAndTimeLocalized(
x.serviceStopDate,
this.pvm.timeZoneName,
this.pvm.languageName,
this.pvm.hour12
),
serviceRateQuantity: window.$gz.locale.decimalLocalized(
x.serviceRateQuantity,
this.pvm.languageName
),
serviceRateViz: x.serviceRateViz,
userViz: x.userViz,
noChargeQuantity: window.$gz.locale.decimalLocalized(
x.noChargeQuantity,
this.pvm.languageName
),
taxCodeSaleViz: taxCodeSaleViz,
manualDiscountPct: manualDiscountPct + "TODO PCT",
basePrice: window.$gz.locale.currencyLocalized(
x.basePrice,
this.pvm.languageName, this.pvm.languageName,
this.pvm.currencyName this.pvm.currencyName
), ),
chargeAmount: window.$gz.locale.currencyLocalized( price: window.$gz.locale.currencyLocalized(
x.chargeAmount, x.price,
this.pvm.languageName, this.pvm.languageName,
this.pvm.currencyName this.pvm.currencyName
), )
chargeToCustomer: x.chargeToCustomer,
taxPaid: window.$gz.locale.currencyLocalized(
x.taxPaid,
this.pvm.languageName,
this.pvm.currencyName
),
chargeTaxCodeViz: x.chargeTaxCodeViz,
reimburseUser: x.reimburseUser,
userViz: x.userViz
}; };
}); });
}, },