fixes issue with legacy code not saving purchase.order and resets purchase application flow