static void S3_TrackItemsAddress(Args _args)
{
VendTable vendTable;
str description, address, city;
InventTable inventTable;
DirPartyTable DirPartyTableloc;
;
select inventTable where inventTable.ItemId == salesline.ItemId;
select DirPartyTableloc
join vendTable where DirPartyTableloc.Name == inventTable.PrimaryVendorId &&
vendTable.Party == DirPartyTableloc.RecId;
vendTable = VendTable::find(vendTable.AccountNum);
description = DirParty::primaryPostalAddress(vendTable.Party).displayLocationDescription();
address = DirParty::primaryPostalAddress(vendTable.Party).Address;
city = DirParty::primaryPostalAddress(vendTable.Party).City;
info(strFmt("%1,%2, %3", description,city, address));
}
{
VendTable vendTable;
str description, address, city;
InventTable inventTable;
DirPartyTable DirPartyTableloc;
;
select inventTable where inventTable.ItemId == salesline.ItemId;
select DirPartyTableloc
join vendTable where DirPartyTableloc.Name == inventTable.PrimaryVendorId &&
vendTable.Party == DirPartyTableloc.RecId;
vendTable = VendTable::find(vendTable.AccountNum);
description = DirParty::primaryPostalAddress(vendTable.Party).displayLocationDescription();
address = DirParty::primaryPostalAddress(vendTable.Party).Address;
city = DirParty::primaryPostalAddress(vendTable.Party).City;
info(strFmt("%1,%2, %3", description,city, address));
}
No comments:
Post a Comment