progress on making check tests work.
This commit is contained in:
@@ -491,7 +491,8 @@
|
||||
(defn void-payment [context {id :payment_id} _]
|
||||
(let [check (d-checks/get-by-id id)]
|
||||
(assert (or (= :payment-status/pending (:payment/status check))
|
||||
(#{:payment-type/cash :payment-type/debit :payment-type/balance-credit} (:payment/type check))))
|
||||
(#{:payment-type/cash :payment-type/debit :payment-type/balance-credit} (:payment/type check)))
|
||||
(pr-str check))
|
||||
(assert-can-see-client (:id context) (:db/id (:payment/client check)))
|
||||
(assert-not-locked (:db/id (:payment/client check)) (:payment/date check))
|
||||
(let [removing-payments (mapcat (fn [x]
|
||||
|
||||
Reference in New Issue
Block a user