TR does not increase a Contract's Scheduled Quantity properly

Issue No: TR-893
Created 7/25/2017 2:57:51 PM
Type Bug
Priority Blocker
Status Closed
Resolution Fixed
Fixed Version 17.1
Description This issue relates to i21 Help Desk ticket. Click the link below to go to Help Desk ticket.   [HDTN-191892 - Contract Reporting needs and simplifications|http://helpdesk.irely.com/iRelyi21live/i21/#/HD/Ticket/?ticket=HDTN-191892] This issue relates to i21 Help Desk ticket. Click the link below to go to Help Desk ticket.   [HDTN-200589 - 17.1 Customer Pricing Missing|http://helpdesk.irely.com/iRelyi21live/i21/#/HD/Ticket/?ticket=HDTN-200589]           Found in Release 17.1.0629.86.     Steps to reproduce   1. Create a TR Load, do not enter a Sales Contract in the Distribution. Post it and then unpost it.   2. Now update the Distribution by including a Sales Contract. Save the TR Load.   3. Check the Contract > Hisotry tab. Because now the Load uses a Contract and the Load is not yet posted, Contract's Scheduled Quantity should be increased. A record that looks like this should be present in Contractd > History. The bug is: this record does not get created.   !pastedImage_d79548_0.png|height=102,width=860! When testing, test both scnearios:   Scenario #1   1. Create a Load, do not enter a Sales Contract, post and then unpost.   2. Update the Load by adding a Sales Contract in Distribution. Save the Load. You should see Scheduled Quantity being increased.   Scenario #2   1. Create a Load, do not enter a Sales Contract, post and then unpost.   2. Update the Load by adding a Sales Contract in Distribution. Post the Load without first clicking Save. Then you should see three new records in Contract > History tab:   a. Record #1: Scheduled Quantity being increased by Adjustment Type of Transport Sale   b. Record #2: Balance being decreased by Adjustment Type of Invoice.   c. Record #3: Scheduled Quantity being decreased by Adjustment Type of Invoice.     *Issue also happens when using Purchase contract