duplicates.

This commit is contained in:
Bryce Covert
2017-12-10 17:52:25 -08:00
parent 6f9a497061
commit f78292dc96
2 changed files with 17 additions and 8 deletions

View File

@@ -112,15 +112,18 @@
[:th "Customer"]
[:th "Invoice #"]
[:th "Date"]
[:th "Amount"]]]
[:tbody (for [{:keys [vendor customer-identifier invoice-number date total id] :as i} @invoices]
[:th "Amount"]
[:th]]]
[:tbody (for [{:keys [vendor potential-duplicate customer-identifier invoice-number date total id] :as i} @invoices]
^{:key (str customer-identifier "-" invoice-number "-" date "-" total "-" id)}
[:tr
[:tr
[:td vendor]
[:td customer-identifier]
[:td invoice-number]
[:td date]
[:td total]])]]
[:td total]
[:td (when potential-duplicate
[:i.icon.fa.fa-warning {:title "potential duplicate"}])]])]]
[:span "No pending invoices"]))]
(if (and (seq @invoices) (not (:loading @status)))
[:div.card-footer
@@ -279,4 +282,3 @@
[:a {:class "icon", :href "https://github.com/dansup/bulma-templates"}
[:i {:class "fa fa-github"}]]]]]]
[:div#dz-hidden]]))