Commit fff7f65e authored by Johannes Knödtel's avatar Johannes Knödtel 🎶
Browse files

fix wrong digit numbers in decimal-ok? validators

parent c474ea9d
......@@ -31,15 +31,15 @@
'(:food_name [v/required v/string string-length-ok?]
:comment [v/required v/string string-length-ok?]))
~@(if (properties :quantity)
'(:quantity [v/required v/positive [decimal-ok? 5 1]]))
'(:quantity [v/required v/positive [decimal-ok? 4 1]]))
~@(if (properties :old-order)
'(:old_customer [v/required v/string string-length-ok?]
:old_food_name [v/required v/string string-length-ok?]
:old_comment [v/required v/string string-length-ok?]))
~@(if (properties :purchase)
'(:ammount_per_package [v/required v/positive [decimal-ok? 5 1]]
'(:ammount_per_package [v/required v/positive [decimal-ok? 4 1]]
:number_of_packages [v/required v/positive v/integer]
:package_price [v/required v/positive [decimal-ok? 5 2]]))
:package_price [v/required v/positive [decimal-ok? 3 2]]))
~@(if (properties :session)
'(:session [v/required v/integer v/positive]))
~@(if (properties :session-name)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment