diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt
index 34127d49..6d1f2d6b 100644
--- a/ayanova/devdocs/todo.txt
+++ b/ayanova/devdocs/todo.txt
@@ -267,6 +267,14 @@ TODO: 1 BETA DOCS:
- At the server in RequiredFieldsValidator.cs wrap line 87 and maybe the above in a try catch block to properly handle and issue an error if the names don't match
rather than bombing. maybe do this first so can catch the ones that slip through
+ TODO ACTUAL FOR THIS
+ Errors returned *MUST* always be the model property because the server and biz rules will always use that, currently when I started to change it I didn't realize how important that was and
+ Used the fieldkey/transkey in the form server errors but that is incorrect.
+ Also the custom fields validation is returning the form key over the model but it should be the other way around, modelkey first if found or secondarily formkey as it's assumed the form key *is* the same as the model key
+ So, the fix is to go back through all the wo quote and when I get to it PM forms and make sure the custom required valiation issues the model key and that the form field servererrors code specifies the model key as well
+ (which is how it was basically)
+
+
- 1 todo: Search limited to a type is *not* working, it just returns all results, search from a Customer for example and you will see all object results
- 1 todo:
diff --git a/ayanova/src/components/quote-item-labors.vue b/ayanova/src/components/quote-item-labors.vue
index 333be871..5834345c 100644
--- a/ayanova/src/components/quote-item-labors.vue
+++ b/ayanova/src/components/quote-item-labors.vue
@@ -110,7 +110,7 @@
:error-messages="
form().serverErrors(
this,
- `Items[${activeWoItemIndex}].labors[${activeItemIndex}].serviceStartDate`
+ `Items[${activeWoItemIndex}].labors[${activeItemIndex}].WorkOrderItemLaborServiceStartDate`
)
"
@input="
@@ -150,7 +150,7 @@
:error-messages="
form().serverErrors(
this,
- `Items[${activeWoItemIndex}].labors[${activeItemIndex}].serviceStopDate`
+ `Items[${activeWoItemIndex}].labors[${activeItemIndex}].WorkOrderItemLaborServiceStopDate`
)
"
@input="
@@ -229,7 +229,7 @@
:error-messages="
form().serverErrors(
this,
- `Items[${activeWoItemIndex}].labors[${activeItemIndex}].serviceRateId`
+ `Items[${activeWoItemIndex}].labors[${activeItemIndex}].WorkOrderItemLaborServiceRateID`
)
"
@input="
@@ -267,7 +267,7 @@
:error-messages="
form().serverErrors(
this,
- `Items[${activeWoItemIndex}].labors[${activeItemIndex}].userId`
+ `Items[${activeWoItemIndex}].labors[${activeItemIndex}].WorkOrderItemLaborUserID`
)
"
@input="
@@ -349,7 +349,7 @@
:error-messages="
form().serverErrors(
this,
- `Items[${activeWoItemIndex}].labors[${activeItemIndex}].taxCodeSaleId`
+ `Items[${activeWoItemIndex}].labors[${activeItemIndex}].WorkOrderItemLaborTaxRateSaleID`
)
"
@input="
diff --git a/ayanova/src/components/quote-item-parts.vue b/ayanova/src/components/quote-item-parts.vue
index 41079c51..b4fa5fb9 100644
--- a/ayanova/src/components/quote-item-parts.vue
+++ b/ayanova/src/components/quote-item-parts.vue
@@ -96,13 +96,7 @@
}}$ayiTrashRestoreAlt
-
+
-
+
-
+
{{ $ay.t("Undelete")
}}$ayiTrashRestoreAlt
-
+
@@ -321,7 +327,7 @@
:error-messages="
form().serverErrors(
this,
- `items[${activeItemIndex}].workOrderItemStatusId`
+ `items[${activeItemIndex}].WorkOrderItemWorkOrderStatusID`
)
"
data-cy="workOrderItemStatusId"
@@ -377,7 +383,7 @@
:error-messages="
form().serverErrors(
this,
- `items[${activeItemIndex}].workOrderItemPriorityId`
+ `items[${activeItemIndex}].WorkOrderItemPriorityID`
)
"
data-cy="workOrderItemPriorityId"
@@ -450,7 +456,10 @@
:readonly="formState.readOnly"
data-cy="tags"
:error-messages="
- form().serverErrors(this, `items[${activeItemIndex}].tags`)
+ form().serverErrors(
+ this,
+ `items[${activeItemIndex}].WorkOrderItemTags`
+ )
"
@input="fieldValueChanged('tags')"
>
diff --git a/ayanova/src/components/work-order-header.vue b/ayanova/src/components/work-order-header.vue
index bec3f8c8..05fd07e4 100644
--- a/ayanova/src/components/work-order-header.vue
+++ b/ayanova/src/components/work-order-header.vue
@@ -126,7 +126,7 @@
$ayiTrashRestoreAlt
-
+