made the invoice form work like the other one.

This commit is contained in:
Bryce Covert
2019-04-29 20:07:28 -07:00
parent 3902900095
commit 20f8bfe921
3 changed files with 182 additions and 232 deletions

View File

@@ -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]))