IF KitSalesLine.FINDFIRST THEN // --> in question. REPEAT InventoryProfile.INIT; InventoryProfile."Line No." := NextLineNo; InventoryProfile.TransferFromKitSalesLine(KitSalesLine,TempItemTrkgEntry); IF InventoryProfile.IsSupply THEN InventoryProfile.ChangeSign; InventoryProfile.INSERT; UNTIL KitSalesLine.NEXT = 0;
IF KitSalesLine.FINDSET THEN REPEAT InventoryProfile.INIT; InventoryProfile."Line No." := LineNo; InventoryProfile.TransferFromKitSalesLine(KitSalesLine,TempItemTrkgEntry); IF InventoryProfile.IsSupply THEN InventoryProfile.ChangeSign; InventoryProfile.INSERT; LineNo := LineNo + 1; UNTIL KitSalesLine.NEXT = 0;
Comments
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Andwian