I am creating a reorder functionality in magento. It is creating with same info of order but showing the grand total double. Last order subtotal price $10 and shipping $5 so grand total is $15 but in new reorder it is giving 25$ Below is the code for reodering process.
$order = Mage::getModel('sales/order')->load($order_id);
$order->setReordered(true);
$newQuote = new Mage_Sales_Model_Quote();
$newQuote->setStoreId($order->getStoreId());
$newQuote->assignCustomer(Mage::getModel('customer/customer')->load($order->getCustomerId()));
$newQuote->setUseOldShippingMethod(true);
$model = Mage::getSingleton('adminhtml/sales_order_create');
$model->setQuote($newQuote);
$reorder = $model->initFromOrder($order);
$reorder->getQuote()->getShippingAddress()
->setShippingMethod($order->getShippingMethod())
->setCollectShippingRates(true)
->collectShippingRates()
->collectTotals()
->save();
$reorder->createOrder();