CT - [Distribution] - Load contract - Last Load not applied correctly

Issue No: CT-3365
Created 7/2/2019 12:54:52 AM
Type Bug
Priority Blocker
Status Closed
Resolution Fixed
Fixed Version 19.1, 19.2
Description This issue relates to i21 Help Desk ticket. Click the link below to go to Help Desk ticket.   [HDTN-232313 - Invoice doesn't match scale ticket for load based contract|https://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-232313]   +Issue+: When applying the last ticket to a sale Load Contract, if the quantity is more than the quantity per load, scale will not apply to the selected contract.     Manual Distribution - the quantity above the quantity per load will default to a different contract. You can manually change the quantity distribution to the correct contract and the ticket will distribute properly.     *Acceptance:* On uspCTUpdationFromTicketDistribution when a contract is a load based on it should not check on the available quantity. It should check on the available load.     *+Steps to reproduce+:*   # Create a priced Sale Load Contract for 3 Loads 500 bu per Load # Enter scale ticket with Auto Distribution ## Enter 1st Load Out scale ticket for 500 bu and Distribute to contract. ## Enter 2nd Load Out scale ticket for 515 bu and Distribute to contract ## Enter 3rd Load Out scale ticket for 525 bu and Distribute to contract.   *Issue* : This message will show which should not   !pastedImage_d121078_0.png|height=738,width=998!