graphql used for invoices
This commit is contained in:
@@ -58,11 +58,11 @@
|
||||
[:th "Date"]
|
||||
[:th "Amount"]
|
||||
[:th]]]
|
||||
[:tbody (for [{:keys [vendor vendor-id potential-duplicate company-id customer-identifier invoice-number date total id] :as i} @invoices]
|
||||
^{:key (str company-id "-" invoice-number "-" date "-" total "-" id)}
|
||||
[:tbody (for [{:keys [vendor vendor-id potential-duplicate company customer-identifier invoice-number date total id] :as i} @invoices]
|
||||
^{:key id}
|
||||
[:tr
|
||||
[:td (:name (:vendor i))]
|
||||
(if company-id
|
||||
(if company
|
||||
[:td (:name (:company i))]
|
||||
[:td [:i.icon.fa.fa-warning {:title "potential duplicate"}]
|
||||
(str "'" customer-identifier "' doesn't match any known company")])
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
[:th "Invoice #"]
|
||||
[:th "Date"]
|
||||
[:th "Amount"]]]
|
||||
[:tbody (for [{:keys [company vendor invoice-number date total id] :as i} @invoices]
|
||||
^{:key (str (:id company) "-" invoice-number "-" date "-" total "-" id)}
|
||||
[:tbody (for [{:keys [company invoice-number date total id vendor] :as i} @invoices]
|
||||
^{:key (str company "-" invoice-number "-" date "-" total "-" id)}
|
||||
[:tr
|
||||
[:td (:name vendor)]
|
||||
[:td (:name company)]
|
||||
|
||||
Reference in New Issue
Block a user