huge number of changes to start making all usages of expense accounts dynamic.

This commit is contained in:
Bryce Covert
2019-04-12 15:39:32 -07:00
parent e64820d71a
commit b6e73f0bfb
21 changed files with 103 additions and 181 deletions

View File

@@ -4,8 +4,8 @@
[auto-ap.entities.shared :as shared]))
(s/def ::vendor-id string?)
(s/def ::expense-account-id int?)
(s/def ::account-id string?)
(s/def ::amount ::shared/money)
(s/def ::location string?)
(s/def ::invoices-expense-account (s/keys :opt-un [::vendor-id ::expense-account-id ::amount ::location]))
(s/def ::invoices-expense-account (s/keys :opt-un [::vendor-id ::account-id ::amount ::location]))

View File

@@ -16,12 +16,12 @@
(s/def ::primary-contact (s/nilable ::contact/contact))
(s/def ::secondary-contact (s/nilable ::contact/contact))
(s/def ::address (s/nilable ::address/address))
(s/def ::default-expense-account int?)
(s/def ::default-account-id string?)
(s/def ::code (s/nilable string?))
(s/def ::vendor (s/keys :req-un [::name
::default-expense-account]
::default-account-id]
:opt-un [::code
::id
::print-as