added ability to void invoices.

This commit is contained in:
Bryce Covert
2018-07-25 16:28:24 -07:00
parent 2cb540c1fa
commit 581e5e8798
6 changed files with 69 additions and 5 deletions

View File

@@ -64,7 +64,7 @@
(j/update! (get-conn) :invoices {:imported true} [] ))
(defn update [v]
(j/update! (get-conn) :invoices v ["id = ?" (:id v)])
(j/update! (get-conn) :invoices (clj->db v) ["id = ?" (:id v)])
(get-by-id (:id v)))
(defn reject []