How to manage your stock with templates