Invoice with multi store
Hi, i have two stores in my website. If i create order in store 1, sequence of increment_id is saved in sales_sequence_1 If i create a order in store 2, sequence of increment_id is saved in sales_sequence_1. Not in sales_sequence_2. So, for each order the invoice always uses sale_sequence_1 table to calculate the next increment id. In sales_invoice i have store_id correct.
Same problem with order in multi store. It uses always sales_sequence_1
It is expected behavior. Magento creates sequence tables per Store Group. Several Store Views of one group use same sequence.
Issue is closed as not a bug.
@NadiyaS This is highly confusing. I do believe there is a bug here in at the sales_sequence_X table should not be created for store views. In the example above the sales_sequence_2 table should not be created.
I wont even go into the poor design decision to create a new table for each store.