Generated Invoice after priced contract has incorrect line item

Issue No: CT-3298
Created 5/29/2019 11:25:01 PM
Type Bug-QC
Priority Blocker
Status Closed
Resolution Fixed
Fixed Version 19.1, 19.2
Description Steps:   1. Create new item.   !pastedImage_d119287_0.png|height=582,width=940!   2. Create Inventory Receipt and post to add stocks.   !pastedImage_d119287_1.png|height=750,width=990!   3. Create Sale Priced Contract where Grades = Destination and Weight = Origin and save.   !pastedImage_d119287_2.png|height=745,width=1821!   3. Create Sale Basis Contract where Grades = Destination and Weight = Origin and save.   !pastedImage_d119287_3.png|height=745,width=1820!     4. Add Settlement Price from Risk Management > Settlement Price.   !pastedImage_d119287_4.png|height=283,width=853!   5. Set Ticket Completion to Auto for Load Out.   !pastedImage_d119287_5.png|height=468,width=897!   6. Create Load Out ticket where Distribution is Contract and select the sale priced contract created. Add Weight Details and save.   !pastedImage_d119287_6.png|height=665,width=1228!     7. Click Distribute button. Ticket was distributed successfully.   8. Click Destination Weight/Grade button and post without changes.   !pastedImage_d119287_7.png|height=664,width=1227!   9. Check Invoice created. Correct line item, contract no., ordered, shipped and priced shows (entry from the priced contract).   !pastedImage_d119287_8.png|height=810,width=1411!   10. Open the Sale Basis Contract and click Pricing button. Enter 250 in quantity and Future Price = 5 then save.   !pastedImage_d119287_9.png|height=709,width=1058!   11. Check the Invoice generated after pricing   Issue:   It still added the line item from the priced contract which was included already on the previous Invoice   !pastedImage_d119287_10.png|height=808,width=1407!     Acceptance:   Should only show line item for the basis contract that has been priced:   Contract No. = 1065   Ordered = 1000   Shipped = 250   Price = 5.35