// You shall not DIE!

This commit is contained in:
dMetzger
2012-02-20 09:14:01 +00:00
parent ef69ac9925
commit 1c4162ff2e
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1120,7 +1120,7 @@ class OrderCore extends ObjectModel
$order = new Order($id_order);
$orderState = $order->getCurrentOrderState();
if (!Validate::isLoadedObject($orderState) || !Validate::isLoadedObject($order))
throw new PrestaShopException(sprintf('unable to load order id %s and/or its state', $id_order));
return '';
echo '<span style="width:20px; margin-right:5px;">';
if (($orderState->invoice && $order->invoice_number) && (int)($tr['product_number']))
echo '<a target="_blank" href="pdf.php?id_order='.(int)$order->id.'&pdf"><img src="../img/admin/tab-invoice.gif" alt="invoice" /></a>';