Fix miscalculation on addition of recipe to plan.
Merge branch 'master' of github.com:meqif/IPM-prototype