huge number of changes to start making all usages of expense accounts dynamic.
This commit is contained in:
@@ -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]))
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user