[Ticket Distribution] - Changing ticket type or customer/vendor does not release contract scheduled balance

Issue No: SC-1895
Created 7/10/2018 9:26:47 AM
Type Bug
Priority Major
Status Closed
Resolution Fixed
Fixed Version 18.1
Description After attaching a contract to a scale ticket, if the user changes the ticket type or customer/vendor the attached contract which is not valid anymore does not release the scheduled balance.   +Steps+:   # Create Purchase contract # Create Sales contract # Create Load In ticket and add the purchase contract to the ticket. # Save. # Change ticket type to Load Out # Change the vendor to a valid customer # Save. # Review purchase contract Balance and Available balance. Both balances should be the same. # Review purchase contract History tab to see if the Load Out ticket has scheduled the contract.   +Acceptance+:   On a scale ticket that has an attached contract, if the ticket type, customer/vendor or item changes, remove the contract from the ticket and release the scheduled balance against the contract.     Example:   Purchase Contract 00002605   !pastedImage_d100805_0.png!     Contract History tab with Load Out ticket scheduled against a purchase contract.   !pastedImage_d100805_1.png!     Scale ticket 51399 with different contract number attached.   !pastedImage_d100805_2.png!     Ticket 51399 Audit Log - showing the ticket was changed. Type and Customer.   !pastedImage_d100805_3.png!