My accountant asked me an export of all my invoices at PDF (33972 invoice :/) . Is there a way to do it automatically ?
Thanks
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityYou can make a quick standalone script and run the following:
$collection = Mage::getResourceModel('sales/order_invoice_collection');
$pdf = Mage::getModel('sales/order_pdf_invoice')->getPdf($invoices);
header("Content-type:application/pdf");
header("Content-Disposition:attachment;filename='invoices.pdf'");
$pdf->render();
Although, with the number of invoices you have, I can't predict how long this is going to have run for (if it ever finishes) and how difficult this is going to be for your accountant!