Implement account editing and autocomplete

This commit is contained in:
jacob1123 committed 2022-04-22 21:33:52 +00:00
1 parent 234549cc3b
commit ee4fe1052d
4 files changed
+32

No files matched your search

@@ -9,6 +9,7 @@ import Button from "./SimpleButton.vue";
const props = defineProps<{
transactionid: string
withAccount: bool
}>()
const emit = defineEmits(["save"]);
@@ -45,6 +46,13 @@ function saveTransaction(e: MouseEvent) {
class="border-b-2 border-black"
/>
</td>
<td v-if="withAccount">
<Autocomplete
v-model:text="TX.Account"
v-model:id="TX.AccountID"
model="accounts"
/>
</td>
<td>
<Autocomplete
v-model:text="TX.Payee"
+1
View File
@@ -75,6 +75,7 @@ function getStatusSymbol() {
<TransactionEditRow
v-if="edit"
:transactionid="TX.ID"
:withAccount="withAccount"
@save="edit = false"
/>
</template>