// Supply Orders: the supply order form is now generated (PDF)

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10374 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2011-11-21 18:31:44 +00:00
parent 5dc1c8a71c
commit de6d9c7bbe
6 changed files with 285 additions and 3 deletions
@@ -1765,8 +1765,8 @@ class AdminSupplyOrdersControllerCore extends AdminController
return;
$content = '<span style="width:20px; margin-right:5px;">';
if ($supply_order_state->editable == false) // @TODO Decide what states are allowed
$content .= '<a href="#"><img src="../img/admin/pdf.gif" alt="invoice" /></a>';
if ($supply_order_state->editable == false)
$content .= '<a href="pdf.php?id_supply_order='.(int)$supply_order->id.'"><img src="../img/admin/pdf.gif" alt="invoice" /></a>';
else
$content .= '-';
$content .= '</span>';