I am changing the logic of Onepage.php for recurring orders. When it is a recurring order, I will make another order having a “pending” status in addition to the current order.
The problem is when I tried to use this to get a new increment id for the pending order:
$new_incr_id = Mage::getSingleton(’eav/config’)->getEntityType(’order’)->fetchNewIncrementId($this->getQuote()->getStoreId());
If the increment id for the processing order is 100000600, the increment id for the pending order will be 100000602. So it skips one number.
Does anyone know why?
Thanks in advance!