Sales Order and Purchase Order Report Fixes

Additionally add "cancelled" search flag for sales orders and purchase orders and implement on dash.