You've already forked openaccounting-web
forked from cybercinch/openaccounting-web
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}}
|
{{recentTx.tx.date | datetz:"M/D":org.timezone}}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-5 col-md-6 description">
|
<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>
|
||||||
<div class="col-4 col-md-4 amount" [ngClass]="{'negative': recentTx.split.amount > 0}">
|
<div class="col-4 col-md-4 amount" [ngClass]="{'negative': recentTx.split.amount > 0}">
|
||||||
{{-recentTx.split.amount | currencyFormat:recentTx.account.precision:recentTx.account.currency}}
|
{{-recentTx.split.amount | currencyFormat:recentTx.account.precision:recentTx.account.currency}}
|
||||||
|
|||||||
@@ -41,6 +41,19 @@
|
|||||||
.expanded .hidden {
|
.expanded .hidden {
|
||||||
display: flex
|
display: flex
|
||||||
}
|
}
|
||||||
|
.row {
|
||||||
|
padding-bottom: 1em;
|
||||||
|
.description {
|
||||||
|
.primary:empty::after {
|
||||||
|
content: ".";
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
.additional {
|
||||||
|
font-size: small;
|
||||||
|
color: $black;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
|
|||||||
Reference in New Issue
Block a user