-
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
Add option to ignore delivered amounts in order group distribution #764
Comments
Add option to ignore delivered amounts in order group distribution
Add option to ignore delivered amounts in order group distribution
I can imagine that this works differently in some foodcoops. Would the checkbox here belong in the receive screen, in the supplier details, or be a foodcoop-wide option: what do you think? |
The way I started implementing it (see 8c2ba9e), it would be a foodcoop-wide option. Are you suggesting we should allow different ways of calculation per supplier? Maybe - since each foodcoop might have different requirements - the |
I think it would be useful to have an adaptable Some parts could be split off from |
@paroga and I just talked about this in depth and concluded that making this adaptable (by plugins etc.) would be quite complicated and too much effort for now. Instead we would suggest to turn my new settings checkbox (
What do you think? (We could later still add plugin support of some kind as a fourth option, but that would be another issue and require some brainstorming.) |
Quick response: that sounds good, thanks for talking this through! Note that |
👍
Hm... Yes, but the side effect of this is, that there is no distribution, right? (Or to put it differently: Transactions are just caused by distribution.) But maybe I missed something here. @paroga You suggested this merging of settings - are you sure it would work in all cases or did I misunderstand something? |
The distributions happens after receiving an order and has noting to do with the balancing. Even if you charge your members manually it can make sense to have the correct/different distribution on the group order pdf.
no, not really, since those two settings are independent. sorry if i didn't communicated that clearly. |
Oh - I guess I misunderstood this then. But we did have a discussion in which we agreed on those three options - right?: So, if the first option of this new config select ("no automatic distribution") does not equal checking |
oh, is see where this misunderstanding comes from. my idea of no automatic distribution was that nothing happens. this means that if i order 2, but only 1 gets delivered foodsoft will not change my received amount to 1. so the received amount of all members needs to be changed manually |
Sorry, I'm still confused 😉
Ah okay - so but that describes exactly how foodsoft would now behave, once the new checkbox I've already implemented in my PR for this issue has been checked. Then there wouldn't be any need for replacing that with a select as you originally suggested and the |
sorry of not being precise again. i imagine an select box "distribution strategy" (or any better name and independent of
so that's more of a UI change to your existing PR. you don't need to implement the third option yourself, but I'd like to have the UI more extendable. I think that selecting a "distribution strategy" might be more self explanatory than "Ignore received amounts when charging order groups". |
Aaah, I must have missed the
Okay, but do you still want it implemented before the issue can be merged or should we proceed with a select with just the first two options for now? (Personally, I think implementing |
you can just implement the two options, no need for the third now. i just want to avoid changing the UI if we get a third (or even more) option |
Add option to ignore delivered amounts in order group distribution
you can just commit the changes with the languages you know. missing translations will be added before a release. it's easier to make one translation round before release than having to get the translations for every minimal change |
Current behavior
When receiving an order (using
OrdersController#receive
) and supplying less than the full amount of articles ordered, the distribution among order groups currently works as follows:The order groups that first placed their group orders will receive (->
GroupOrderArticle#result_computed
) full amounts. Those who ordered later will receive only what is left (if anything). So it could be described as a "first order first serve" rule.However in our (and I think in many other) foodcoops this isn't a viable solution. (The sequence of ordering and fetching stuff is almost always different from each other.) So I suggest the following change:
Suggested change
Add a checkbox to the
others
config page: "Ignore received amounts when charging order groups"When this is checked, the order groups are always assigned (and subsequently charged) the full amounts of what they ordered.
(Amounts can still be modified at a later time through the existing interfaces or - once implemented - through #766.)
When the new checkbox remains unchecked (default), the behavior stays the same as it is now.
The text was updated successfully, but these errors were encountered: