adds client label and allows sorting by date, status, amount.

This commit is contained in:
Bryce
2024-08-30 09:05:40 -07:00
parent 3b410cf200
commit ef6f0aef7d
2 changed files with 5 additions and 4 deletions

View File

@@ -393,11 +393,12 @@
check-number))}
{:key "status"
:name "Status"
:sort-key "status"
:render (fn [{:payment/keys [status]}]
(condp = status
:payment-status/cleared
(com/pill {:color :primary} "cleared")
:payment-status/pending
(com/pill {:color :secondary} "pending")
:payment-status/voided
@@ -406,10 +407,12 @@
""))}
{:key "date"
:name "Date"
:sort-key "date"
:show-starting "lg"
:render (fn [{:payment/keys [date]}]
(some-> date (atime/unparse-local atime/normal-date)))}
{:key "amount"
:sort-key "amount"
:name "Amount"
:render (fn [{:payment/keys [amount]}]
(some->> amount (format "$%.2f")))}