made the pdt view detach the salesmaster order on completion