finished previous sales order view functionality