[Voucher] - Extra line created when quantity crossed two contracts.

Issue No: SC-2825
Created 5/29/2019 5:06:24 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-231354 - BL-7546 has an extra line item.|https://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-231354]   Steps to Reproduce. 1.) Create 2 _ *Basis* _type Purchase Contract for JFM FARM LLC. with Quantity of 1600 Bushels and 3800 Bushels each contract 2.) Create _ *Priced* _type Purchase Contract for STONEY HUTCHINGS Qty : 5000 Bushels 3.) Create Scale Ticket. Enter the ff. details *Type :* Load In *Vendor :* STONEY HUTCHINGS *Item :* Soybeans *Distribution :* Split *Split :* 0001 A.) *Entity :* STONEY HUTCHINGS *Percent :* 50 *Distribution :* Contract B.) *Entity :* JFM FARM LLC *Percent:* 50 *Distribution :* Contract *Gross Weight :* 84,140 *Tare Weight :* 28,840 *Net Units :* 921.67 4.) Save and Click Distribute. Manual Distribution Screen should show up 5.) Manual Distribution Screen details A. Select/Click the Line for STONEY HUTCHINGS B. Check if Qty 460.84 is Selected in Contract Grid. If not set Unit Entry to 460.84 C. Select/Click the line for JFM FARM LLC D. Set Unit Entry to 142.89 for Contract with Qty 3,800 Bushels E. Set Unit Entry to 317.94 to Contract with Qty 1,600 6.) Click Process. 7. After successfully distributing the ticket. Go to Contract Management > Price Contract 8.) Select the Basis Contract with 1600 Quantity. Set Futures Price to > 0 Click Save 9.) Select the Basis Contract with 3,800 Quantity Set Futures Price to > 0 Click Save 10.) Go to Purchase(A/P) and Check the generated Voucher (Note that the voucher for JFM FARM LLC was generated upon doing steps 8 and 9 11.) Open the voucher generated and validate the details.   12.) Go to Ticket 13.) Undistribute 14.) Click Distribution (Manual Distribution screen should show up) Check Contract Details for each entity. ( *step 5* ) Issues 1.) Extra Lines were added on voucher after pricing basis contract. CT-3309 *2.) Undistribute of ticket does not free up scheduled quantity of contracts used in distribution of ticket.*       Voucher BL-7546 has an extra line created for 142.89 that needs to be removed.     The scale ticket was split and was applied to two contracts.   IR-4739 is correct.   Scale ticket - 54021   !pastedImage_d119277_0.png|height=724,width=1117!   !pastedImage_d119277_1.png|height=717,width=1111!     !pastedImage_d119277_2.png|height=749,width=1006!