[-] BO: Fix PSCFV-3345 display of prices with a currency different than default on backoffice orders

This commit is contained in:
rGaillard
2012-07-30 15:24:29 +00:00
parent 986351b635
commit 74cbeac899
2 changed files with 22 additions and 13 deletions
+9 -1
View File
@@ -150,6 +150,11 @@ class AdminOrdersControllerCore extends AdminController
public function renderForm()
{
if (Context::getContext()->shop->getContext() != Shop::CONTEXT_SHOP)
{
$this->errors[] = $this->l('You have to select a shop in order to create new orders.');
return false;
}
parent::renderForm();
unset($this->toolbar_btn['save']);
$this->addJqueryPlugin(array('autocomplete', 'fancybox', 'typewatch'));
@@ -212,7 +217,10 @@ class AdminOrdersControllerCore extends AdminController
'class' => 'process-icon-partialRefund'
);
}
return parent::initToolbar();
$res = parent::initToolbar();
if (Context::getContext()->shop->getContext() != Shop::CONTEXT_SHOP && isset($this->toolbar_btn['new']))
unset($this->toolbar_btn['new']);
return $res;
}
public function setMedia()