fixes
This commit is contained in:
@@ -316,6 +316,10 @@
|
||||
invoices-grouped-by-vendor (group-by (comp :db/id :invoice/vendor) invoices)
|
||||
bank-account (d-bank-accounts/get-by-id bank-account-id)
|
||||
_ (validate-belonging client-id invoices bank-account)
|
||||
_ (when (nil? (:bank-account/check-number bank-account))
|
||||
(let [message (str "The bank account " (:bank-account/name bank-account) " does not have a starting check number. Please ask the integreat staff to initialize it.")]
|
||||
(throw (ex-info message
|
||||
{:validation-error message}))))
|
||||
_ (if (dollars-0? (reduce + 0.0 (filter
|
||||
#(>= % 0.0)
|
||||
(map :amount invoice-payments))))
|
||||
|
||||
Reference in New Issue
Block a user