added notifications for errors in the Stocks view
added a global ajax error handler showing notifications
added the Sales pages / logic through the magic of copy-paste programming!