// Fix PrestaShopException typo
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12171 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
52ebbe0130
commit
b9a0f1b71f
1 file changed
+2
-2
+2
-2
@@ -129,7 +129,7 @@ function generateDeliverySlipPDFByIdOrder($id_order)
|
|||||||
{
|
{
|
||||||
$order = new Order($id_order);
|
$order = new Order($id_order);
|
||||||
if (!Validate::isLoadedObject($order))
|
if (!Validate::isLoadedObject($order))
|
||||||
throw new PrestashopException('Can\'t load Order object');
|
throw new PrestaShopException('Can\'t load Order object');
|
||||||
|
|
||||||
$order_invoice_collection = $order->getInvoicesCollection();
|
$order_invoice_collection = $order->getInvoicesCollection();
|
||||||
generatePDF($order_invoice_collection, PDF::TEMPLATE_DELIVERY_SLIP);
|
generatePDF($order_invoice_collection, PDF::TEMPLATE_DELIVERY_SLIP);
|
||||||
@@ -139,7 +139,7 @@ function generateDeliverySlipPDFByIdOrderInvoice($id_order_invoice)
|
|||||||
{
|
{
|
||||||
$order_invoice = new OrderInvoice($id_order_invoice);
|
$order_invoice = new OrderInvoice($id_order_invoice);
|
||||||
if (!Validate::isLoadedObject($order_invoice))
|
if (!Validate::isLoadedObject($order_invoice))
|
||||||
throw new PrestashopException('Can\'t load Order Invoice object');
|
throw new PrestaShopException('Can\'t load Order Invoice object');
|
||||||
|
|
||||||
generatePDF($order_invoice, PDF::TEMPLATE_DELIVERY_SLIP);
|
generatePDF($order_invoice, PDF::TEMPLATE_DELIVERY_SLIP);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user