Add relate action from sale to purchase requests

issue3598
review2751002
Split confirmed state into confirmed and processing

issue3874
review7261002