// Add StockWarehouse Class

This commit is contained in:
mDeflotte
2011-10-07 14:50:38 +00:00
parent 59dfcb3609
commit 496d39a4c0
2 changed files with 117 additions and 2 deletions
+14 -2
View File
@@ -903,11 +903,11 @@ class ValidateCore
/**
*
* @param array $zones
* @return array return true if array contain all value required for an image map zone
* @return boolean return true if array contain all value required for an image map zone
*/
public static function isSceneZones($zones)
{
foreach($zones as $zone)
foreach ($zones as $zone)
{
if (!isset($zone['x1']) || !self::isUnsignedInt($zone['x1']))
return false;
@@ -922,5 +922,17 @@ class ValidateCore
}
return true;
}
/**
*
* @param array $stock_management
* @return boolean return true if is a valide stock management
*/
public static function isStockManagement($stock_management)
{
if (!in_array($stock_management, array('WA', 'FIFO', 'LIFO')))
return false;
return true;
}
}