И еще интересно версия какая у вас?
В 2009 RU5 RouteCalc_Formula1:
X++:
Hours calcWrkCtrProcessTime(BOMCalcData calc,
RouteMap primaryRoute,
RouteOprMap primaryOpr,
RouteMap secondaryRoute = primaryRoute,
RouteOprMap secondaryOpr = primaryOpr
)
{
WrkCtrTable wrkCtrTable;
...
wrkCtrTable = WrkCtrTable::find(primaryOpr.wrkCtrId);
...
}
Тоже в RU7:
X++:
Hours calcWrkCtrProcessTime(BOMCalcData calc,
RouteMap primaryRoute,
RouteOprMap primaryOpr,
RouteMap secondaryRoute = primaryRoute,
RouteOprMap secondaryOpr = primaryOpr,
WrkCtrId wrkCtrId = primaryOpr.WrkCtrId // УПС
)
{
WrkCtrTable wrkCtrTable;
...
wrkCtrTable = WrkCtrTable::find(wrkCtrId);
...
}