HDTN-269465 - Inter-co script overwrites received qty in BU load/shipment schedules

Issue No: IN-992
Created 1/28/2022 1:01:17 AM
Type Bug
Priority Blocker
Status Closed
Resolution Fixed
Fixed Version 20.1
Description Steps:   1. Create an Intercompany S-Contract and P-Contract in Zug   2. Approve the P-Contract   3. Allocate the P-Contact with th S-Contract   4. Approve the S-Contract   5. Go to BU and Approve the S-Contract   6. Go to Zug> Do Price fixation in S-Contract and Approve   7. Go to BU and Approve the S-Contract   8. Go TO Zug> Create an LS for the P-Contract   9. Go to BU >Open the LS created from Zug   10. Create Receipt for the LS   11. Go to Zug and Open the LS and Modify it   Issue: System overriding the Receipt Qty in BU LS   Expectation: System should not override the Receipt Qty in BU     *This issue relates to i21 Help Desk ticket:* [ HDTN-269465 - Inter-co script overwrites received qty in BU load/shipment schedules|https://helpdesk.irely.com/iRelyi21live/#/HD/Ticket/?ticket=HDTN-269465]   I might have figured this out. I think *Integration is overriding the Received Qty* from Zug (which is always NULL because it’s a drop ship) to the BUs.     That’s why it keeps resetting to NULL, even though Inventory Receipt was already posted a while back. If this theory is correct, then we can replicate the issue by just updating some fields on an LS in Zug that is already Received on the BU.     Posting the Inventory Receipt is supposedly to be the only way to update the Received Qty that’s why we focused on the IR creation and posting part when we tried and resolve this, but apparently the issue was still occurring after the upgrade, even after applying data correction.     This seems to be the script that Integration runs. It does look like Received Qty is being updated from here.     !pastedImage_d178280_0.png|height=428,width=617!     Please check this once, I think this will resolve the discrepancies once and for all. Let me know if there’s anything needed on the Logistics part.