LG- Customer invoice is not able to cancel for Dropshipment linked to Voucher

Issue No: LG-5691
Created 3/14/2024 5:34:20 AM
Type Bug
Priority Critical
Status Closed
Resolution Fixed
Fixed Version 22.1
Description *This issue relates to i21 Help Desk ticket:* [ HDTN-335132 - AR relate issues-120324|https://helpdesk.irely.com/iRelyi21live/#/HD/Ticket/?ticket=HDTN-335132]     *Scenario:* Handling of Cancellation of Invoice (Drop shipment Scenario) where LS is linked to Voucher.   *Steps:*   **Please follow steps in the following test cases:   * [WAMA-T6055|https://jira.irelyserver.com/secure/Tests.jspa#/testCase/WAMA-T6055] * [WAMA-T6056|https://jira.irelyserver.com/secure/Tests.jspa#/testCase/WAMA-T6056] * [WAMA-T6057|https://jira.irelyserver.com/secure/Tests.jspa#/testCase/WAMA-T6057]   *Issue:*   Customer invoice is not able to cancel for Dropshipment.   _**Please see details in comments_   *Acceptance:*   Current:   Since currently the scheduled quantity was already subtracted by the credit memo and upon the cancelling of the LS, the scheduled quantity is subtracted again which contract will not allow since it causes the negative result and gives the below error message.   Expected:   On cancelling the load shipment from credit memo, we will not subtract the scheduled qty again so that the error will not show the error message and user will be able to proceed.