Contract Basis (with partial pricing) doubles the CT balance log after adding a new partial pricing

Issue No: RM-4331
Created 8/12/2021 3:26:22 AM
Type Bug-QC
Priority Critical
Status Closed
Resolution Fixed
Fixed Version 20.1
Description *This issue relates to i21 Help Desk ticket:* [ HDTN-263375 - M2M Issues - Conversions and Calculations|https://helpdesk.irely.com/iRelyi21live/#/HD/Ticket/?ticket=HDTN-263375]   *Test Case:* [http://jira.irelyserver.com/secure/Tests.jspa#/testCase/ZEI-T914]   Environment used for replicating:   [http://qc2.irely.com/ZeelandProd2010/]     Pre requisites:   * Contract Basis (with partial pricing) which was processed by rebuild.   Steps:   1. Check M2M transactions tab. Filter by P/PP/UP = Partially Priced > Note Open Qty. and Pricing Type   *1st record:*   Pricing Type = Basis   Open Qty = 2500 Bushels   *2nd record:*   Pricing Type = Priced   Open Qty = 1000 Bushels   !QC2 5120-1 Before M2M.PNG|height=292,width=562! 2. Go to Contract and Click Pricing. Then add another partial pricing (do not fully price).   *Initial Priced Qty = 1000*   !pastedImage_d167522_1.png|height=363,width=716!     *Added 500 Priced Qty.*   !pastedImage_d167522_2.png|height=388,width=716!   3. Go to M2M transactions tab again and Click Load to refresh. 4. Filter by P/PP/UP = Partially Priced and you will see that Open Qty. of the Priced record of the Basis contract does not match the total qty of the priced in contract pricing.     Open Qty of Priced record should only be 1500 but was showing 2500   !QC2 5120-1 After pricing m2m.PNG|height=228,width=553!     Upon investigation, I found out that the First Partial Pricing Contract Balance Log From Rebuild was Logged again upon adding the second partial pricing.   !pastedImage_d167522_4.png|height=142,width=553!