From 57f6628d0aacebd36e793f6774dba3b909cf8358 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 26 May 2021 15:45:29 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 3 +- .../src/components/work-order-item-labors.vue | 6 - .../src/components/work-order-item-parts.vue | 239 ++++-------------- .../components/work-order-item-travels.vue | 6 - 4 files changed, 57 insertions(+), 197 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 123a8d6e..b656e635 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -347,7 +347,8 @@ CURRENTLY DOING: workorderitem part, front end ORDER: parts, part requests, loans, units, outside service todo: test all Override column header visibility, still funky after fix earlier I bet - +todo: viz fields display in edit part of form when only one record, but hide when multiple as they show in the table instead?? + show as a line where the table would be?? todo: "DispatchFull" and "DispatchLimited" roles MUST be renamed to "ServiceFull" and "ServiceLimited" to match other roles and intent dispatch is a subset of a service manager job Rename at both ends and all translations and docs as well. diff --git a/ayanova/src/components/work-order-item-labors.vue b/ayanova/src/components/work-order-item-labors.vue index 50a7dda4..b4e2e1c3 100644 --- a/ayanova/src/components/work-order-item-labors.vue +++ b/ayanova/src/components/work-order-item-labors.vue @@ -55,12 +55,6 @@ :show-select="$vuetify.breakpoint.xs" single-select > - diff --git a/ayanova/src/components/work-order-item-parts.vue b/ayanova/src/components/work-order-item-parts.vue index 94f3b431..d33c22f8 100644 --- a/ayanova/src/components/work-order-item-parts.vue +++ b/ayanova/src/components/work-order-item-parts.vue @@ -55,12 +55,6 @@ :show-select="$vuetify.breakpoint.xs" single-select > - @@ -75,80 +69,7 @@ > - - - - - - - - - + > - - - - @@ -425,12 +297,12 @@ /* XXXeslint-disable */ //////////////////////////////////////////////////////////////////////////////////////////////////////////// /* -l.Add(new FormField { TKey = "WorkOrderItemPartDescription", FieldKey = "WorkOrderItemPartServiceStartDate", TKeySection = "WorkOrderItemParts" }); +l.Add(new FormField { TKey = "WorkOrderItemPartDescription", FieldKey = "WorkOrderItemPartDescription", TKeySection = "WorkOrderItemParts" }); l.Add(new FormField { TKey = "WorkOrderItemPartPartSerialID", FieldKey = "WorkOrderItemPartPartSerialID", TKeySection = "WorkOrderItemParts" }); -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 = "WorkOrderItemPartPartWarehouseID", FieldKey = "WorkOrderItemPartPartWarehouseID", TKeySection = "WorkOrderItemParts" }); +l.Add(new FormField { TKey = "WorkOrderItemPartQuantity", FieldKey = "WorkOrderItemPartQuantity", TKeySection = "WorkOrderItemParts" }); +l.Add(new FormField { TKey = "WorkOrderItemPartTaxPartSaleID", FieldKey = "WorkOrderItemPartTaxPartSaleID", 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" }); @@ -440,7 +312,6 @@ 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, @@ -502,20 +373,20 @@ export default { } }, methods: { - userChange(newName) { + warehouseChange(newName) { this.value.items[this.activeWoItemIndex].parts[ this.activeItemIndex - ].userViz = newName; + ].partWarehouseViz = newName; }, - rateChange(newName) { + partChange(newName) { this.value.items[this.activeWoItemIndex].parts[ this.activeItemIndex - ].serviceRateViz = newName; + ].partViz = newName; }, taxCodeChange(newName) { this.value.items[this.activeWoItemIndex].parts[ this.activeItemIndex - ].taxCodeSaleViz = newName; + ].taxPartSaleViz = newName; }, newItem() { let newIndex = this.value.items[this.activeWoItemIndex].parts.length; @@ -627,9 +498,9 @@ export default { */ let headers = []; - if (this.form().showMe(this, "WorkOrderItemPartPartSerialID")) { + if (this.form().showMe(this, "WorkOrderItemPartPartID")) { headers.push({ - text: this.$ay.t("WorkOrderItemPartPartSerialID"), + text: this.$ay.t("WorkOrderItemPartPartID"), align: "left", value: "partViz" }); diff --git a/ayanova/src/components/work-order-item-travels.vue b/ayanova/src/components/work-order-item-travels.vue index d647c63d..50e040ec 100644 --- a/ayanova/src/components/work-order-item-travels.vue +++ b/ayanova/src/components/work-order-item-travels.vue @@ -57,12 +57,6 @@ :show-select="$vuetify.breakpoint.xs" single-select > -