InventDimOnHand _inventOnhand;
InventDimOnHandIterator _InventDimOnHandIterator;
InventDimOnHandMember _InventDimOnHandMember ;
ItemId itemId;
InventDim _inventDim;
InventDimParm _inventDimParm, inventDimParmOnHandLevel;
InventDim inventDim;
InventDimOnHandLevel _InventDimOnHandLevel;
;
itemId = '76576';
_inventDim.InventLocationId = '1113';
_inventDim = InventDim::findOrCreate(_inventDim);
_inventDimParm.InventLocationIdFlag = true;
_InventDimOnHandLevel = InventDimOnHandLevel::DimParm;
inventDimParmOnHandLevel.ItemIdFlag = true;
inventDimParmOnHandLevel.InventLocationIdFlag = true;
inventDimParmOnHandLevel.WMSLocationIdFlag = true;
inventDimParmOnHandLevel.InventBatchIdFlag = true;
_inventOnhand = InventDimOnHand::newAvailPhysical(itemId, _inventDim, _inventDimParm, _InventDimOnHandLevel, inventDimParmOnHandLevel);
_InventDimOnHandIterator = _inventOnhand.onHandIterator();
while (_InventDimOnHandIterator.more())
{
_InventDimOnHandMember = _InventDimOnHandIterator.value();
inventDim = InventDim::find(_InventDimOnHandMember .parmInventDimId());
info(con2str([_InventDimOnHandMember .parmItemId(), inventDim.inventLocationId, inventDim.wMSLocationId, inventDim.inventBatchId, _InventDimOnHandMember .parmInventQty()]));
_InventDimOnHandIterator.next();
}
create simple project and then go to the project hierarchy fast tab and there you must define sub-project ID format "-#" and then your sub-project will be enabled. For resource assigning in Project first you need to configure the HR module, in that you need to maintain the calendar for those employees and then you need to define the cost of that particular employee (for expense) and for Revenue you need to define the sales price of that particular employee. In the project accounting module you need to mention the calendar in scheduling fast tab and then you need to define WBS, in WBS activity you can be able to assign resources.