Cleaned code on stock and procurement