hotfix
This commit is contained in:
@@ -316,7 +316,8 @@
|
|||||||
invoices-grouped-by-vendor (group-by (comp :db/id :invoice/vendor) invoices)
|
invoices-grouped-by-vendor (group-by (comp :db/id :invoice/vendor) invoices)
|
||||||
bank-account (d-bank-accounts/get-by-id bank-account-id)
|
bank-account (d-bank-accounts/get-by-id bank-account-id)
|
||||||
_ (validate-belonging client-id invoices bank-account)
|
_ (validate-belonging client-id invoices bank-account)
|
||||||
_ (when (nil? (:bank-account/check-number bank-account))
|
_ (when (and (nil? (:bank-account/check-number bank-account))
|
||||||
|
(= type :payment-type/check))
|
||||||
(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.")]
|
(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
|
(throw (ex-info message
|
||||||
{:validation-error message}))))
|
{:validation-error message}))))
|
||||||
|
|||||||
Reference in New Issue
Block a user