ESLINT 3
This commit is contained in:
parent
657a647813
commit
5e3c729605
@ -8,8 +8,8 @@ import Input from "./Input.vue";
|
||||
import Button from "./SimpleButton.vue";
|
||||
|
||||
const props = defineProps<{
|
||||
transactionid: string
|
||||
withAccount: bool
|
||||
transactionid: string,
|
||||
withAccount: boolean,
|
||||
}>()
|
||||
|
||||
const emit = defineEmits(["save"]);
|
||||
@ -41,52 +41,25 @@ function saveTransaction(e: MouseEvent) {
|
||||
<template>
|
||||
<tr>
|
||||
<td class="text-sm">
|
||||
<DateInput
|
||||
v-model="TX.Date"
|
||||
class="border-b-2 border-black"
|
||||
/>
|
||||
<DateInput v-model="TX.Date" class="border-b-2 border-black" />
|
||||
</td>
|
||||
<td v-if="withAccount">
|
||||
<Autocomplete
|
||||
v-model:text="TX.Account"
|
||||
v-model:id="TX.AccountID"
|
||||
model="accounts"
|
||||
/>
|
||||
<Autocomplete v-model:text="TX.Account" v-model:id="TX.AccountID" model="accounts" />
|
||||
</td>
|
||||
<td>
|
||||
<Autocomplete
|
||||
v-model:text="TX.Payee"
|
||||
v-model:id="TX.PayeeID"
|
||||
v-model:type="payeeType"
|
||||
model="payees"
|
||||
/>
|
||||
<Autocomplete v-model:text="TX.Payee" v-model:id="TX.PayeeID" v-model:type="payeeType" model="payees" />
|
||||
</td>
|
||||
<td>
|
||||
<Autocomplete
|
||||
v-model:text="TX.Category"
|
||||
v-model:id="TX.CategoryID"
|
||||
model="categories"
|
||||
/>
|
||||
<Autocomplete v-model:text="TX.Category" v-model:id="TX.CategoryID" model="categories" />
|
||||
</td>
|
||||
<td>
|
||||
<Input
|
||||
v-model="TX.Memo"
|
||||
class="block w-full border-b-2 border-black"
|
||||
type="text"
|
||||
/>
|
||||
<Input v-model="TX.Memo" class="block w-full border-b-2 border-black" type="text" />
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<Input
|
||||
v-model="TX.Amount"
|
||||
class="text-right block w-full border-b-2 border-black"
|
||||
type="currency"
|
||||
/>
|
||||
<Input v-model="TX.Amount" class="text-right block w-full border-b-2 border-black" type="currency" />
|
||||
</td>
|
||||
<td>
|
||||
<Button
|
||||
class="bg-blue-500"
|
||||
@click="saveTransaction"
|
||||
>
|
||||
<Button class="bg-blue-500" @click="saveTransaction">
|
||||
Save
|
||||
</Button>
|
||||
</td>
|
||||
|
@ -24,7 +24,9 @@ const TX = ref<Transaction>({
|
||||
ID: "",
|
||||
Status: "Uncleared",
|
||||
TransferAccount: "",
|
||||
Reconciled: false
|
||||
Reconciled: false,
|
||||
Account: "",
|
||||
AccountID: "",
|
||||
});
|
||||
|
||||
const payeeType = ref<string|undefined>(undefined);
|
||||
|
@ -11,7 +11,7 @@ import Checkbox from "./Checkbox.vue";
|
||||
const props = defineProps<{
|
||||
transactionid: string,
|
||||
index: number,
|
||||
withAccount: bool,
|
||||
withAccount: boolean,
|
||||
}>();
|
||||
|
||||
const edit = ref(false);
|
||||
|
@ -142,8 +142,9 @@ function createReconcilationTransaction() {
|
||||
<TransactionRow
|
||||
v-for="transaction in dayTransactions"
|
||||
:key="transaction.ID"
|
||||
:transactionid="transaction.ID"
|
||||
:index="index"
|
||||
:transactionid="transaction.ID"
|
||||
:with-account="false"
|
||||
/>
|
||||
</template>
|
||||
</table>
|
||||
|
@ -56,23 +56,6 @@ onMounted(() => {
|
||||
:index="index"
|
||||
/>
|
||||
</table>
|
||||
<div class="md:hidden">
|
||||
<Modal @submit="submitModal">
|
||||
<template #placeholder>
|
||||
<Button
|
||||
class="fixed right-4 bottom-4 font-bold text-lg bg-blue-500 py-2"
|
||||
>
|
||||
+
|
||||
</Button>
|
||||
</template>
|
||||
<TransactionInputRow
|
||||
ref="modalInputRow"
|
||||
class="flex flex-col w-full h-full top-0"
|
||||
:budgetid="budgetid"
|
||||
:accountid="accountid"
|
||||
/>
|
||||
</Modal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
|
@ -24,6 +24,7 @@ export interface Transaction {
|
||||
PayeeID: string | undefined;
|
||||
Amount: number;
|
||||
Reconciled: boolean;
|
||||
Account: string;
|
||||
AccountID: string;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user