inventree/inventree-app

Purchase Price can not be empty when creating new stock item

Closed this issue · 3 comments

When creating a new stock item the purchase price can not be empty and defaults to 0 which is not desirable.

Image

Tested on latest master branch (6c0b3cc)

@cbenhagen thanks for reporting - fix incoming in #539

Thanks @SchrodingersGat! #539 should solve the first part of this issue. I should have maybe created a second one for nullable fields defaulting to 0. When the dialog opens the field should default to an empty string if this is nullable right?

@SchrodingersGat thanks again for the quick fix!! I just recompiled the app and it works as expected.