magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Invoice with multi store

Open vlauria opened this issue 10 years ago • 4 comments

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.

vlauria avatar Feb 29 '16 08:02 vlauria

Same problem with order in multi store. It uses always sales_sequence_1

vlauria avatar Feb 29 '16 10:02 vlauria

It is expected behavior. Magento creates sequence tables per Store Group. Several Store Views of one group use same sequence.

akaplya avatar Feb 29 '16 17:02 akaplya

Issue is closed as not a bug.

NadiyaS avatar Jun 08 '16 13:06 NadiyaS

@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.

ctadlock avatar Jan 19 '17 19:01 ctadlock