HDTN-332169 - P/L by Sales Contract: PL impact for sales contract partly sales invoiced incorrect

Issue No: RM-6398
Created 2/23/2024 12:00:04 PM
Type Bug
Priority Critical
Status Closed
Resolution Fixed
Fixed Version 22.1
Description *This issue relates to i21 Help Desk ticket:* [ HDTN-332169 - P/L by Sales Contract: PL impact for sales contract partly sales invoiced incorrect|https://helpdesk.irely.com/iRelyi21live/#/HD/Ticket/?ticket=HDTN-332169]   P/L by Sales Contract: PL impact for sales contracts that are partly sales invoiced is shown incorrectly.     Steps to reproduce:   # Create purchase contract # Create sales contract with 20 quantity # Allocate 20 # Ship and create invoice for 10 (partial)     *Issue* : results in p/l impact for 30 units instead of 20 units only!   # show two lines: ## p/l impact for the 10 units sales invoiced ## p/l impact for the 20 units allocated     !pastedImage_2_23_2024__11_00_24_817.png|height=574,width=1908!   !pastedImage_3_27_2024__22_15_38_850.png|height=873,width=1253!       Accepted: Should have 20 units only.   !./Export/CRM/e86a4a0e-5126-41c7-ab29-2752f6fc5ae2.png|width=1424!   !./Export/CRM/64e659a0-c060-4230-ab3b-d332a89a28d6.png!