You've already forked openaccounting-web
mirror of
https://github.com/openaccounting/oa-web.git
synced 2025-12-09 00:51:01 +13:00
Show account name on the dashboard's recent transactions
If a transaction description is brief, it is useful to provide context by showing the account name. Note: this commit isn't ideal since it doesn't show all the accounts involved for a given transaction. This might however be good enough for now.
This commit is contained in:
@@ -59,7 +59,8 @@
|
||||
{{recentTx.tx.date | datetz:"M/D":org.timezone}}
|
||||
</div>
|
||||
<div class="col-5 col-md-6 description">
|
||||
{{recentTx.tx.description}}
|
||||
<div class="primary">{{recentTx.tx.description}}</div>
|
||||
<div class="additional">{{recentTx.account.fullName}}</div>
|
||||
</div>
|
||||
<div class="col-4 col-md-4 amount" [ngClass]="{'negative': recentTx.split.amount > 0}">
|
||||
{{-recentTx.split.amount | currencyFormat:recentTx.account.precision:recentTx.account.currency}}
|
||||
|
||||
@@ -41,6 +41,19 @@
|
||||
.expanded .hidden {
|
||||
display: flex
|
||||
}
|
||||
.row {
|
||||
padding-bottom: 1em;
|
||||
.description {
|
||||
.primary:empty::after {
|
||||
content: ".";
|
||||
visibility: hidden;
|
||||
}
|
||||
.additional {
|
||||
font-size: small;
|
||||
color: $black;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
|
||||
Reference in New Issue
Block a user