backend/views/transactions/listTransactions.pug
2023-12-19 09:12:42 +01:00

22 lines
664 B
Plaintext

extends ./transactions.pug
block content
table(class=`${cssClass}`)
thead
th ID
th Date
th Description
th Category
th Account
th.right Amount
tbody
each transaction in transactions
tr(class=`${transaction.Type}`)
td=transaction.TransactionID
td=transaction.Date2
td=transaction.Description
td
a(href=`/transactions/cat/${transaction.Category.CategoryID}`)=transaction.Category.Name
td
a(href=`/transactions/acc/${transaction.Account.AccountID}`)=transaction.Account.Name
td(class=`${transaction.Type} amount` )=transaction.Amount