various fixes.

This commit is contained in:
Bryce Covert
2020-10-16 14:20:51 -07:00
parent 9c34a188fc
commit 8c746e2100
7 changed files with 47 additions and 23 deletions

View File

@@ -308,9 +308,10 @@
:journal-entry/line-items
(mapv (fn [ea]
(when-not (get
(get all-client-locations (:client_code entry))
(:location ea))
(when (and (not (get
(get all-client-locations (:client_code entry))
(:location ea)))
(not= "A" (:location ea)))
(throw (ex-info (str "Location '" (:location ea) "' not found.")
{:status :error})))
(when (and (<= (:debit ea 0.0) 0.0)