[DPR Summary Log and Contract Balance] -Incorrect log and balance for contract after short closing and reopening sequence

Issue No: CT-7811
Created 9/15/2022 4:52:24 AM
Type Bug-QC
Priority Critical
Status Closed
Resolution
Fixed Version 20.1
Description *Steps* :   # Using customers db, open Contract No = 10485 ## Fully Priced   ## Partially applied with remaining balance of 1.56   ## Current DPR Summary Logs   # Short Close contract > Reopen contract > Short Close > Reopen   ## *Issue 1:* Contract Balance Issue - Contract not displayed   ## *Issue 2* : DPR Summary Log Issue - On second reopen, it enters 2 logs for Purchase Priced, once is positive which is correct, and the other is negative which is incorrect. Should have no Pur Priced log with negative qty.   # Update Qty equal to applied qty to make it complete > Save   ## *Issue 3:* Contract Issues - Still with Balance qty even if Contract is already equal to Applied Qty - Should have 0 balance   ## *Issue 4:* Status is still Re-open - Should be Completed   ## Contract Balance is correct - Contract is no longer displayed   ## *Issue 5* : DPR Summary Log Issue - Since the Reopened Sequence logged 2 Pur Priced, the Update also logged 2 but this should be one entry only with negative qty.     *Acceptance:*   # If Reopened - Contract should be displayed in Contract balance report if there is still Balance # If Short Closed = Contract should not be displayed in Contract Balance report # If Qty is updated and Applied is equal to contracted, the status should be Completed # Log on DPR Summary should not be duplicated