0
SalesTable.IntercompanyOriginalCustAccount
フィールドに直接取引先の住所を得意先の内部取引で照会したいとします。私はその顧客の住所を示す必要がある顧客記録を得ることができます。しかし、顧客の住所を変更すると、次のコードで返される住所は空です。会社間の顧客の郵便番号はどのように表示できますか?
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;
}