In the event of a check number, do not rough match.

This commit is contained in:
2024-06-07 20:04:47 -07:00
parent 2801c1469e
commit 15674bf5be

View File

@@ -39,19 +39,18 @@
nil nil
(:transaction/payment (d-transactions/get-by-id [:transaction/id #_{:clj-kondo/ignore [:unresolved-var]} (:transaction/payment (d-transactions/get-by-id [:transaction/id #_{:clj-kondo/ignore [:unresolved-var]}
(di/sha-256 (str id))])) (di/sha-256 (str id))]))
nil nil
check-number check-number
(or (-> (d-checks/get-graphql {:client-id client-id (-> (d-checks/get-graphql {:client-id client-id
:clients [client-id] :clients [client-id]
:bank-account-id bank-account-id :bank-account-id bank-account-id
:check-number check-number :check-number check-number
:amount (- amount) :amount (- amount)
:status :payment-status/pending}) :status :payment-status/pending})
first first
first) first)
(rough-match client-id bank-account-id amount))
:else :else
(rough-match client-id bank-account-id amount))) (rough-match client-id bank-account-id amount)))