You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue: tests not passing when changing PositiveIntegerField to DecimalField on quantity variables within models.py.
Pretty new to Django here..Looks like you've been using this system for whole parts (ie you can buy a 1/2 a transistor). I tried changing the following quantity fields to decimals and I'm getting errors when I run tests. I'm wondering how difficult it would be to change the following:
Reason I ask is I'm buying some products by weight. So when using Inventree I can't convert oz<->grams and lbs<->liters without using decimals for the quantity variable.
Product is awesome though thanks for all the work! I'm using this for a lab setup potentially. I wouldn't mind working on this project and using it for my hobby lab and contributing to the documentation ;)
Hey @Zenbiz thanks for the feedback - I'm super excited that you like the project!
I've just returned from holiday, sorry for the delay on responding to this.
I would like to move to a DecimalField for the 'quantity' - up until now I have managed without 'partial' quantities but I can now see the need for it. I'll have a look at the unit testing issues, but there are also some other considerations that need to be made...
I would absolutely love some contributions to the documentation if you have time - it's really lacking at the moment!
Hi @Zenbiz I have implemented this now. Please update to latest version and see if it is all working for you! (I may have missed an edge case in my testing).
Also, I'd be very keen to hear back from you regarding the documentation side of things :)
Activity
SchrodingersGat commentedon Nov 16, 2019
Hey @Zenbiz thanks for the feedback - I'm super excited that you like the project!
I've just returned from holiday, sorry for the delay on responding to this.
I would like to move to a DecimalField for the 'quantity' - up until now I have managed without 'partial' quantities but I can now see the need for it. I'll have a look at the unit testing issues, but there are also some other considerations that need to be made...
I would absolutely love some contributions to the documentation if you have time - it's really lacking at the moment!
SchrodingersGat commentedon Nov 19, 2019
Hi @Zenbiz I have implemented this now. Please update to latest version and see if it is all working for you! (I may have missed an edge case in my testing).
Also, I'd be very keen to hear back from you regarding the documentation side of things :)