adding new invoices has validation.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
(s/def ::date ::shared/date)
|
||||
(s/def ::total ::shared/money)
|
||||
|
||||
(s/def ::invoice (s/keys :opt-un [::vendor-id
|
||||
(s/def ::invoice (s/keys :req-un [::vendor-id
|
||||
::company-id
|
||||
::invoice-number
|
||||
::date
|
||||
|
||||
Reference in New Issue
Block a user