Invoice: Distributed ticket create multiple lines and total tons shipped is way more than what the ticket is for

Issue No: CT-3911
Created 9/17/2019 5:00:30 PM
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-236033 - SI-7388|https://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-236033]           This issue relates to i21 Help Desk ticket. Click the link below to go to Help Desk ticket.   [HDTN-236033 - SI-7388|https://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-236033]             + *Steps to reproduce:* +     1. Lookup ticket #5511.   2. Undistribute.   3. Distribute.   4. Lookup invoice generated from distributed ticket.   + *Actual result:* +   Multiple lines created. Total tons shipped is way more than what the ticket is for. See comment.     To replicate it in source db:     Create new item.   Create direct IR to increase stocks. ex. 25000 bu   Create sale basis contract where unit = 25000 bu   Partially priced the contract. ex. 1000bu   Create a load out ticket where distribution type is contract.   Select the contract you created.   Net units must be equal or less than 1000bu   Distribute ticket.     Issue:   No invoice created.     Acceptance:   Should create invoice for partially priced units.