[Reassign] - Issue after reassigning fully priced contract

Issue No: CT-7699
Created 8/17/2022 5:51:29 AM
Type Bug-QC
Priority Critical
Status Closed
Resolution Fixed
Fixed Version 20.1
Description *This issue relates to i21 Help Desk ticket:* [ HDTN-264418 - DPR Related Issues |https://helpdesk.irely.com/iRelyi21live/#/HD/Ticket/?ticket=HDTN-264418]   *Steps* :   # Create Sale basis contract = 200 # Create Load from contract # 40 ton / load = 1 load # Create ticket 1 = 50 ## Distribution = Contract (select the create contract) # Partial Price the sequence = 50 # Create ticket 2 = 51 ## Distribution = Contract (select the create contract) # Full Price the sequence = 150 # Create ticket 3 = 52 ## Distribution = Load (select the load created from contract) ## Manual distribute = 40 to load and 12 to contract # Slice the sequence ## seq 1 = 167 ## seq 2 = 33   *Issue* : When slicing sequence, Reassign screen opens. But when I tried to enter values this message prompts   !pastedImage_d192938_0.png|height=251,width=362!   Click OK and Save reassign, it will continue the slice process but there is an issue in the created sequences: *Sequence 2 is created as basis since there is no reassigning of price when sequence 1 was sliced which is correct but when Price Contract of sequence 1 is opened, it still displays 150 qty on pricing 2 and add -33 with average cost*   !pastedImage_d192938_1.png|height=296,width=558!   *Acceptance:* Since message already prompts that reassign is not allowed when invoice is already created, it should not continue slicing the sequence when Save is clicked on Reassign. The pricing should be updated first before slicing of contract is allowed.