partially receiverd purch orders in req.wksheet

In the requisition worksheet partially recieved purchase orders never is subject to change. They get planning flexibility = none. This is by design, but i consider it an error: If You have problem with this You can use the following code that i got from Microsoft The code is from 4.00 SP1. My customer where we had this problem is actually running 3.70, but it’s not a big issue to take the 4.00 version of Codeunit 99000854 and use it in a 3.70-database. Works just fine (and it has a lot of improvements!) The code: Codeunit 99000854 Function SupplytoInvProfile() OLD CODE … IF PurchLine.FIND(’-’) THEN REPEAT IF (PurchLine.“Prod. Order No.” = ‘’) AND (PurchLine.“Job No.” = ‘’) THEN BEGIN InventoryProfile.INIT; InventoryProfile.“Line No.” := LineNo; InventoryProfile.TransferFromPurchaseLine(PurchLine,TempItemTrkgEntry); IF NOT InventoryProfile.Supply THEN BEGIN InventoryProfile.ChangeSign; InventoryProfile.“Planning Flexibility” := InventoryProfile.“Planning Flexibility”::None; END ELSE IF InventoryProfile.“Finished Quantity” > 0 THEN InventoryProfile.“Planning Flexibility” := InventoryProfile.“Planning Flexibility”::None; InventoryProfile.INSERT; LineNo := LineNo + 1; END; UNTIL PurchLine.NEXT = 0; … NEW CODE … IF PurchLine.FIND(’-’) THEN REPEAT IF (PurchLine.“Prod. Order No.” = ‘’) AND (PurchLine.“Job No.” = ‘’) THEN BEGIN InventoryProfile.INIT; InventoryProfile.“Line No.” := LineNo; InventoryProfile.TransferFromPurchaseLine(PurchLine,TempItemTrkgEntry); IF NOT InventoryProfile.Supply THEN BEGIN InventoryProfile.ChangeSign; InventoryProfile.“Planning Flexibility” := InventoryProfile.“Planning Flexibility”::None; END; // Delete or comment the following 3 lines //END ELSE // IF InventoryProfile.“Finished Quantity” > 0 THEN // InventoryProfile.“Planning Flexibility” := InventoryProfile.“Planning Flexibility”::None; InventoryProfile.INSERT; LineNo := LineNo + 1; END; UNTIL PurchLine.NEXT = 0; …

Lars: Thank you for the post. We have been having the exact same problems with posting partial receipts and just had a gentleman from Microsoft Navision come in to train/work with us on the Req. Worksheet. He agreed that there was an issue with the partial receipts (although he did state that when they spoke with Denmark they were told it works as it should). Needless to say, he was going to go back and try to expedite this issue so we could obtain a “fix”. I just tried posting a partial reciept to see if the “planning flexibility” changed on the PO line itself, but it looks as if it is still set to “unlimited”. Is this “change” behind the scenes? By the way, we are using Attain 3.7B. Thanks.

As You can se the flexibility is set to “none” in code if the PO is partially received. The actual PO-line is not changed. If You are running 3.70B You should also take codeunit 99000854 “Inventory Profile Offsetting” from 4.00 SP1 and put that into Your 3.70 database. It vill solve a lot of issues for You and it is not hard work doing it. Just a few new keyes on some tables and comment out a few lines of code in the codeunit.