From 0de6075e6a73ebabb0c5f93e00e97c89ff13d137 Mon Sep 17 00:00:00 2001 From: Bryce Covert Date: Fri, 15 Jun 2018 17:26:56 -0700 Subject: [PATCH] show location. --- src/cljs/auto_ap/views/components/invoice_table.cljs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/cljs/auto_ap/views/components/invoice_table.cljs b/src/cljs/auto_ap/views/components/invoice_table.cljs index 1332fd5a..6ec12934 100644 --- a/src/cljs/auto_ap/views/components/invoice_table.cljs +++ b/src/cljs/auto_ap/views/components/invoice_table.cljs @@ -76,6 +76,12 @@ :sort-by sort-by :asc asc} "Date"] + [sorted-column {:on-sort opc + :style {:width "8em" :cursor "pointer"} + :sort-key "location" + :sort-by sort-by + :asc asc} + "Location"] [sorted-column {:on-sort opc :style {:width "8em" :cursor "pointer"} :sort-key "total" @@ -116,6 +122,7 @@ [:td (:name company)] [:td invoice-number] [:td (date->str date) ] + [:td (str/join ", " (set (map :location expense-accounts)))] [:td (gstring/format "$%.2f" total )] [:td (gstring/format "$%.2f" outstanding-balance )]