[Distribution] - Undistribute Split tickets does not return scheduled qty back to contract

Issue No: SC-2878
Created 6/21/2019 4:15:17 PM
Type Bug
Priority Blocker
Status Closed
Resolution Fixed
Fixed Version 18.3
Description This issue relates to i21 Help Desk ticket. Click the link below to go to Help Desk ticket.   [HDTN-232354 - Undistribute Split tickets does not return scheduled qty back to contract|https://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-232354] When a scale ticket with a split is Undistributed (Reopened), the scheduled balance is not completely returned back to the contract.   +Acceptance+:   When a scale ticked with a split is Undistributed (Reopened), returned the scheduled qty for each of the split entities so that nothing is scheduled against the contracts.     +Steps+:   # Create purchase contract with vendors with a four way split (25% each). # Create Load In scale ticket with distribution of Split. # Distribute # On manaual distributioin screen, set each split entity to apply to the same contract. # Process # Confirm that the contract has been applied properly and that the scheduled balance is zero. # Undistribute the scale ticket. # Check contract. Contract should have nothing scheduled because the contract information is not recorded on the ticket after undistribution.   Example:     Scale ticket   !pastedImage_d120730_0.png|height=743,width=1126!       After Undistribution   !pastedImage_d120730_1.png|height=462,width=1121!