[Price Contracts] - Pricing by load prices the entire sequence

Issue No: CT-3892
Created 10/9/2019 8:27:46 PM
Type Bug
Priority Blocker
Status Closed
Resolution Fixed
Fixed Version 19.2
Description This issue relates to i21 Help Desk ticket. Click the link below to go to Help Desk ticket.   [HDTN-236955 - [Price Contracts] - Pricing by load prices the entire sequence|https://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-236955]     *Issue:*   Pricing 1 load on a contract carries the pricing to all loads delivered on the sequence.     *Steps to Recreate:*   # Create a sales basis load contract ## 5 loads @ 28 ton each ## Basis = -36 # Schedule 3 loads @ 28 ton # Price 1 load @ 400 per ton using price contracts screen ## ERROR - The whole quantity of the sequence stays with the first pricing # Deliver 2 loads against the contract # Check created invoices ## ERROR - 2 invoices are created @ 364 ## Only 1 invoice should have been created   *Acceptance:*   # Create a sales basis load contract ## 5 loads @ 28 ton each ## Basis = -36 # Schedule 3 loads @ 28 ton # Price 1 load @ 400 per ton using price contracts screen # Deliver 2 loads against the contract # Check created invoices ## 1 invoice invoice is created @ 364 per ton # Check price contract screen for the sequence ## Pricing 1 has 1 load applied and priced   !pastedImage_d125232_0.png|height=686,width=1176!