Requisition Worksheet: Calculate Plan

Hi, when I execute the function “calculate plan” on the Requisition Worksheet so it is calling the codeunit “Inventory Profile Offsetting”. The first lines of this codeunit are: [1] CalculatePlanFromWorksheet(VAR Item : Record Item;ManufacturingSetup2 : Record “Manufacturing Setup”;TemplateName : Code[10];WorksheetN [2] InitVariables(InventoryProfile[1],ManufacturingSetup2,TemplateName,WorksheetName,OrderDate,MPSPlanning); [3] DemandtoInvProfile(InventoryProfile[1],Item,OrderDate,ToDate); [4] ForecastConsumption(InventoryProfile[1],Item,OrderDate,ToDate); [5] BlanketOrderConsump(InventoryProfile[1],Item); [6] SupplytoInvProfile(InventoryProfile[1],Item,ToDate); [7] FindCombination(InventoryProfile[1],InventoryProfile[2],Item); PlanItem(InventoryProfile[1],InventoryProfile[2],OrderDate,ToDate); [9] CommitTracking; I think in line [6] is a logical error, don’t must be look like: [6] SupplytoInvProfile(InventoryProfile[2],Item,ToDate); Thanks in advance for any suggestion