inventree / inventree-app

InvenTree mobile app
https://docs.inventree.org/en/latest/app/app/
MIT License
57 stars 48 forks source link

Purchase Price can not be empty when creating new stock item #538

Closed cbenhagen closed 1 month ago

cbenhagen commented 1 month ago

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 (6c0b3cccc30d89e501bff4e560e2a53fc101ab0a)

SchrodingersGat commented 1 month ago

@cbenhagen thanks for reporting - fix incoming in https://github.com/inventree/inventree-app/pull/539

cbenhagen commented 1 month ago

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?

cbenhagen commented 1 month ago

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