From efc42459ecbe10d48b1a5e7dc3311c6eb933d326 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 14 Jul 2021 17:53:30 +0000 Subject: [PATCH] --- ayanova/src/components/work-order-item-expenses.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ayanova/src/components/work-order-item-expenses.vue b/ayanova/src/components/work-order-item-expenses.vue index b57ad04e..2041d6ed 100644 --- a/ayanova/src/components/work-order-item-expenses.vue +++ b/ayanova/src/components/work-order-item-expenses.vue @@ -492,11 +492,10 @@ export default { ].taxCodeViz = newName; }, newItem() { - let newIndex = this.value.items[this.activeWoItemIndex].expenses.length; - //#################################### IMPORTANT ################################################## - //NOTE: default values are critical and must match server validation ExpenseValidateAsync for restricted users + //#################################### IMPORTANT ################################################## + //NOTE: default values are critical and must match server validation ExpenseValidateAsync for restricted users //so that they are in agreement otherwise restricted users will never be able to create new records this.value.items[this.activeWoItemIndex].expenses.push({