Track receipt on invoice per purchase order line - #10528
Open
Joshua (mynjj) wants to merge 1 commit into
Open
Conversation
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.
What & why
Moves receipt-on-invoice tracking from purchase-order header-only state to individual purchase order lines in W1. The header remains the template for its lines, while each line can be adjusted independently and keeps its matched-order records synchronized.
Adds the final
Receipt on Invoice Policyvalues (Manual,Automatic) on vendors, applies the policy to new orders, uses the line setting in BaseApp matching and posting flows, and exposes the line field for personalization on the Purchase Order subform.Includes the per-company upgrade that backfills the new line field for existing receipt-on-invoice orders. This layer intentionally does not propagate the schema and behavior to country layers and does not add the separate manually-received/receipt-on-invoice coexistence behavior.
Stacked on #10526 (stack #10527).
Linked work
AB#625392
How I validated this
What I tested and the outcome
Added focused coverage for line-level auto-receipt with the header disabled, vendor
Automaticpolicy inheritance, rejection of receipt-on-invoice on a line with existing receipts, and the new PO Matching Group reading the order-line setting. Per the current development setup, this submission received static diff checks only; AL build and runtime validation are deferred.Risk & compatibility
The upgrade preserves existing header-enabled orders by setting receipt on invoice on their current lines without updating audit fields. Country-layer propagation is intentionally excluded from this stack.