From e2afbfc3858874c947928f9f58739093afc7e241 Mon Sep 17 00:00:00 2001 From: bMancone Date: Tue, 27 Dec 2011 17:14:41 +0000 Subject: [PATCH] // Fixed SupplyOrders --- controllers/admin/AdminSupplyOrdersController.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/controllers/admin/AdminSupplyOrdersController.php b/controllers/admin/AdminSupplyOrdersController.php index 9ea80a368..e925bfc06 100644 --- a/controllers/admin/AdminSupplyOrdersController.php +++ b/controllers/admin/AdminSupplyOrdersController.php @@ -656,13 +656,14 @@ class AdminSupplyOrdersControllerCore extends AdminController 'search' => false, ), 'quantity_received_today' => array( - 'title' => $this->l('Quantity received today'), + 'title' => $this->l('Quantity to receive today ?'), 'align' => 'center', 'width' => 20, 'type' => 'editable', 'orderby' => false, 'filter' => false, 'search' => false, + 'hint' => $this->l('Enter here the quantity you received today'), ), 'quantity_received' => array( 'title' => $this->l('Quantity received'), @@ -671,6 +672,7 @@ class AdminSupplyOrdersControllerCore extends AdminController 'orderby' => false, 'filter' => false, 'search' => false, + 'hint' => 'Note that you can see details on the receptions - per products', ), 'quantity_expected' => array( 'title' => $this->l('Quantity expected'), @@ -681,12 +683,13 @@ class AdminSupplyOrdersControllerCore extends AdminController 'search' => false, ), 'quantity_left' => array( - 'title' => $this->l('Quantity left to receive'), + 'title' => $this->l('Quantity left'), 'align' => 'center', 'width' => 20, 'orderby' => false, 'filter' => false, 'search' => false, + 'hint' => $this->l('This is the quantity left to receive'), ) ); @@ -724,11 +727,17 @@ class AdminSupplyOrdersControllerCore extends AdminController // defines action for POST $action = '&id_supply_order='.$id_supply_order; + // unsets some buttons + unset($this->toolbar_btn['export-csv-orders']); + unset($this->toolbar_btn['export-csv-details']); + unset($this->toolbar_btn['new']); + // renders list $helper = new HelperList(); $this->setHelperDisplay($helper); $helper->actions = array('details'); $helper->override_folder = 'supply_orders_receipt_history/'; + $helper->toolbar_btn = $this->toolbar_btn; $helper->currentIndex = self::$currentIndex.$action;