HDTN-276333 - scheduled balance p-3939

Issue No: SC-4714
Created 8/16/2022 10:00:00 AM
Type Bug
Priority Critical
Status Closed
Resolution Fixed
Fixed Version 20.1
Description *This issue relates to i21 Help Desk ticket:* [ HDTN-276333 - scheduled balance p-3939|https://helpdesk.irely.com/iRelyi21live/#/HD/Ticket/?ticket=HDTN-276333]     Steps to replicate:   1. Create a Purchase contract with 500 QTY 2. Full Price 3. Create Ticket 1 and Distribute to contract - 250 QTY 4. Create Ticket 2 and Distribute to contract - 125 QTY 5. Create Ticket 3 and Save only - 125 QTY 6. Check Contract - Balance = 125 - Applied = 375 - Scheduled = 125 7. Update QTY in Ticket 3 and Save - 124 QTY 8. Check Contract     Issue:   Incorrect scheduled qty     Acceptance:   Schedule = 124.00           SCT-28272 was undistributed and changed. Once the transaction was deleted the contract history was removed but it didn't update the scheduled balance properly.   !pastedImage_d192888_0.png|height=301,width=570!     I manually adjusted the scheduled balance but would like to know how this can be prevented.