One of my recent project in Magento there are two stores. First is Default and second is Mobile Store. On mobile devices Mobile Store works. We face an issue when user do purchasing from mobile devices. We are not able to generate Invoice of that order from admin. Whenever I try to Submit Invoice it throw an error "Unable to save the invoice.". But if order comes from Default store it works well. I did some research over this and found in InvoiceController.php file $transactionSave->save(); throw exception. Full transaction code is below;
$transactionSave = Mage::getModel('core/resource_transaction')
->addObject($invoice)
->addObject($invoice->getOrder());
$transactionSave->save();
Does anyone have ideas how to fix it?