good s orting across the board.

This commit is contained in:
Bryce Covert
2019-05-04 20:05:35 -07:00
parent 1232033160
commit d63bb566dc
7 changed files with 42 additions and 38 deletions

View File

@@ -262,7 +262,8 @@
{{:keys [excel-rows]} :edn-params user :identity}
(assert-admin user)
(let [parsed-invoice-rows (parse-invoice-rows excel-rows)
existing-rows (->> (d-invoices/raw-graphql {})
existing-rows (->> (d-invoices/get-graphql {:count Integer/MAX_VALUE})
first
(filter (fn [i] (not= :invoice-status/voided (:invoice/status i))))
(map (fn [{:keys [:invoice/vendor :invoice/client :invoice/invoice-number]}]
[(:db/id vendor) (:db/id client) invoice-number]))