removed is_global_stock_enabled invocation
overhaul of the global stock  handling to manage global and local stocks