Jump to content

How to generate delivery pdfs based on ids instead of date?


Recommended Posts

AdminPdfController.php:

	public function processGenerateDeliverySlipsPDF()
	{
		$order_invoice_collection = OrderInvoice::getByDeliveryDateInterval(Tools::getValue('date_from'), Tools::getValue('date_to'));

		if (!count($order_invoice_collection))
			die(Tools::displayError('No invoice was found.'));

		$this->generatePDF($order_invoice_collection, PDF::TEMPLATE_DELIVERY_SLIP);
	}

How can I modify this to generate pdfs based on order's ids instead of dates?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...