added previous sales order view functionality