
Hi All,
I am encountering an issue posting a Product Receipt via code after successfully posting an Item Arrival Journal.
Scenario:
Item Arrival: A single PurchLine was split into multiple journal lines to accommodate different Batches and Serials.
Status: All lines are currently "Registered" in InventTrans with their respective InventDimId.
The Issue: PurchFormLetter fails to post. It seems the standard logic cannot handle multiple InventDimId registrations for a single PurchLine during the automated aggregation.
Example: PO Line 1 (Qty: 100) is split into 4 Arrival Lines:
Line 1.1: Qty 30, Batch A, Serial 001,002,003
Line 1.2: Qty 40, Batch B, Serial 004,005,006,007
Line 1.3: Qty 30, Batch C, Serial 008,009,010
I would really appreciate any code snippets or guidance on this, as I've been stuck on this issue for a few days now.