I have an upgrade from ax 4.0 to ax 2012 R2 Cu6
for some strange reason, the alternative delivery addresses of the customer do not appear on the Forms.
I have investigate the date with below queries.
my question is , should every LogisticPostalAddress also have an DirPartyLocation address?
static void PartyLocationCheck(Args _args)
{
LogisticsPostalAddress LogisticsPostalAddress;
DirPartyLocation DirPartyLocation ;
LogisticsLocation LogisticsLocation;
DirPartyLocation DirPartyLocationmissing ;
while select count(RecId) from LogisticsPostalAddress notexists join DirPartyLocation where LogisticsPostalAddress.Location == DirPartyLocation.Location
{
info( int642str(LogisticsPostalAddress.recid)); //168426
}
while select count(RecId) from LogisticsPostalAddress notexists join LogisticsLocation where LogisticsPostalAddress.Location == LogisticsLocation.recid
{
info( int642str(LogisticsPostalAddress.recid)); //0
}
while select count(RecId) from LogisticsLocation notexists join DirPartyLocation where DirPartyLocation.Location == LogisticsLocation.recid
{
info( int642str(LogisticsLocation.recid)); //170704
}
}