made the invoice form work like the other one.
This commit is contained in:
@@ -2,17 +2,17 @@
|
||||
(:require [clojure.spec.alpha :as s]
|
||||
[auto-ap.entities.shared :as shared]))
|
||||
|
||||
(s/def ::vendor-id string?)
|
||||
(s/def ::vendor map?)
|
||||
(s/def ::vendor-name string?)
|
||||
(s/def ::client-id string?)
|
||||
(s/def ::client map?)
|
||||
(s/def ::invoice-number ::shared/required-identifier)
|
||||
(s/def ::date ::shared/date)
|
||||
(s/def ::total ::shared/money)
|
||||
|
||||
(s/def ::invoice (s/keys :req-un [::client-id
|
||||
(s/def ::invoice (s/keys :req-un [::client
|
||||
::invoice-number
|
||||
::date
|
||||
::vendor-id
|
||||
::vendor
|
||||
::total]
|
||||
:opt-un [
|
||||
::vendor-name]))
|
||||
|
||||
Reference in New Issue
Block a user