group_order_articles with quantity 0

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

group_order_articles with quantity 0


In several issues I'm looking at, I'm encountering group_order_articles
with quantity=tolerance=0.
This is the source for foodcoops/foodsoft#125 ("Add article" in
accounting fails "already taken"), as well as a lot of entries with zero
amount in the articles pdf, and members with no ordered articles in the
group pdf.

Would it make sense to just drop lines with quantity=tolerance=0, or do
they have a function?
If so, I guess a check in the model would be useful too. This does not
completely solve the issues, since members with tolerance=0 would still
need to be filtered - I don't think we can remove those lines, because
they are needed to redistribute amounts.

- Willem