company 1099 works
This commit is contained in:
@@ -30,6 +30,15 @@
|
||||
`(with-cursor (get *current* ~field )
|
||||
~@rest))
|
||||
|
||||
(defmacro with-field-default [field default & rest]
|
||||
`(let [next-cursor# (get *current* ~field )
|
||||
next-cursor# (if (nil? @next-cursor#)
|
||||
(cursor/update! next-cursor# default)
|
||||
next-cursor#)]
|
||||
(with-cursor next-cursor#
|
||||
~@rest)))
|
||||
|
||||
|
||||
(defn field-name
|
||||
([] (field-name *current*))
|
||||
([cursor]
|
||||
|
||||
Reference in New Issue
Block a user