ILSGateway product stock migration and first reports

@czue PR contains migration of some small part of stock data from ILSGateway. Some logic is directly moved from ILS.
F821 undefined name 'logging'