How do i set order number when status change to pending
I need a custom order number incrementation. When status became pending i need +1 increment of previus order's order_number.
My problem is not constantly increment the order number because its depend on user when finish checkout. (sorry for my bad english, i hope its understandable)