When you say "I am deleting contract "A" and enter Contract "B" and save the notification, after opening it again, again there is contract "A" in sales document field." For me, it looks like some custom functionality playing the role.
Can you please check whether you have any custom development in the exit QQMA0014 ?