From 420a72692f1828b24e41868bb12f51cc6163137e Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 26 May 2021 13:50:50 +0000 Subject: [PATCH] --- .../src/components/work-order-item-parts.vue | 96 ++++++++++++------- 1 file changed, 63 insertions(+), 33 deletions(-) diff --git a/ayanova/src/components/work-order-item-parts.vue b/ayanova/src/components/work-order-item-parts.vue index 8586c2bc..0255ff5b 100644 --- a/ayanova/src/components/work-order-item-parts.vue +++ b/ayanova/src/components/work-order-item-parts.vue @@ -430,6 +430,7 @@ l.Add(new FormField { TKey = "WorkOrderItemPartPartSerialID", FieldKey = "WorkOr l.Add(new FormField { TKey = "WorkOrderItemPartPartWarehouseID", FieldKey = "WorkOrderItemPartServiceRateQuantity", TKeySection = "WorkOrderItemParts" }); l.Add(new FormField { TKey = "WorkOrderItemPartQuantity", FieldKey = "WorkOrderItemPartServiceRateID", TKeySection = "WorkOrderItemParts" }); l.Add(new FormField { TKey = "WorkOrderItemPartTaxPartSaleID", FieldKey = "WorkOrderItemPartServiceDetails", TKeySection = "WorkOrderItemParts" }); +l.Add(new FormField { TKey = "PartUPC", FieldKey = "PartUPC", TKeySection = "WorkOrderItemParts" }); l.Add(new FormField { TKey = "Cost", FieldKey = "PartCost", TKeySection = "WorkOrderItemParts" }); l.Add(new FormField { TKey = "ListPrice", FieldKey = "PartListPrice", TKeySection = "WorkOrderItemParts" }); l.Add(new FormField { TKey = "Price", FieldKey = "PartPriceViz", TKeySection = "WorkOrderItemParts" }); @@ -439,6 +440,35 @@ l.Add(new FormField { TKey = "NetPrice", FieldKey = "PartNetViz", TKeySection = l.Add(new FormField { TKey = "TaxAAmt", FieldKey = "PartTaxAViz", TKeySection = "WorkOrderItemParts" }); l.Add(new FormField { TKey = "TaxBAmt", FieldKey = "PartTaxBViz", TKeySection = "WorkOrderItemParts" }); l.Add(new FormField { TKey = "LineTotal", FieldKey = "PartLineTotalViz", TKeySection = "WorkOrderItemParts" }); + +{ + "0": { + "id": 33, + "concurrency": 8112668, + "description": null, + "serials": null, + "partId": 16, + "partViz": null, + upcViz:"adjkfadjkfak" + "partWarehouseId": 1, + "partWarehouseViz": "Default", + "quantity": 1, + "taxPartSaleId": null, + "taxPartSaleViz": null, + "cost": 13.166710885319247, + "listPrice": 15.800053062383098, + "priceOverride": null, + "unitOfMeasureViz": "each", + "priceViz": 15.800053062383098, + "netViz": 15.800053062383098, + "taxAViz": 0, + "taxBViz": 0, + "lineTotalViz": 15.800053062383098, + "isDirty": false, + "workOrderItemId": 17 + } +} + */ export default { created() { @@ -605,51 +635,51 @@ export default { */ let headers = []; - if (this.form().showMe(this, "WorkOrderItemPartServiceStartDate")) { + if (this.form().showMe(this, "WorkOrderItemPartPartSerialID")) { headers.push({ - text: this.$ay.t("WorkOrderItemPartServiceStartDate"), - align: "right", - value: "serviceStartDate" - }); - } - - if (this.form().showMe(this, "WorkOrderItemPartServiceStopDate")) { - headers.push({ - text: this.$ay.t("WorkOrderItemPartServiceStopDate"), - align: "right", - value: "serviceStopDate" - }); - } - - if (this.form().showMe(this, "WorkOrderItemPartServiceRateQuantity")) { - headers.push({ - text: this.$ay.t("WorkOrderItemPartServiceRateQuantity"), - align: "right", - value: "serviceRateQuantity" - }); - } - - if (this.form().showMe(this, "WorkOrderItemPartServiceRateID")) { - headers.push({ - text: this.$ay.t("WorkOrderItemPartServiceRateID"), + text: this.$ay.t("WorkOrderItemPartPartSerialID"), align: "left", - value: "serviceRateViz" + value: "partViz" }); } - if (this.form().showMe(this, "WorkOrderItemPartServiceDetails")) { + if (this.form().showMe(this, "WorkOrderItemPartPartWarehouseID")) { headers.push({ - text: this.$ay.t("WorkOrderItemPartServiceDetails"), + text: this.$ay.t("WorkOrderItemPartPartWarehouseID"), align: "left", - value: "serviceDetails" + value: "partWarehouseViz" }); } - if (this.form().showMe(this, "WorkOrderItemPartUserID")) { + if (this.form().showMe(this, "WorkOrderItemPartQuantity")) { headers.push({ - text: this.$ay.t("WorkOrderItemPartUserID"), + text: this.$ay.t("WorkOrderItemPartQuantity"), + align: "right", + value: "quantity" + }); + } + + if (this.form().showMe(this, "PartUPC")) { + headers.push({ + text: this.$ay.t("PartUPC"), align: "left", - value: "userViz" + value: "upcViz" + }); + } + + if (this.form().showMe(this, "WorkOrderItemPartDescription")) { + headers.push({ + text: this.$ay.t("WorkOrderItemPartDescription"), + align: "left", + value: "description" + }); + } + + if (this.form().showMe(this, "WorkOrderItemPartPartSerialID")) { + headers.push({ + text: this.$ay.t("WorkOrderItemPartPartSerialID"), + align: "left", + value: "serials" }); }