you can now edit invoices.

This commit is contained in:
Bryce Covert
2018-07-25 16:01:36 -07:00
parent 2c4d8f9ded
commit 2cb540c1fa
6 changed files with 151 additions and 25 deletions

View File

@@ -63,6 +63,10 @@
(defn approve []
(j/update! (get-conn) :invoices {:imported true} [] ))
(defn update [v]
(j/update! (get-conn) :invoices v ["id = ?" (:id v)])
(get-by-id (:id v)))
(defn reject []
(j/delete! (get-conn) :invoices ["imported = false"]))