Tag each pending approval row with an INCOME / EXPENSE badge
With both kinds of entry sharing the Pending Approvals list, the row alone didn't tell the reviewer which direction the accounting goes. Adds a small green INCOME / red EXPENSE badge as a caption line above the description (so it doesn't compete with description wrapping), driven by an isIncomeEntry(entry) helper that reads the Beancount tag set the API already returns. Also drops the now-redundant orange pending-icon avatar — the card title already says these are pending, and the badge does the heavier lifting.
This commit is contained in:
parent
6a110545e2
commit
483e89163e
2 changed files with 9 additions and 5 deletions
|
|
@ -1642,6 +1642,9 @@ window.app = Vue.createApp({
|
|||
formatSats(amount) {
|
||||
return new Intl.NumberFormat().format(amount)
|
||||
},
|
||||
isIncomeEntry(entry) {
|
||||
return Array.isArray(entry.tags) && entry.tags.includes('income-entry')
|
||||
},
|
||||
formatFiat(amount, currency) {
|
||||
return new Intl.NumberFormat('en-US', {
|
||||
style: 'currency',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue