[In-Commerce] New order number generator returns duplicate numbers

5 views
Skip to first unread message

Alexander Obuhovich

unread,
Mar 13, 2011, 5:59:18 AM3/13/11
to In-Portal Bugs
When new order is created, then new number (not id) is automatically generated and assigned to it.

Also there is a configuration variable in In-Commerce, that stores last generated order number, that doesn't work actually (tested on 5.1.2-B2).

Since special configuration variable isn't used, then last order number from database plus 1 is assigned to each new order. That doesn't pose any problems on Front-end, since every Front-end customer will use the same Orders table.

However it poses a serious problem to Admin Console. When admin opens new order creation page, then a number is generated and assigned to it. But the order record is created in a temporary table and that's why order number generator returns the SAME order number in case if 2 admins will open new order creation page in Admin Console.

Who saves his order first wins. And other admin will get "duplicate order number" message and is stuck with inability to save an order.


Ready for testing.
async_order_number_generation_support.patch

Dmitry A.

unread,
Mar 13, 2011, 7:34:18 PM3/13/11
to in-port...@googlegroups.com
Thanks Alex,

Just wanted to add that this PATCH is directly dependent on patch attached in this task and discussion:


Task:

1016: Method for setting configuration values (auto resets cache too)



DA





DA

Alexander Obuhovich

unread,
Mar 14, 2011, 2:52:04 AM3/14/11
to in-port...@googlegroups.com
Thanks for noticing that and making proper relationship in issue tracker.


--
You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.
Reply all
Reply to author
Forward
0 new messages