Skip to content

[28.x] 625438: E-Document deferred creation for Inventory Pick posting#7141

Closed
Groenbech96 wants to merge 1 commit intoreleases/28.xfrom
backport/releases/28.x/625438
Closed

[28.x] 625438: E-Document deferred creation for Inventory Pick posting#7141
Groenbech96 wants to merge 1 commit intoreleases/28.xfrom
backport/releases/28.x/625438

Conversation

@Groenbech96
Copy link
Contributor

@Groenbech96 Groenbech96 commented Mar 16, 2026

Summary

Backport of #7132 to releases/28.x.

  • Add AllowCreateEDocument guard to Sales-Post, TransferOrder-Post Shipment, and Service-Post subscribers to defer E-Document creation during Inventory Pick flows
  • Add OnAfterPostWhseActivityCompleted subscriber for deferred E-Document creation after warehouse posting completes
  • Migrate Subcontracting subscriber from obsoleted OnAfterPostWhseActivHeader to OnAfterPostWhseActivityCompleted

Why: The E-Document export path contains an unconditional Commit() for error-isolation during XML generation. If a subscriber commits during OnAfterPostWhseActivHeader, which fires before PostRelatedInboundTransfer, partially-committed state causes data inconsistency (Bug 625438). The new event fires after all work is complete, eliminating this ordering hazard.

NAV dependency: NAV 28.x PR 242568

AB#625589

Backport of bugs/625438 changes to releases/28.x:

- Add AllowCreateEDocument guard to Sales-Post, TransferOrder-Post Shipment,
  and Service-Post subscribers to defer E-Document creation during Inventory
  Pick flows
- Add OnAfterPostWhseActivityCompleted subscriber for deferred E-Document
  creation after warehouse posting completes
- Migrate Subcontracting subscriber to OnAfterPostWhseActivityCompleted

Companion to NAV 28.x PR 242568.
AB#625589

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Groenbech96 Groenbech96 requested a review from a team as a code owner March 16, 2026 09:12
@github-actions github-actions bot added the AL: Apps (W1) Add-on apps for W1 label Mar 16, 2026
@github-actions github-actions bot added this to the Version 28.1 milestone Mar 16, 2026
@Groenbech96 Groenbech96 self-assigned this Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AL: Apps (W1) Add-on apps for W1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant