Implement account editing and autocomplete

This commit is contained in:
2022-04-22 21:33:52 +00:00
committed by Gitea
parent 75a1839456
commit d22816dfd1
4 changed files with 32 additions and 0 deletions

View File

@ -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"

View File

@ -75,6 +75,7 @@ function getStatusSymbol() {
<TransactionEditRow
v-if="edit"
:transactionid="TX.ID"
:withAccount="withAccount"
@save="edit = false"
/>
</template>