Vendor autopay re-instated.

This commit is contained in:
Bryce Covert
2020-11-16 19:28:04 -08:00
parent be1d5997b9
commit e53ee46b3c
4 changed files with 23 additions and 2 deletions

View File

@@ -98,3 +98,13 @@
first
:vendor-account-override/account)
(:vendor/default-account vendor)))
(defn automatically-paid-for-client-id? [vendor client-id]
(->>
(:vendor/automatically-paid-when-due vendor)
(filter
(fn [client]
(= (:db/id client)
client-id)))
first
boolean))