bank accounts can now have locations.
This commit is contained in:
@@ -138,8 +138,8 @@
|
||||
:transaction/amount (:transaction/amount transaction)}
|
||||
transaction-rule
|
||||
|
||||
;; TODO use bank account locations as well
|
||||
(-> transaction :transaction/client :client/locations)))]
|
||||
(or (-> transaction :transaction/bank-account :bank-account/locations)
|
||||
(-> transaction :transaction/client :client/locations))))]
|
||||
(map (fn [x] [:db/retractEntity (:db/id x)] )
|
||||
(:transaction/accounts transaction)))))
|
||||
(-> (d-transactions/get-by-id transaction_id)
|
||||
|
||||
Reference in New Issue
Block a user