|
|
@@ -4,6 +4,7 @@ import { useBudgetsStore } from "../stores/budget";
|
|
|
|
import { Transaction } from "../stores/budget-account";
|
|
|
|
import { Transaction } from "../stores/budget-account";
|
|
|
|
import Currency from "./Currency.vue";
|
|
|
|
import Currency from "./Currency.vue";
|
|
|
|
import TransactionEditRow from "./TransactionEditRow.vue";
|
|
|
|
import TransactionEditRow from "./TransactionEditRow.vue";
|
|
|
|
|
|
|
|
import { formatDate } from "../date";
|
|
|
|
|
|
|
|
|
|
|
|
const props = defineProps<{
|
|
|
|
const props = defineProps<{
|
|
|
|
transaction: Transaction,
|
|
|
|
transaction: Transaction,
|
|
|
@@ -19,7 +20,7 @@ const CurrentBudgetID = computed(()=> useBudgetsStore().CurrentBudgetID);
|
|
|
|
<tr v-if="!edit" class="{{new Date(transaction.Date) > new Date() ? 'future' : ''}}"
|
|
|
|
<tr v-if="!edit" class="{{new Date(transaction.Date) > new Date() ? 'future' : ''}}"
|
|
|
|
:class="[index % 6 < 3 ? 'bg-gray-300' : 'bg-gray-100']">
|
|
|
|
:class="[index % 6 < 3 ? 'bg-gray-300' : 'bg-gray-100']">
|
|
|
|
<!--:class="[index % 6 < 3 ? index % 6 === 1 ? 'bg-gray-400' : 'bg-gray-300' : index % 6 !== 4 ? 'bg-gray-100' : '']">-->
|
|
|
|
<!--:class="[index % 6 < 3 ? index % 6 === 1 ? 'bg-gray-400' : 'bg-gray-300' : index % 6 !== 4 ? 'bg-gray-100' : '']">-->
|
|
|
|
<td>{{ transaction.Date.substring(0, 10) }}</td>
|
|
|
|
<td>{{ formatDate(transaction.Date) }}</td>
|
|
|
|
<td>{{ transaction.TransferAccount ? "Transfer : " + transaction.TransferAccount : transaction.Payee }}</td>
|
|
|
|
<td>{{ transaction.TransferAccount ? "Transfer : " + transaction.TransferAccount : transaction.Payee }}</td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
{{ transaction.CategoryGroup ? transaction.CategoryGroup + " : " + transaction.Category : "" }}
|
|
|
|
{{ transaction.CategoryGroup ? transaction.CategoryGroup + " : " + transaction.Category : "" }}
|
|
|
|