HDTN-273708: Sample Mirroring - Link: Once it is manually linked with the new sample, system is not de-linking the existing sample reference

Issue No: QC-704
Created 6/23/2022 2:24:09 PM
Type Bug
Priority Critical
Status Closed
Resolution Fixed
Fixed Version 22.1
Description *This issue relates to i21 Help Desk ticket:* [ HDTN-273708 - pre tc-1 issues |https://helpdesk.irely.com/iRelyi21live/#/HD/Ticket/?ticket=HDTN-273708]   *Pre-Condition:*   * Create a Purchase contract * Create a Sales contract * Allocate both the Purchase and Sales Contract * Create a Sample for the Purchase Contract from the Contract Sequence screen * Create a Sample for the Sales Contract from the Contract Sequence screen ** It will show a message to mirror the sample on creation * Once the sample created, 'Related Sample No' reference will be available in both the samples now   !pastedImage_d188554_0.jpg!   *Steps:*   * Quality -> Sample Entry * Create a new sample for the same sales contract *(S50 - 1)* Ex: Sample No: *QS-95* * Open the saved sample (Ex: *QS-95* ) * Click on Link button in Toolbar * System will open a search screen and it will load all the associated purchase contract ( *P119 - 1* ) samples. * Select one record in the sample grid (Ex: *QS-94* ) * Click on Link button in the Search screen * Save the Sample   *Issue:*   * Initially QS-94 is linked with QS-96 * After the above steps, system should link the sample QS-94 with *QS-95* which is linking correctly now * But the issue is system is not delinking the existing sample reference with {color:#c0392b} *QS-96* {color}   *Expectation:*   * Once it is linked with the new sample, system should delink the existing old sample reference and it should link with the new sample   !pastedImage_d188554_1.png|height=273,width=745!