By default, Commerce uses the {{number[:7]}}
format to set an order's reference on order completion. Now (after the site already has orders and I can no longer reset the site's data), I need to use a different format for existing orders, because we're going to use it as the invoice number, which has to be sequential.
Is there a way to reset
the order's references in such a way that I can set the format to {{object.dateCompleted|date('y')}}-{{ seq(object.dateCompleted|date('y'), 6) }}
, run a script (for instance) and give all orders a new reference (2021-000001, 2021-000002, ...)?