f
This commit is contained in:
@@ -33,7 +33,7 @@
|
|||||||
<th scope="row"><span>Comment</span></th>
|
<th scope="row"><span>Comment</span></th>
|
||||||
|
|
||||||
<th scope="row"><span>Event</span></th>
|
<th scope="row"><span>Event</span></th>
|
||||||
<th scope="row" v-for="item in transactions[0].transactionItems">
|
<th scope="row" v-for="item in transactions[0].items">
|
||||||
<span>{{ item.userAccount?.name }}</span>
|
<span>{{ item.userAccount?.name }}</span>
|
||||||
</th>
|
</th>
|
||||||
<th scope="row"></th>
|
<th scope="row"></th>
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
}}</router-link>
|
}}</router-link>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td v-for="item in transaction.transactionItems">{{ item.amount }}</td>
|
<td v-for="item in transaction.items">{{ item.amount }}</td>
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<router-link :to="{ name: 'TransactionView', params: { transactionId: transaction.id } }" custom v-slot="{ navigate }">
|
<router-link :to="{ name: 'TransactionView', params: { transactionId: transaction.id } }" custom v-slot="{ navigate }">
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ export interface ITransaction {
|
|||||||
comment?: string | null;
|
comment?: string | null;
|
||||||
event?: IEvent | null;
|
event?: IEvent | null;
|
||||||
transactionItems?: ITransactionItem[] | [];
|
transactionItems?: ITransactionItem[] | [];
|
||||||
|
items?: ITransactionItem[] | [];
|
||||||
}
|
}
|
||||||
|
|
||||||
export class Transaction implements ITransaction {
|
export class Transaction implements ITransaction {
|
||||||
@@ -18,6 +19,7 @@ export class Transaction implements ITransaction {
|
|||||||
public date?: Date | null,
|
public date?: Date | null,
|
||||||
public comment?: string | null,
|
public comment?: string | null,
|
||||||
public event?: IEvent | null,
|
public event?: IEvent | null,
|
||||||
|
public items?: ITransactionItem[] | [],
|
||||||
public transactionItems?: ITransactionItem[] | [],
|
public transactionItems?: ITransactionItem[] | [],
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user