coopcycle-web
coopcycle-web copied to clipboard
In order to [avoid swapping orders] As a [rider] I want [the automated order number to be generated diferently]
Last night, we had to make a refund for customers because order numbers for 2 clients from the same restaurant were 6N and 6M which can easily lead to confusion.
If it was possible to generate order numbers in a more random way, it would for sure make the errors less likely.
https://github.com/orgs/coopcycle/discussions/28
- default is the first two letters of the restaurant name
- which caracter do you consider similars ? 0 and O, I and L, others ?
- what to do for order with multiple vendor ?
- should it apply to non-foodtech orders ? (I dont know which references we use for these actually)
- For now default being 2 first letters is fine, as long as it has a plan B if there are two restaurants with the same first two letters
- @alexsegura
- what do you mean? group orders? for group orders (one client, multiple restaurants) the plan is to have the same 4 digits/letters but the prefix changes. so restaurant AA has AA3-4GT and restaurant BB has BB3-4GT
- yes, we want to move the entire platform's administrative interactions into using order codes by default, but the delivery ID should be accessable somewhere (currently in the order details in various places, no need to touch anything) in order to maintain backwards compatibility