Educación física
Música
ERProgramadores
Educación física
Música
public static LogisticsPostalAddress getPostalAddressByType(DirPartyRecId _party, LogisticsLocationRoleType _type)
{
DirPartyLocation partyLocation;
DirPartyLocationRole partyLocationRole;
LogisticsLocation location;
LogisticsLocationRole locationRole;
LogisticsPostalAddress postalAddress;
select firstonly postalAddress
exists join location
where location.RecId == postalAddress.Location
exists join locationRole
where locationRole.Type == _type
exists join partyLocation
where
partyLocation.Location == location.RecId &&
partyLocation.Party == _party
exists join partyLocationRole
where partyLocationRole.PartyLocation == partyLocation.RecId &&
partyLocationRole.LocationRole == locationRole.RecId;
return postalAddress;
}
InventTable inventTable;
InventDimParm inventDimParm;
;
inventTable = InventTable::find('1000');
inventDimParm = InventDimParm::activeDimFlag(InventDimGroupSetup::newInventTable(inventTable));
if(inventDimParm.WMSPalletIdFlag)
{
info("Pallet Enabled");
}
static void TIDF_getInventPhysicalbyDate(Args _args)
{
InventDimParm inventDimParmCrit;
InventSumDateDim inventSumDateDim;
InventDim inventDim = InventDim::find('AllBlank');
InventQty inventQty;
;
// Set the dimensions
inventDimParmCrit.initFromInventDim(inventDim);
inventSumDateDim = inventSumDateDim::newParameters(today(), '010410003', inventDim, inventDimParmCrit);
inventQty = inventSumDateDim.receivedQty()-InventSumDateDim.deductedQty()+InventSumDateDim.postedQty();
info(strFmt("%1",inventQty));
}
static void Job3(Args _args)
{
TmpABC tempTable;
InventABCDP dataProvider = new InventABCDP();
InventABCContract contract = new InventABCContract();
contract.parmABCModel(ABCModel::Link);
contract.parmCategoryA(10);
contract.parmCategoryC(20);
contract.parmCategoryB(70);
contract.parmInterest(2.5);
dataProvider.parmDataContract(contract);
dataProvider.processReport();
tempTable = dataProvider.getTmpABC();
while select tempTable
{
info(tempTable.ItemName);
}
}