how to get vendor address

2019-10-25  本文已影响0人  axxxxxxxx

get vendor address in ax 2012

static void Job45(Args _args)
{
    VendTable  vendtable;
    str       description,address,completeaddress;
     
    VendTable = vendtable::find('uncunc-Ven1');
           
    description = DirParty::primaryPostalAddress(vendtable.Party).displayLocationDescription();
     
    address = DirParty::primaryPostalAddress(vendtable.Party).Address;
     
    completeaddress = strFmt("%1,%2",description,address);
    info(strFmt("%1",completeaddress));
     
    //Get the Current Company Address
    info(strFmt("%1,%2",curext(),LogisticsPostalAddress::findByLocation(CompanyInfo::find().postalAddress().Location).Address));
    
}
上一篇 下一篇

猜你喜欢

热点阅读