I don't want the stock number to change when confirmed. Because of the possibility of two members going to Paypal payment page at the same time, which means you might end up two people buying the last ticket for the same event.
If the buyer goes to Paypal payment page and just closed the browser instead of clicking "cancel and go back to the original page", then you end up with a "created" order and corresponding stock number. Then when I "cancel" that order it changes the stock number back to normal.
But if the payment method is "bank transfer" and the status is "pending" (I created this payment status), then if the payment didn't come in 24 hours I change the status to "cancelled" which should as in the example above increase the stock number. If I first confirm it, then cancel it that increases the stock back to normal.
So my understanding is, the problem is my extra status. The new status should be an instance of "created" status but it doesn't act like it. I decided to get rid of the "pending" status and use "created", since I can see if an order is closed Paypal payment or bank transaction in order list. But this might be something to consider for the next version maybe? When the user creates a new status, you might want to give the option of inheriting the attributes of an existing status.