i want to get delivery address for direct delivery, but the code i create seems doesnt working if i change the delivery address from the customer. it cant show the current address of the customer. the field always go blank if i tried to change customer address.
display public LogisticsAddressing getAlamat()
{
CustTable custTable;
DirPartyTable dirPartyTable;
LogisticsPostalAddress logisticsPostalAddress;
LogisticsAddressing alamat;
CustAccount intercompanyCust = this.InterCompanyOriginalCustAccount;
alamat = "";
changeCompany('ma-d'){
while select firstOnly custTable
//order by logisticsPostalAddress.RecId desc
where intercompanyCust == custTable.AccountNum
join dirPartyTable
where dirPartyTable.RecId == custTable.Party
join logisticsPostalAddress
where logisticsPostalAddress.location == dirPartyTable.PrimaryAddressLocation
&& logisticsPostalAddress.recVersion == 1
{
alamat=logisticsPostalAddress.Address;
}
}
return alamat;
}
*This post is locked for comments
I have the same question (0)