Modified Historical Stock view

Changes:
1. Selected unit/pack size option saved in database (required: add
selected_option column in historical_stock table)
2. Increased validation: user must select an option before indicating
consumption values