-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Received state for orders #779
Comments
Sounds good! |
Well this is exactly what I intended to implement. 😊 The You can still go from Or am I missing some other foodsoft feature where this might be a problem? 🤔 |
Not that I can see. I'd be for implementing this. It would be good to document this (e.g. in the model), including which state transitions can happen (to be sure other people realise what can be expected), and be sure to check all occurences of |
Yes, you're right! I've added it here in my PR.
I did. Scopes such as foodsoft/plugins/current_orders/app/controllers/current_orders/group_orders_controller.rb Line 7 in 67ad202
However, I'm not sure how to display this page and the current_orders no longer seems to be working (even before my changes) - is it still maintained at all? (For example this count(distinct: true) expression no longer seems to work in Rails 5 - it produces an SQL error.)
Good point. Do you want me to add it directly to If you do this manually once you release a new version - here's what I would put in there:
It's a bit verbose - so IMO you could shorten it, if you want to keep the Changelog's size low. |
…ers index This slightly increases the performance as the associated order_articles no longer need to be fetched.
In order to facilitate "self-service" features such as #766 it would be nice to have a distinct "received"
state
inOrder
.Current status
Currently it's hard to determine what (group) orders have been received - s. #766 (comment).
The order state flow is
open
->finished
->closed
.Planned adaptation
The order state flow should become
open
->finished
->received
->closed
. All current queries checking forOrder.state = 'finished'
would then instead need to check forOrder.state IN ('finished', 'received')
(Though that may be subject to change in the future: For foodcoops in which "self service" is enabled - again see #766 - balancing may only be done for 'received' orders.)The text was updated successfully, but these errors were encountered: