// SupplyOrders: the date is now correctly displayed

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12532 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2012-01-18 14:27:07 +00:00
parent e2822d339c
commit b81429abca
@@ -298,7 +298,17 @@ class AdminSupplyOrdersControllerCore extends AdminController
}
//specific discount display
$this->object->discount_rate = Tools::ps_round($this->object->discount_rate, 4);
if (isset($this->object->discount_rate))
$this->object->discount_rate = Tools::ps_round($this->object->discount_rate, 4);
//specific date display
if (isset($this->object->date_delivery_expected))
{
$date = explode(' ', $this->object->date_delivery_expected);
if ($date)
$this->object->date_delivery_expected = $date[0];
}
$this->displayInformation(
$this->l('Please note that if you wish to order products, they have to be available for the specified Supplier/Warehouse.')