how to get vendor address

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));
    
}
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • NAME dnsmasq - A lightweight DHCP and caching DNS server....
    ximitc阅读 2,936评论 0 0
  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,458评论 0 10
  • mean to add the formatted="false" attribute?.[ 46% 47325/...
    ProZoom阅读 2,731评论 0 3
  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 9,977评论 0 23
  • 从阴沉到开朗 也许就几分钟的时间 闹够了 宣泄完了 你还是那样热情如火 我喜欢这样脾气的季节 还有人 浓郁的生命和...
    沐天九歌阅读 299评论 0 0