From a11473be795c26eb2a755faab12decd9edfe7c00 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 15 Apr 2021 21:13:43 +0000 Subject: [PATCH] --- ayanova/src/api/gzform.js | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/ayanova/src/api/gzform.js b/ayanova/src/api/gzform.js index e75de4a8..0268b197 100644 --- a/ayanova/src/api/gzform.js +++ b/ayanova/src/api/gzform.js @@ -706,20 +706,8 @@ export default { //Might be an error, check if collectionName is in error collection //this is what we're dealing with // { "code": "2200", "details": [ { "message": "LT:PurchaseOrderReceiptItemQuantityReceivedErrorInvalid", "target": "Items[0].QuantityReceived", "error": "2203" } ], "message": "ErrorAPI2200" } - //and this: target: "Items[3].scheduledUsers[1].EstimatedQuantity" - - // let rowErrorTargetStart = `${collectionName}[${rowIndex}].`.toLowerCase(); - // console.log("childRowHasError", { - // rowErrorTargetStart: rowErrorTargetStart, - // collectionName: collectionName, - // rowIndex: rowIndex - // }); - - // { - // "rowErrorTargetStart": "scheduledusers[1].", - // "collectionName": "ScheduledUsers", - // "rowIndex": 1 - // } + //or multilayered like this: target: "Items[3].scheduledUsers[1].EstimatedQuantity" + //so set "path" accordingly easy peasy, such error, so wow //filter in items that start with the row collection name and index provided return vm.formState.serverError.details.some(function(o) {