Every order on my Magento store seems to be going through multiple order statuses unnecessarily before reaching it's correct status. Attached below is an example (I have numbered them for easier communication):
Let me explain what's happening here:
Customer clicks "Place order" button.
Magento saves the order and redirects to the payment gateway.
At this point, the order says "Pending" and I know that the customer has no yet completed the payment yet. At this point, the Order State is "New".
Payment gateway returns a successful payment. Status changes to "Payment Done" which I have set as a default status for order state "Processing".
Internal use, this is where we extract the order using CSV and change it to "In Production"
5 to 8. This is where things get absurd. At this point I am initiating a bulk "Create Invoice" action. Notice how it goes through all those status within 38 seconds and comes back to "Preparing Order". Note: The order state is still "Processing".
9 & 10. I again run the bulk "Ship Orders" action and this thing ends up correctly at "Shipped" with order state as "Complete" but why is it doing that twice?
Did I set up the whole state / status thing wrong? Is it the bulk action that's screwing up? What is the right way of doing this?
Appreciate your help.