Pass only category Id as categories are not to be created on the fly

This commit is contained in:
2022-02-25 21:21:55 +00:00
parent 75b48be20d
commit 2d37ec147c
3 changed files with 9 additions and 15 deletions

View File

@ -16,7 +16,7 @@ const payload = computed(() => JSON.stringify({
Name: Transaction.Payee,
ID: Transaction.PayeeID,
},
category: Transaction.CategoryID,
categoryId: Transaction.CategoryID,
memo: Transaction.Memo,
amount: Transaction.Amount,
state: "Uncleared"

View File

@ -31,10 +31,7 @@ const payload = computed(() => JSON.stringify({
Name: TX.value.Payee,
ID: TX.value.PayeeID,
},
category: {
Name: TX.value.Category,
ID: TX.value.CategoryID,
},
categoryId: TX.value.CategoryID,
memo: TX.value.Memo,
amount: TX.value.Amount,
state: "Uncleared"