[Master] Purchase Return Order Posting Fails for Manually Reserved Lot-Tracked Items with Exact Cost Reversing Mandatory Enabled: "Applies-to Entry must not be filled out when reservations exist in Item Ledger Entry Entry No.='XXX'" - #9783
Conversation
…Bug-644262-PurcRetOrderPostFailsforManuallyReservedLotTrackedItemswithExactCostReversingMandatoryEnabledAppliestoEntrymustnotbefilledoutwhenreservationsexistinILEEntryNoXX
…s to fix Unhandled UI RequestPage 795
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug 644262: [Master][All-E] Purchase Return Order Posting Fails for Manually Reserved Lot-Tracked Items with Exact Cost Reversing Mandatory Enabled: "Applies-to Entry must not be filled out when reservations exist in Item Ledger Entry Entry No.='XXX'"InitialCommit
Fixes AB#644262
Issue:
A lot-tracked purchase return (created via "Get Posted Document Lines to Reverse" and reserved against the receipt entry) cannot be posted when "Exact Cost Reversing Mandatory" is enabled — it fails with "Appl.-to Item Entry must have a value in Reservation Entry…", and the manual fix then fails with "Applies-to Entry must not be filled out when reservations exist…".
Cause:
Reserving the return line against the item ledger entry rebuilds the reservation entry without the exact-cost reversing link (Appl.-to Item Entry), which posting then requires.
Solution:
When the return line is fully reserved against an item ledger entry and Appl.-to Item Entry is blank, derive it from the reserved entry during posting, so the exact-cost link is restored without manual input.