Files
openfoodnetwork/spec/javascripts
David Cook da82b12ca7 Prevent negative values for stock on hand
Using browser validation. I didn't use model validation because the on_hand pseudo-attribute doesn't support it.

But.. it turned out to  not be so simple. Browser validation can't work if the field is hidden, and breaks the javascript. So now I made the javascript smarter, and the end result is more helpful I think.
2024-02-01 11:18:15 +11:00
..
2023-11-13 09:29:31 +01:00
2023-02-14 21:28:53 +00:00