HDTN-270444 - Credit note from Weight claim has duplicate line details, debit/credit note print issue

Issue No: LG-3225
Created 2/25/2022 1:23:46 AM
Type Bug
Priority Critical
Status Closed
Resolution Fixed
Fixed Version 20.1
Description *This issue relates to i21 Help Desk ticket:* [ HDTN-270444 - Credit note from Weight claim has duplicate line details, debit/credit note print issue|https://helpdesk.irely.com/iRelyi21live/#/HD/Ticket/?ticket=HDTN-270444]   Steps:   - Create a purchase contract for 43.2 MT (priced contract) and get it approved.   - Create a sales contract for 43.2 MT (priced contract) and get it approved.   - Allocated purchase and sales contract sequences   - Create dropship LS1 in Zug selecting the allocation detail reference ALD-XX1 for quantity 21.6 MT. Post LS. System will create inter-company LS1 in BU side. Create IR with no weight loss.   - Create dropship LS2 in Zug selecting the same ALD-XX1 for 21.6 MT. Post LS. System will create inter-company LS2 in BU side. Create IR with some weight loss more than the franchise limit.   - Post Weight claims in BU side.   - System will create weight claims for Inbound and outbound in Zug side.   - Post these weight claims in Zug and create debit and credit notes.   - Following issues are reported under this scenario of same allocation used in 2 different LS for the same purchase and sales contract sequences.   -----------------------x-------------------------x--------------------------x-----------------x-----   Issue #1: Zug side   - Credit note created from Outbound Weight Claims is having duplicate entries   !pastedImage_d180487_0.png|height=296,width=711!   -----------------------x-------------------------x--------------------------x-----------------x-----   Issue #2: Zug side   - Credit note document is printing total quantity instead of that particular LS quantity   - Incorrect Invoice number as shown below.   !pastedImage_d180487_1.png|height=266,width=600!     -----------------------x-------------------------x--------------------------x-----------------x-----   Issue #3: Zug side   - Debit note document is printing total quantity instead of that particular LS quantity     !pastedImage_d180487_2.png|height=257,width=600!   -----------------------x-------------------------x--------------------------x-----------------x-----   Customer reported contracts in Zug: Sales contract S72275 and Purchase contract P30501   Refer attached mail from Strauss team (debit / credit note documents are attached here).     Acceptance:   #1: Credit note created from Outbound Weight Claims should not have duplicate entries   #2: Credit note document should be printing LS quantity   -Correct Invoice number should show.   #3: Debit note document should be printing LS quantity